PDA

View Full Version : PHP installed, working from shell but not browser


Kankles
20th January 2006, 03:47
any ideas? if i run
# php index.php

for example it gives the desired effect.. how ever if i point my browser to /index.php it shows the source code as if it were any other html file.

i'm running red hat fed 4 and have followed your howto to the letter. -the ispconfig stuff for now.

thanks,

kankles

falko
20th January 2006, 06:02
i'm running red hat fed 4 and have followed your howto to the letter. -the ispconfig stuff for now.

If you don't use ISPConfig, then have a look again at the Apache/PHP section of the tutorial. Undo all the steps where something PHP-related is commented out in some files and restart Apache.

Kankles
20th January 2006, 19:31
:) thanks very much. i thought that i had done this but i must have forgot to restart, or not saved the document or something.

just out of interest, why dose ispconfig need it different?

till
20th January 2006, 19:55
:) thanks very much. i thought that i had done this but i must have forgot to restart, or not saved the document or something.

just out of interest, why dose ispconfig need it different?

ISPConfig enables and configures php for each vhost individually. So it must be deactivated in the global configuration.

Kankles
21st January 2006, 00:23
aahh..

nice:)

thanks.