0
votes
2answers
28 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
81 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
113 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
78 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
0answers
66 views

Service Unavailable - Zero Size Object - Why is this error appearing?

I'm running a site using Amazon Elastic Beanstalk for PHP. I have a maintenance script which hits another site (via cURL) to grab some blank template files. For some reason, I seem to be having ...
0
votes
1answer
26 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
230 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
161 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
145 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
95 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
423 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
141 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
120 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
153 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 ...
0
votes
1answer
286 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
0answers
149 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
184 views

Receiving 403 error when opening CodeIgniter folder in browser on Bitnami LAMP (Ubuntu) installation [closed]

I just setup a Bitnami LAMP instance on AWS EC2, but after configuring Codeigniter using these instructions and pointing my browser to my installation ...
0
votes
1answer
114 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
168 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
464 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
219 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
180 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
552 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
87 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
179 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
80 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
4k 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
0answers
334 views

Php mail() is not working but sendmail is

I have an Amazon EC2 instance running with RedHat/Linux. My problem is with the PHP mail() function which is not working although I can send mail with sendmail from command line. I run this command. ...
0
votes
1answer
351 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
350 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
121 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
2k 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, ...
0
votes
1answer
180 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 ...
2
votes
3answers
1k views

Linux SUSE - How to install PHP 5.3.x on SUSE?

I'm trying to install php 5.3.x on Suse/linux platform, but whenever I install and check it with phpinfo(); it shows php 5.2. Any idea how to deal with it? please provide the detailed instructions. ...
1
vote
4answers
272 views

Best practice for synchronizing sources across servers (Amazon EC2)

I'm moving from single app server to load balanced config. In the single server config I synchronized the sources by S3 cmd sync s3 every few minutes and on hostup (Scalr event) I sync the sources ...
0
votes
1answer
154 views

Apache becomes unresponsive when serving php

I'm having this strange problem on my c1.medium EC2 instance where Apache serves static files very well (as per tail -f access_log). But, the php files don't open after a few initial requests, which ...
0
votes
1answer
346 views

PostgreSQL 9.0 and PHP on Amazon EC2

How can I enable PostgreSQL 9.0 support in PHP on my Amazon EC2 instance? I'm running the free 32 bit Linux Micro instance. I've installed PostgreSQL 9.0 by following these instructions ...
0
votes
3answers
148 views

Server architecture for a read-heavy website

The site is a custom written PHP application with a nearly 3NF (highly relational, many foreign keys) Mysql database. This website is about 90% read / 10% write. Currently, we are on a VPS with ...
0
votes
1answer
186 views

Enabling GD & MySQL in PHP

I've Yumed the following onto my server: httpd php mysql mysql-server php-mysql php-gd They all installed fine. Should GD and MySQL be available in PHP after installing those packages, even if ...
0
votes
2answers
276 views

Host a PHP website a Amazon webservice EC2

How i can host my php website at EC2. I have brand new account at amazon web serive. Some one let me know about the setup of configure this. Thanks, Pradeep
0
votes
2answers
558 views

How do you create a SimpleDB on Amazon EC2?

Where exactly could I start creating a SimpleDB, I will be using PHP as the client. I can't find it anywhere on the AWS console.
2
votes
1answer
298 views

Managing logs for several dynamic instance on Amazon

I have this problem or rather an itch that I could really use help with. I use autoscale and several instances on Amazon. Problem is I have all these logs PHP, Apache, system but also my web app ...
2
votes
1answer
483 views

memcached php module not compiling on EC2

I'm trying to do this on EC2, micro instance using amazon linux I installed and started the memcached service without problems. But when trying to make the php part using pecl it told me pecl wasnt ...
0
votes
2answers
331 views

PHP Not Showing Errors on Fresh Install of Apache/PHP on Ubuntu Server

I just tried a simple hello world with a semi colon missing, and I'm getting a blank page. Any ideas why PHP refuses to show errors? A script without errors works perfectly. Also, I remember ...
1
vote
1answer
868 views

How do I install php with sqlite support in AWS EC2?

I'm trying to run an AWS EC2 instance for a facebook app. I chose the micro Amazon linux 32-bit as my OS. I'm able to SSH in and install PHP with yum, but when I run phpinfo() I see --without-sqlite ...
0
votes
2answers
203 views

Setup web server on Windows Server 2008?

I just launched an Amazon ec2 instance, with Windows Server 2008 32 bit as the OS. I manage to connect to instance via remote control, what should I do next? I will need to use Apache, php and mysql ...
0
votes
2answers
275 views

Scaling a PHP Application on EC2 - Question on Architecture

I am a little new to PHP and EC2 so bear with me. I need to setup two instances on EC2 running Apache and PHP, that in turn communicate with a third instance running MySQL server. The two Web ...
0
votes
1answer
634 views

AWS:EC2:: Why my web folder is called “html”?

P.S Q stands for Question. My environment is: Amazon linux 64 bit (Q1. i dont if its ubuntu or red-hat, is there any way to check?) And I need to run php and mysql, thus I installed httpd (Q2. is ...
2
votes
1answer
960 views

How do I upload files to httpd (www) folder in EC2?

As title said, how do I upload my php files into my newly installed httpd (/var/www/html) on a EC2 instance? I am trying to use cyberduck(using sftp), but apperantly, when I connected to my EC2 ...

1 2