Apache Start Problems

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bohimt
Forum Newbie
Posts: 3
Joined: Sat Dec 10, 2005 11:03 pm
Location: Atlanta, Georgia

Apache Start Problems

Post 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!
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Apache Start Problems

Post 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.
bohimt
Forum Newbie
Posts: 3
Joined: Sat Dec 10, 2005 11:03 pm
Location: Atlanta, Georgia

ok

Post 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! :D thanks for the quick reply!
bohimt
Forum Newbie
Posts: 3
Joined: Sat Dec 10, 2005 11:03 pm
Location: Atlanta, Georgia

Update!!

Post 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?
Post Reply