PDA

View Full Version : [ubuntu] [SOLVED] I think my php5 isn't working.



shanep-server
November 12th, 2008, 03:11 PM
I created a test.php file.

<?php phpinfo(); ?>

I put it in my /var/www/

when i go to localhost/test.php it wants me to download test.php

Where do I start to figure out what is wrong with my php5 an how to fix it.

beercz
November 12th, 2008, 03:32 PM
I created a test.php file.

<?php phpinfo(); ?>

I put it in my /var/www/

when i go to localhost/test.php it wants me to download test.php

Where do I start to figure out what is wrong with my php5 an how to fix it.
Do you have apache installed and configured correctly?

rustutzman
November 12th, 2008, 03:33 PM
Find your php logs and have a look there. Look in the php install directory.

Russ

shanep-server
November 12th, 2008, 03:37 PM
yes apache is working and so is mysql. I can view /var/www/index.html and i can create databases with mysql and add too them.

I'm checking phplog here in a second

shanep-server
November 12th, 2008, 03:44 PM
where do u think the install directory is? Im not finding phplog

I looked in /etc/php5 but there is only 2 files apache2 folder and conf.d

php.ini is located in /etc/php5/apache2/

shanep-server
November 12th, 2008, 03:53 PM
i got it. Lamp never installed php5 when i ran it. Weird how that works out since I installed Lamp server from synaptic packaged manager LOL. Oh well problem solved.