0
votes
0answers
5 views

Linux pt_BR Locale - Bad Translations

I'm using Amazon Linux AMI 2014.09 (up-to-date) to host my PHP application, that uses locales for internationalization (usually it's pt_BR). On the production server the pt_BR translations is not ...
-1
votes
0answers
12 views

Amazon EC2 responds very slow sometimes

I have setup a PHP application on Amazon EC2. Webserver is Apache and Database is MySQL. The setup runs fine on the staging (dedicated server). But, the response for the same code base on EC2 is very ...
0
votes
0answers
45 views

PHP install on clean Amazon Linux AMI

I'm trying to get a script working to bring up new Amazon Linux EC2 instances with php55 and the Amazon PHP sdk. However, I'm running into a problem that I think is caused by PHP version conflicts. I ...
0
votes
1answer
65 views

Problems with a PHP include from the command line (or cronjob) [closed]

I am trying to setup a cronjob on my AWS EC2 instance. There is nothing wrong with the actual entry in the crontab file but when I try to run the command in the command line I get this response. PHP ...
2
votes
3answers
81 views

Application access via AWS Load Balancer with autoscaling

I am configuring a test AWS architecture for a web application that I plan to migrate from a dedicated hosting service to AWS. What I have now is as follows : One MySql RDS, where my application ...
0
votes
2answers
336 views

Unable to install Wordpress on Amazon's EC2 instance due to missing php-mbstring

I've created a new instance on Amazon's EC2 and I'm trying in wordpress and it's failing due to php-mbstring: # yum install wordpress Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
0
votes
0answers
29 views

Amazon EC2 + SSL Godaddy are not routing properly in HTTPS

I have an Amazon EC2 + SSL just installed on GoDaddy. I have successfully managed to install it and get the green https on the main domain https://www.example.com however it doesn't any ...
-1
votes
1answer
98 views

Is it possible to use PHP on a website hosted on AWS S3 without using EC2 or Elastic Beanstalk?

I have a bit of PHP (a contact form to be exact) that isn't working right now on my website. I'd like to activate the PHP and I heard one of the ways is to use Elastic Beanstalk. However, Elastic ...
1
vote
1answer
7k views

RSA certificate configured for SERVER does NOT include an ID which matches the server name

I recently started a LAMP server (all the latest versions) w/ WordPress on it, and I'm trying to install a SSL certificate that I recently purchased. When I restart apachectl, error_log gives me this: ...
3
votes
1answer
213 views

Yum won't reinstall PHP on Amazon Linux

Ultimately, this question is about Yum and the Amazon Linux AMI (see the end for that part), but first I'll give some background to how I got into my situation. I installed PHP from source I am ...
1
vote
1answer
612 views

Amazon Linux LAMP with php 5.5

I installed PHP 5.5 on my Amazon Linux VPS via the instructions here. The CLI is working fine. I also had apache already installed and running via the httpd package. It was running without any ...
1
vote
4answers
641 views

AWS EC2 PHP session_start with permission denied

I have an strange issue related with PHP an the session save path. I have configured in my php.ini the session.save_path = "/tmp", and I know that is correctly configured since in the server I could ...
0
votes
1answer
57 views

How to configure my local host database configuration file to work with AWS EC2 distant database? [closed]

I would like to set up my localhost website to work on an AWS EC2 database. In my configuration file I have to set up the hostname, username, password, db and so on and I don't know what to put under ...
0
votes
1answer
343 views

How can we configure the Bitnami Joomla stack to open a socket on startup?

I have deployed the Bitnami Ubuntu Joomla! 3.1.5-2 (64-bit) stack on Amazon Cloud: http://bitnami.com/stack/joomla/cloud/amazon By default, the stack is configured to run PHP using PHP-FPM. I have no ...
1
vote
1answer
183 views

Amazon EC2, S3, REST API, and how to correctly provide contents to users

I have deployed a REST server in an Amazon EC2 instance. I have also configured an Amazon S3 bucket to store all the data generated by users while interacting with the API. The main information stored ...
1
vote
0answers
47 views

maintaining session in elastic Bean

As the number of instances changes from time to time in EBS amazon. If an application is built in PHP how the session will be mantained among several instances? How can we make sure not to delete the ...
1
vote
2answers
62 views

