PDA

View Full Version : localhost php not working



jk1
July 25th, 2010, 08:57 PM
I've been testing out a twitter oauth app.

I've been having an issue where the index.php page is blank.

If I upload the same script to my webhost, it works perfectly.

Any advice how to get the script to work under the localhost address in Ubuntu Desktop 10.04?

Can+~
July 25th, 2010, 11:49 PM
Have you installed apache2 and libapache2-mod-php?

Did you put your files inside /var/www?

Did you check if the server is up (sudo service apache2 start)?

Does apache2 have read access to the files inside /var/www (chgrp www-data, chmod g+r)?

jk1
July 26th, 2010, 12:26 AM
Have you installed apache2 and libapache2-mod-php?

Did you put your files inside /var/www?

Did you check if the server is up (sudo service apache2 start)?

Does apache2 have read access to the files inside /var/www (chgrp www-data, chmod g+r)?

apache2 and libapache2-mod-php are both installed

files are in /var/www

server is up

all files have read access

wojox
July 26th, 2010, 12:28 AM
Have you checked the Apache error logs?

jk1
July 26th, 2010, 01:27 AM
Have you checked the Apache error logs?

I did and found a single error throughout the log. Figured out I needed to install an extension, and it worked!

Thank You!

wojox
July 26th, 2010, 01:31 AM
I did and found a single error throughout the log. Figured out I needed to install an extension, and it worked!

Thank You!

Your Welcome. :D