php install/test successful, but .php files working

Hello,
I have a total newb project.
I’ve installed apache and PHP 5 on a Linux server and everything appears to have been successful, but when I open a test.php file it just displays the code:

<?php phpinfo(); >? I take it that the php isn't being handled on the server. I'm guessing I'm missing a configuration detail. the libphp5.so is in the modules dir, and the httd.conf was updated with: LoadModule php5_module modules/libphp5.so php/apache info: > ../../php/bin/php -v PHP 5.2.5 (cli) (built: Apr 4 2008 17:23:21) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > ./httpd -v Server version: Apache/2.2.8 (Unix) Server built: Apr 4 2008 16:49:23 Thanks for the help.

FiXED. ok I think it was that I forgot to copy over the php.ini file to the conf directory. dUh!

it’s those “DUH” mistakes that drives us all nuts.

Glad you solved it.

Sponsor our Newsletter | Privacy Policy | Terms of Service