Page 1 of 1
Apache Start Problems
Posted: Mon Dec 12, 2005 11:17 am
by bohimt
When i try to start apache:
[root@127 ~]# /usr/local/apache2/bin/apachectl start
Syntax error on line 118 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
----
I dont understand, becase it is the default config that came with it, except for a few changes. It's saying that commands like Order and and Deny are messed up...when i didnt touch those settings...
someone please help me!
Re: Apache Start Problems
Posted: Mon Dec 12, 2005 11:20 am
by Chris Corbyn
bohimt wrote:When i try to start apache:
[root@127 ~]# /usr/local/apache2/bin/apachectl start
Syntax error on line 118 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
----
I dont understand, becase it is the default config that came with it, except for a few changes. It's saying that commands like Order and and Deny are messed up...when i didnt touch those settings...
someone please help me!
It sounds like those options are sitting outside of the appropraite directives in the httpd.conf file (i.e. <Directory "/foo/bar/bill/joe/"></Directory> or such like).
Can you post the relevant section of your httpd.conf file?

-- Or Private Message me the full thing if that's easier.
ok
Posted: Mon Dec 12, 2005 11:28 am
by bohimt
I took out the commented lines that I did not use
Code: Select all
ServerRoot "/usr/local/apache2"
Listen 80
LoadModule php5_module modules/libphp5.so
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
User daemon
Group daemon
</IfModule>
</IfModule>
ServerAdmin bohimt@steadyshock.net
DocumentRoot "/usr/local/apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.html.var index.php
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
ErrorLog logs/error_log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Let me know if you need anything else!

thanks for the quick reply!
Update!!
Posted: Mon Dec 12, 2005 12:05 pm
by bohimt
UPDATE!!
Well, I took out most of the Order/Deny commands, and it will probably mess things up, but the server started. Only problem is, I type into my IE my ip address and it doesnt do anything. Hrm....
There are test index.html files in the directories so that shouldnt be a problem. It gives me a 404 screen not a "forbidden".
Any idea on the problem?