Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Uploaded PHP files not running on Amazon cloud ,while files created there are running well.

0

200 views

Hello Guys, I have deployed my PHP web app on Amazon Ec2 cloud , but my files are not running ,because my my files's are uploed using ec-user account while if i create a file there using root it can run easily. i have changed the owner and group of all uploaded files to root , but then also server response is

The website encountered an error while retrieving mydns/index.php It may be down for maintenance or configured incorrectly.

while if i run another file which i create there using putty then it runs perfectly.

Please help me if u think a some configuration is required there I have deployed the website there inside /var/www/html/somefolder/

asked February 11, 2011 2:12 am CST
posted via StackOverflow

3 Answers

0
 

check the permissions of a .php file which is working and one which isn't with ls -l. I believe the permissions need to be 744.

answered February 11, 2011 2:23 am CST
-1
 

Have you tried using the chmod() function in PHP?

answered February 11, 2011 2:23 am CST
Z0q
0
Best answer
 

Unix is case sensitive while Windows is not when i am referring any files in case sensitively the PHP gives error in Unix only so, to make it woking I need to make all paths and file referencing like various include ,require,src and action varible and methods case sensitive.

Thanks to all of you.

answered February 16, 2011 7:13 am CST

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Mysql running over 100%
January 27, 2011