Results 1 to 2 of 2
I wonder what is wrong after having completed what I thought was the installation of Apache using the stanton-finley installation notes I experienced the following [root@h ~]# service httpd start ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-20-2006 #1
- Join Date
- Nov 2004
Apache installation Syntax error
[root@h ~]# service httpd start
Starting httpd: Syntax error on line 768 of /etc/httpd/co nf/httpd.conf:
AddType requires at least two arguments, a mime type foll owed by one or more file extensions
[root@h~]# gedit /etc/httpd/conf/httpd.conf
I checked the stanton-finley installation notes many times and the line is exactly as I wrote it in line 768:
Under the "AddType application/x-compress .Z" and "AddType application/x-gzip .gz .tgz" lines add the line: "AddType application/x-httpd-php .php .phps .php3 .phtml .html .htm .shtml .fds".
the following is copied from my own gedit /etc/httpd/conf/httpd.conf. The last line is the one that is supposed to contain an error. I would be very grateful for an explanation of this.
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#AddType application/x-tar .tgz
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
- 05-21-2006 #2
- Join Date
- Apr 2005
- Charlottesville, VA
It appears that your line has no spaces, which would cause apache to complain, because to it, it only looks like one argument. Try adding a space before each period. Hope that helps.---sxeraverx---
Linux without a C Compiler is like eating Spaghetti with your mouth sewn shut. It just doesn't make sense.