Ask a Question related to PHP Development, Design and Development.
- john_liu #1
How to configure php on apache I have redhat 7.2 with appache 1.3.20 and php 4.0.6 built in. Now I try to
configure php on apache. It seemed that I followed all the procedures on how
to configure php on apache but when I tested the php with the following
script, it did not show up what it was supposed to be shown up:
<HTML>
<HEAD></HEAD>
<BODY>
<? phpinfo(); ?>
</BODY>
</HTML>
I don't know what went wrong. Here is the detailed info regarding php in
httpd.conf (httpd.conf is at /etc/httpd/conf/):
<IFDEFINE HAVE_PHP4>
LoadModule php3_module modules/libphp3.so
</IFDEFINE>
<IFDEFINE HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IFDEFINE>
<IFDEFINE HAVE_PHP4>
AddModule mod_php3.c
</IFDEFINE>
<IFDEFINE HAVE_PHP4>
LoadModule mod_php4.c
</IFDEFINE>
AddType text/html php
AddHandler php-script php
Thanks for help
john_liu Guest
-
#40728 [NEW]: configure won't identify apache version
From: sheezes at gmail dot com Operating system: AIX 5.3 PHP version: 5.2.1 PHP Bug Type: *Compile Issues Bug description: ... -
#39233 [NEW]: Windows MSI installer cannot configure Apache 2.2
From: matt at genesi-usa dot com Operating system: Windows XP Home SP2 PHP version: 5.2.0RC5 PHP Bug Type: Unknown/Other... -
#38997 [NEW]: Cannot configure PHP for cross-compilation with Apache 2.2.3
From: lstefani at fortresstech dot com Operating system: Linux 2.6.12 PHP version: 5.1.6 PHP Bug Type: *Configuration Issues... -
How to configure GD support in php on linux/apache?
Could anybody show me how to configure it? Thanks! -
#25182 [Bgs->Csd]: linux+informix+php+apache configure error !!!
ID: 25182 User updated by: jkshin at naver dot com Reported By: jkshin at naver dot com -Status: Bogus +Status: ... - john_liu #2
Re: How to configure php on apache I forgot mentioning that the following lines are in httpd.conf as well:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3
</IfModule>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
THanks
"john_liu" <[email protected]> дÈëÓʼþ
news:[email protected]..how> I have redhat 7.2 with appache 1.3.20 and php 4.0.6 built in. Now I try to
> configure php on apache. It seemed that I followed all the procedures on> to configure php on apache but when I tested the php with the following
> script, it did not show up what it was supposed to be shown up:
>
> <HTML>
> <HEAD></HEAD>
> <BODY>
> <? phpinfo(); ?>
> </BODY>
> </HTML>
>
> I don't know what went wrong. Here is the detailed info regarding php in
> httpd.conf (httpd.conf is at /etc/httpd/conf/):
>
>
> <IFDEFINE HAVE_PHP4>
> LoadModule php3_module modules/libphp3.so
> </IFDEFINE>
> <IFDEFINE HAVE_PHP4>
> LoadModule php4_module modules/libphp4.so
> </IFDEFINE>
>
>
> <IFDEFINE HAVE_PHP4>
> AddModule mod_php3.c
> </IFDEFINE>
> <IFDEFINE HAVE_PHP4>
> LoadModule mod_php4.c
> </IFDEFINE>
>
> AddType text/html php
>
> AddHandler php-script php
>
>
> Thanks for help
>
>
john_liu Guest




