index.php not automatically displaying

2008-01-12 Thread Chris Maness
I have two web servers -- one old, and another I have just set up.  I 
have tried to set up the new http.conf the same for php files, but the 
new one does not automatically parse index.php like index.html.  This 
works on the old server, but not the new.


Here are what I think the relevant lines in http.conf:

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
IfModule mod_dir.c
   IfModule mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.php3 index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.php3 index.html
   /IfModule
   /IfModule
   IfModule !mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
   IfModule !mod_php5.c
   IfModule mod_php5.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php5.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
/IfModule
#
IfModule mod_php5.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
/IfModule
#
#

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: index.php not automatically displaying

2008-01-12 Thread Daniel Rucci

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Maness wrote:
| I have two web servers -- one old, and another I have just set up.  I 
have tried to set up the new http.conf the same for php files, but the 
new one does not automatically parse index.php like index.html.  This 
works on the old server, but not the new.

I have
AddType application/x-httpd-php .php

and

IfModule dir_module
~DirectoryIndex index.html index.php
/IfModule

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHiVya35WRARjlw0YRAm2HAJ44kEEO3oSg31AP6iLZY57UHJYJXwCdE1nN
kSohV1xCrGQdW/yJALS+7TI=
=pEo7
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: index.php not automatically displaying

2008-01-12 Thread Chris Maness

Daniel Rucci wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Maness wrote:
| I have two web servers -- one old, and another I have just set up.  
I have tried to set up the new http.conf the same for php files, but 
the new one does not automatically parse index.php like index.html.  
This works on the old server, but not the new.

I have
AddType application/x-httpd-php .php

and

IfModule dir_module
~DirectoryIndex index.html index.php
/IfModule

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHiVya35WRARjlw0YRAm2HAJ44kEEO3oSg31AP6iLZY57UHJYJXwCdE1nN
kSohV1xCrGQdW/yJALS+7TI=
=pEo7
-END PGP SIGNATURE-

I added this to my httpd.conf, but it still does not automatically 
parse.  I have to click on index.php


Thanks

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: index.php not automatically displaying

2008-01-12 Thread Chris Maness

Erik Cederstrand wrote:

Chris Maness wrote:
I have two web servers -- one old, and another I have just set up.  I 
have tried to set up the new http.conf the same for php files, but 
the new one does not automatically parse index.php like index.html.  
This works on the old server, but not the new.


Here are what I think the relevant lines in http.conf:

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
IfModule mod_dir.c
   IfModule mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.php3 index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.php3 index.html
   /IfModule
   /IfModule
   IfModule !mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
   IfModule !mod_php5.c
   IfModule mod_php5.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php5.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
/IfModule
#
IfModule mod_php5.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
/IfModule


Your email is void of any verison numbers, but are you using mod_php5? 
If so, the way I read that Apache config is:


  IfModule !mod_php3.c - True
IfModule !mod_php4.c - True
  DirectoryIndex index.html

  (and no other paths followed)

which would explain your situation.

Erik

I am using mod_php5.  What is the correct configuration.

Chris

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: index.php not automatically displaying

2008-01-12 Thread Chris Maness

Erik Cederstrand wrote:

Chris Maness wrote:

Erik Cederstrand wrote:

Chris Maness wrote:
I have two web servers -- one old, and another I have just set up.  
I have tried to set up the new http.conf the same for php files, 
but the new one does not automatically parse index.php like 
index.html.  This works on the old server, but not the new.


Here are what I think the relevant lines in http.conf:

#
# DirectoryIndex: Name of the file or files to use as a pre-written 
HTML

# directory index.  Separate multiple entries with spaces.
#
IfModule mod_dir.c
   IfModule mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.php3 index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.php3 index.html
   /IfModule
   /IfModule
   IfModule !mod_php3.c
   IfModule mod_php4.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php4.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
   IfModule !mod_php5.c
   IfModule mod_php5.c
   DirectoryIndex index.php index.html
   /IfModule
   IfModule !mod_php5.c
   DirectoryIndex index.html
   /IfModule
   /IfModule
/IfModule
#
IfModule mod_php5.c
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
/IfModule


Your email is void of any verison numbers, but are you using 
mod_php5? If so, the way I read that Apache config is:


  IfModule !mod_php3.c - True
IfModule !mod_php4.c - True
  DirectoryIndex index.html

  (and no other paths followed)

which would explain your situation.


I am using mod_php5.  What is the correct configuration.


I just have

IfModule dir_module
DirectoryIndex index.html index.php
/IfModule

in mine. If you really want the extra IfModule checks, try

IfModule dir_module
IfModule php5_module
DirectoryIndex index.html index.php
/IfModule
IfModule !php5_module
DirectoryIndex index.html
/IfModule
/IfModule

Both php3 and php4 have reached EOL, so keep them out of the config 
file unless you're actually using them.


Erik
It works, but I still have to click on index.php for it to come up.  
Even after refreshing the page.


Chris

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]