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

RE: [cobalt-users] httpd.conf errors ?



||>I installed PHP4 on my RaQ3 server. Upon installation there were
||>no errors
||>messages, when i restart my apache server also no errors appear.
||>But my PHP
||>files still do not work. The PHP file is located in the
||>/home/sites/home/web
||>directory.
<snip>

All of my sites have PHP, CGI, and SSI enabled by default. Here's an typical
entry (made generic, of course):
<VirtualHost 123.45.678.211>
ServerName www.domain.com
ServerAdmin admin
DocumentRoot /home/sites/site29/web
ServerAlias domain.com www.domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^123.45.678.211(:80)?$
RewriteCond %{HTTP_HOST}                !^www.domain.com(:80)?$
RewriteRule ^/(.*)                      http://www.domain.com/$1 [L,R]
RewriteOptions inherit
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site29/users/$1/web/$3
</VirtualHost>

Also in my srm.conf I've got these lines:
# PHP4 (backwards compatible with php3)
AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php4 .php

Yeah, I realize that there's some stuff repeated there, but it didn't seem
to "take" otherwise.
And don't forget to restart httpd whenever you make changes to your
httpd.conf or srm.conf so that Apache will recognize the changes.

Hope this helps!

Carrie Bartkowiak