create virtual directory on Amazon Instance

Alright, So I have an AMI that I use for a beanstalk app. I started with the generic amazon instance it gives you, and then mounted an EBS volume on it. I then uploaded my webapp. What I wanted to do ...
0
votes
1answer
59 views

Httpd process still hanging memory after background script finishes

I'm calling a php script to run from apache. I'm using the exec function in php to call the script. Once the script ends, httpd is still sitting with 8.9% of memory usage while all other processes ...
1
vote
1answer
931 views

PHP-FPM using 40% CPU for a Single Request

(I googled and searched this forum for hours, found some topics, but none of them worked for me) I'm using Wordpress with: Varnish + Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed. As I'm using ...
1
vote
2answers
464 views

No such file or directory

I'm building an EC2 LAMP server for the first time, and so far so good. Except I can't seem to get the require 'vendor/autoload.php'; working right I get this error message whenever I write that ...
0
votes
1answer
339 views

Can't connect from EC2 to RDS via PHP. I can directly thought

I've set up an EC2 instance it has mysql and php-mysql installed (not mysql-server). I've set up an RDS instance and set the security group to the EC2 instance. I can connect via the command line ...
1
vote
1answer
542 views

php-fpm or nginx capping out?

I'm using blitz.io to basically blast my site with traffic to see how my 'learning sysadmin' holds up under load. I realize this is as effective or relevant to real-world as a sledgehammer, but I ...
0
votes
1answer
359 views

nginx, php-fpm on diff server bad gateway (and security too)

This is somewhat of a multipart question. First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong. Second, I would love to know how I ...
0
votes
1answer
35 views

Installing the mysql-php module o

im trying to install mysql-php on ec2 amazon free tier but for some reason cant do it, I have installed everything else besides and that is the last thing stoping me from getting the server up and ...
1
vote
0answers
401 views

amazon ec2-medium apache requests per second terrible

EDITED -- test running from localhost now to rule out network... i have a c1.medium using EBS. when i do an apache benchmark and i'm just printing a "hello" for the test from localhost - no database ...
1
vote
1answer
644 views

How to diagnose PHP server execution times to reduce them?

I am running an API server on Amazon EC2 powered by PHP, and am trying to finetune the performance with a goal of reducing response times. Currently I am testing the performance of the PHP code ...
1
vote
1answer
269 views

Apache segfaults when uploading any file

I have setup default Ubuntu Server 12.04 on Amazon EC2 micro instance. I've setup the usual, PHP, Apache, MySQL, etc. Everything runs ok, until I try to upload some file via PHP. The file size does ...
1
vote
1answer
223 views

Amazon Linux AMI EC2 PHP Function Recognition

I've recently set up the title instance (64bit) on AWS. I have that being said, I've installed httpd and php, both of which are running. The series of installs executed are as follows: yum install ...
1
vote
1answer
728 views

Sending mail via php in EC2

I have used the following code for sending mail using php using amazon ec2, but I only see 'aatest' as the result, and doesn't get any incoming email. Btw, I have already included ses.php, and have ...
1
vote
1answer
201 views

EC2 Micro with NGINX

I have an EC2 Micro running Ubuntu 12.04. I have assigned it an EIP (23.21.213.236) and I am pointing my domain name A records to this IP. The domain I am trying to access with is ...
1
vote
2answers
178 views

Reverse Proxy Wordpress with Lighttpd

I am deploying an application and a Wordpress installation on AWS. I have Wordpress set up under Apache on an EC2, and my application under Lighttpd, and I want to reverse-proxy Wordpress through the ...
1
vote
1answer
231 views

Why is my concurrency capacity so low for my web app on a LAMP EC2 instance?

I come from a web developer background and have been humming along building my PHP app, using the CakePHP framework. The problem arose when I began the ab (Apache Bench) testing on the Amazon EC2 ...
1
vote
1answer
640 views

PHP occasionally fails to connect to mysql server

I have a php script on my server which is called by my client app to log some information into a remote mysql server. The scripts works fine, but occasionally (only occasionally) the script fails to ...
2
votes
1answer
298 views

MySQL: 5000 core users, 2GB Table Heavy Write / Read: How to Prevent Crashing

