[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Database



On Tuesday 25 September 2001 22:48, you wrote:
> The srm.conf in my installation is empty except for a 'suggestion' that
> everything be put in the httpd.conf.

Yep, okay. Debian maintains httpd.conf, srm.conf & access.conf as separate 
files - Apache really treats them as one (i.e. any directive can go in any 
file), so RedHat & SuSE & others maintain only a httpd.conf

> <IfModule mod_php3.c>
>   AddType application/x-httpd-php3 .php3
>   AddType application/x-httpd-php3-source .phps
> </IfModule>

If this currently works for you, changing the .php3 to .php (but not the 
..-php3 to ...-php) should make it work. You did 'apachectl reload', didn't 
you?

> # PHP3 support
> <IfModule mod_php3.c>
> AddIcon /icons/php3.gif .php3
> AddIcon /icons/phps.gif .php3s .phps
> </IfModule>
> # End of PHP3 support

This is just telling the directory listing do-wocky what icons to use for php 
files - nothing much to do with php processing.

> neither x-httpd-php nor x-httpd-php3 are mentioned in mime.types. Should I
> add them in manually and, if so, would the form:

Ew. Having said that, you do have AddType directives, so you don't need to 
add them there. 

If you do an :

AddType application/x-httpd-php .php

within the IfModule, that should work (assuming your php is working already). 
If that doesn't work, having restarted Apache, check file permissions and 
whatnot. 

Cheers,

Alex.
___________________________________________________________________

Sheffield Linux User's Group - http://www.sheflug.co.uk . 
To unsubscribe from this list send mail to 
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.