Author Topic: php install/test successful, but .php files working  (Read 1530 times)

gordonk66

  • New Member
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
php install/test successful, but .php files working
« on: April 07, 2008, 10:41:09 PM »
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.

gordonk66

  • New Member
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: php install/test successful, but .php files working
« Reply #1 on: April 08, 2008, 10:46:09 AM »
FiXED.  ok I think it was that I forgot to copy over the php.ini file to the conf directory.  dUh!

peg110

  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 799
  • Karma: +0/-0
    • View Profile
    • http://www.tripleclicks.com/11260983/go
Re: php install/test successful, but .php files working
« Reply #2 on: April 09, 2008, 02:02:48 PM »
it's those "DUH" mistakes that drives us all nuts.

Glad you solved it.