Bare with me here, I am completely new to apache. These are the php lines I see in my httpd.conf.
<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
</IfModule>
#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
#
# For PHP/FI (PHP2), use:
#
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
I don't know if this will help any. These lines are not all together in httpd.conf. PHP worked right after I installed it for me. I have only had a test box running apache for about a month and I haven't had much time to play with it yet.
phpinfo(); doesnt return anything?
I have this in the file phpinfo.php I created.
<?php
phpinfo();
?>
Then I just access the file in the browser and it shows all the php info.
Jim H


Does anyone have any ideas what I am doing wrong? I added the following lines to my httpd.conf file.
Reply With Quote

Bookmarks