i try to edit the httpd.conf file
but it still cannot run php
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
# The following is for PHP3:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
any suggestion to me?
PHP cannot run in apache + linux 7.2
Moderator: General Moderators
<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>
<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>
Seems there are no Comment on it. is it right?
LoadModule perl_module modules/libperl.so
</IfDefine>
<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>
Seems there are no Comment on it. is it right?
you may activate 'server-info' to see if any php-module has been loaded. To do so edit your httpd.conf
What happens when a script is called? Nothing or do you see the source-code?
Check the apache error.log (<apache-dir>/logs/error.log) and the system logs (/var/log/[messages|error])
something like...
LoadModule info_module modules/mod_info.so
...
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
should be printed.Server Version: Apache/2.0.36 (Win32) PHP/4.2.1
What happens when a script is called? Nothing or do you see the source-code?
Check the apache error.log (<apache-dir>/logs/error.log) and the system logs (/var/log/[messages|error])
Make sure that the libphp4.so file is actually in the modules directory. You may have to move it there or create a soft link.zidane2 wrote:<IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so
</IfDefine>
<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>
Seems there are no Comment on it. is it right?