Results 1 to 2 of 2
Thread: Apache installation Syntax error
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 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
- 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.