Reputation: 197
I have installed php oauth extension in ubuntu 110.10.
But on http://localhost/phpinfo.php
in google chrome it is giving the following error:
Server error
The website encountered an error while retrieving http://localhost/phpinfo.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
This means i am giving link to localhost then getting this error.
And in mozilla it is giving a blank screen.
It is not providing any information about installtion in php How do i resolve this problem?
Upvotes: 3
Views: 26334
Reputation: 5582
I had a similar problem but the reason was because I had just restored my files into www from a Windows NTFS backup drive.
Naturally, with NTFS we don't have the same permissions of Ubuntu or any other Linux system.
Looking at the folders using nautilus showed incorrect owners and permissions.
How I fixed it...
chown khalid -R /var/www
sudo chmod 644 -R /var/www
gksudo nautilus
. Then go into your /var/www folder and change the permissions to allow owner/group read/write and check the box to execute as program. Also apply this to the sub-folders.NOTE: Never give 777 permissions to a web folder/file. That's like keeping your front door key hanging in the front of your gate! However, if this is a machine that never sees the daylight of Internet, it shouldn't be an issue.
Upvotes: 0
Reputation: 12122
It may be permission error.. Please check your folder permissions. Bcz, Most of Ubuntu (linux) users can face this type of error.
by the author of question:
sudo chmod 0777 -R /var/www/phpinfo.php
Upvotes: 4