This is a controversial issue for sure, since many might want to recommend the simple things right away, like: Split up the tables! Split up the read/write into master/slave configurations! Amp up the ...
0
votes
1answer
230 views

Wordpress slow when publishing

I have an Wordpress website with more than 219k of posts, and everytime when I publish something my CPU/MySQL usage go to 100%. I really don't know why, because my entire website stay on 6% all day ...
1
vote
1answer
319 views

Browser does not render phpinfo()

I have a php file at http://lohray.com/info1.php that is just - <?php phpinfo(); ?> The page does not render on my browsers (I have tried chrome and firefox), however, wget fetches all ...
4
votes
1answer
963 views

Apache doesn't immediately notice a change in the document root

We use capistrano for website deployments and our Apache document root is a symlink to a particular code release. The deployment procedure switches the symlink from the old release to the new release ...
0
votes
3answers
244 views

Cannot properly read files on the local server

I'm running a RedHat 6.2 Amazon EC2 instance using stock Apache and IUS PHP53u+MySQL (+mbstring, +mysqli, +mcrypt), and phpMyAdmin from git. All configuration is near-vanilla, assuming the described ...
1
vote
1answer
238 views

MongoDB not replicating properly

I am using mongoDB for my application hosted on 3 amazon instances. I have a got a Primary Node with highest priority (100) and 2 Secondaries with priority 99 and 98. A few days ago I started getting ...
0
votes
1answer
1k views

Receiving error php_mbstring.dll No such file or directory

I am receiving this error in apache error log during httpd restart process. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mbstring.dll' - ...
-1
votes
1answer
93 views

Which filesystems are better for serving php code (via apache2) on amazons EBS?

I have an Ubuntu EC2 instance on amazon. The instance has an apache2 webserver serving php5 code. I'm using APC for op-code caching, Zend Framework as my framework, and Doctrine 2.2 as my ORM. EDIT ...
0
votes
0answers
225 views

Can't connect to ip-X.X.X.X.X.compute.internal:XXX, php_network_getaddresses: getaddrinfo failed

I have interesting issue today: PHP Warning: Memcache::connect(): Can't connect to ip-X.X.X.X.X.compute.internal:XXX, php_network_getaddresses: getaddrinfo failed: `Temporary failure in name ...
0
votes
1answer
88 views

Accessing Instances on ec2

I am hosting my website on 3 amazon instances but I cannot connect them together. I am using windows server 2008 and when I ping xxxxxxxxxxxxxxx.compute-1.amazonaws.com, I get request timed out. Using ...
7
votes
2answers
8k views

Is mounting S3 buckets directly into EC2 instances safe?

as the title of my question says, I would like to know whether this is a good practice or not, I know I can mount it in an EC2 instance but I was wondering if, as I will be adding more instances to ...
0
votes
1answer
423 views

amazon ec2 apache performance tuning php elastic cache and s3 buckets

I am trying to load test an amazon centos instance sitting behind the amazon loadbalancer. The application is written on php and uses the elastic cache and media is stored in s3 bucket. When the ...
1
vote
1answer
551 views

nginx not interpreting some PHP files

I am trying to port a website on php / mysql / apache on one server to another server. The other server was a raw linux box on amazon ec2. I am not a advanced linux admin. I have some basic ...
-1
votes
2answers
144 views

What configurations need to be set for a LAMP server for heavy traffic? [closed]

I was contracted to make a groupon-clone website for my client. It was done in PHP with MYSQL and I plan to host it on an Amazon EC2 server. My client warned me that he will be email blasting to about ...
-1
votes
2answers
4k views

How to see PHP error stack trace/dump?

Currently my web application can print error when host on my local machine. When I host it on Amazon EC2 server. The error page is empty/blank. I want to see the error stack trace when run on EC2, ...
1
vote
1answer
342 views

PHP's FTP isn't working on Amazon linux EC2 instance?

I set up a m1.large EC2 instance and want to use it to download logs off a cdn's server. I had the code working just fine on my ubuntu laptop but once uploaded to the server the ftp_rawlist() function ...
3
votes
2answers
2k views

Amazon AWS Micro Instance Performance - Apache2 and PHP

I have started doing some work for a mate running Apache2 and PHP on Ubuntu and the CPU is topping out. What I am really after is advice around whether using a Micro instance is a good idea for a ...