PHP and httpd.conf
Having problems installing php with apache.
I've found the couple of lines on the net which go like this: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps But when I add them to httpd.conf and restart apache, I get the following error (in Bash) Syntax error on line 24 of /etc/httpd/conf/httpd.conf: Invalid command 'AddType', perhaps mis-spelled or defined by a module not included in the server configuration What is the correct config part in httpd.conf? |
Did you stick these lines inside some other directive? For example:
Code:
<Directory /whatever/> |
Hmmmm, no I didn't and I can see why that would cause the error I was getting. What do you suggest goes in the <directory /whatever/> bit - is that the path to PHP?
Thanks |
Do you have mod_mime loaded into apache? Look for the appropriate LoadModule and AddModule line in your httpd.conf file. You can see what modules are statically built into apache by typing httpd -l.
--jeremy |
This is what's in the file for mime_module.
LoadModule mime_module modules/mod_mime.so |
From the modules directory I am guessing you are using apache 2.x? If so try:
Quote:
|
Nope, I'm using 1.3.23
Thanks |
hmm...ok. Do you have a AddModule mod_mime.c line to go along with that LoadModule?
--jeremy |
Just searched through it now and that string isn't found.
|
All times are GMT -5. The time now is 01:14 PM. |