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

Mike Starke plug-discuss@lists.plug.phoenix.az.us
Sun, 15 Sep 2002 15:32:48 -0500


I could be wrong, but the seting you changed was actually
the DirectoryIndex directive for apache. All this does is search
for any of the file listed in a directory first and display it.
for instance http://localhost/ will display any of the files
listed in the DirectoryIndex option. If none exist, and you have
-Indexes in the root directive, nothing will be displayed
and apache sends a nastygram to the browser. By removing it, all
you have to do is enter http://localhost/info.php into your browser
and all is fine.

Perhaps, getting to know the httpd.conf file for apache will be helpful
in understanding it's behaviour.

Be careful of cached pages in your browser as you make adjustments
to apache/web pages. I recall going on many fishing trips looking
for my problem when it was actually a cached page in Netscrape from when I fixed
it an hour before.

v/r
Mike

On Sun, Sep 15, 2002 at 01:19:51PM -0700, Mark Berkwitt wrote:
 Interesting... I removed it as you suggested, restarted the server and I was 
 still able to display info.php.
 
 On Sunday 15 September 2002 12:55 pm, Mike Starke wrote:
 > There should be no need to add 'info.php' to the Directory Page Search
 > list. I would remove.
 >
 >
 > On Sun, Sep 15, 2002 at 12:43:53PM -0700, Mark Berkwitt wrote:
 >  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
 >
 >  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 >  PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
 >  To subscribe, unsubscribe, or to change  you mail settings:
 >  http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
 > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
 > To subscribe, unsubscribe, or to change  you mail settings:
 > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
 To subscribe, unsubscribe, or to change  you mail settings:
 http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss