What's the difference between mod_php4, mod_php, and php?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Berkwitt
Date:  
Subject: What's the difference between mod_php4, mod_php, and php?
Hans,
#locate libphp4.so -> /usr/lib/apache/libphp4.so
#grep -i php /etc/apache/*.conf -> No such file or dir
#ls -l /var/www/html/info.php -> No such...
#echo ...
#ls from /html/ directory shows info.php now exists.
However it won't display on Konqueror. Now it just so happens I was going
through 'Apache Configurator' when your email arrived and had noticed a
'Directory Page Search List' where was listed the following:
index.php
index.html
index.htm
index.shtml
Hmmm, so I added info.php, saved and tried the browser. Failed. So I restarted
apache and it worked.
Success is so much more fun. :o)

Thanks.


On Sunday 15 September 2002 11:44 am, der.hans wrote:
> Am 15. Sep, 2002 schwätzte Kevin Brown so:
> > What distro are you running? RedHat hasn't had a mod_php module since
> > RH5.2. PHP 4.1.2 is PHP4. To see if it is working with your apache
> > server:
>
> OK, how that we know that the php package provides what you need, let's see
> if you've got the parts.
>
> Send us the results of these two commands:
>
> locate libphp4.so
> grep -i php /etc/apache/*.conf
>
>
> Someone please correct those for Red Hat if they should be different.
>
> Mark, rather than /etc/apache it might be /etc/httpd and there might be an
> extra conf in that path, e.g. /etc/httpd/*.conf,
> /etc/apache/conf/*.conf or /etc/httpd/conf/*.conf
>
> > In your web root folder (most likely /var/www/html for RH7.3)
> > vi index.php
> > <? phpinfo() ?>
>
> An easier way is to use echo in this case. Make sure the file doesn't exist
> via ls.
>
> ls -l /var/www/html/info.php
> echo '<? phpinfo() ?>' > /var/www/html/info.php
>
> Now try to open the file with a web browser on that machine.
>
> http://127.0.0.1/info.php
>
> ciao,
>
> der.hans