LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2004, 12:36 AM   #1
emsky
LQ Newbie
 
Registered: Mar 2004
Location: china
Posts: 2

Rep: Reputation: 0
apachectl start error


hi there
when i finished the installation of mysql-5.0.0alpha , httpd-2.0.47 and php-5.00RC1 in Fedora Core1 ,i 'd thought it must be ok to start it by executing "#service httpd start" but it indicates some error following:

httpd Syntax error on line 357 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
[root@emsky bin]# httpd
Syntax error on line 401 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryIndex', perhaps mis-spelled or defined by a module not included in the server configuration
[root@emsky bin]# httpd
Syntax error on line 401 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryIndex', perhaps mis-spelled or defined by a module not included in the server configuration
---------delete some lines just exactly the same error as above----

and i make the line which it indicated commented with "#",but it doesn't do anything. and i even make the some lines commented in ssl.conf.some friends here give me the idea to start the httpd using "apachectl start" ,the error is still the same.

any one could give me some insights? thanks in advance!
 
Old 04-04-2004, 01:16 AM   #2
emsky
LQ Newbie
 
Registered: Mar 2004
Location: china
Posts: 2

Original Poster
Rep: Reputation: 0
and here is the content of httpd.conf in my FC1:
ServerRoot "/server/apache"
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
LockFile logs/accept.lock
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
<IfModule !perchild.c>
ScoreBoardFile logs/apache_runtime_status
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>

<IfModule beos.c>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>

<IfModule mpm_netware.c>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
</IfModule>

<IfModule mpmt_os2.c>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>

Listen 192.168.0.11:80

LoadModule php5_module modules/libphp5.so
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 20971520
</Files>

<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>

User apache
Group apache
</IfModule>
</IfModule>

ServerAdmin emsky@emsky.com

ServerName dns1.emsky.name:80

UseCanonicalName Off

DocumentRoot "/server/apache/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/server/apache/htdocs">
Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all

</Directory>

DirectoryIndex index.htm index.html index.php

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups On

ErrorLog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access_log common

CustomLog logs/access_log combined

ServerTokens Full

ServerSignature On


<Directory "/server/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


<Directory "/server/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all

<Files *.html>
SetHandler type-map
</Files>

SetEnvIf Request_URI ^/manual/de/ prefer-language=de
SetEnvIf Request_URI ^/manual/en/ prefer-language=en
SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr
SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja
SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko
SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru
RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>

ScriptAlias /cgi-bin/ "/server/apache/cgi-bin/"

<IfModule mod_cgid.c>

</IfModule>


<Directory "/server/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
---delete some AddIconByType lines here-----
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage da .dk
----delete some AddLanguae **** lines here------
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
AddLanguage hr .hr

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw

AddDefaultCharset gb2312

AddCharset ISO-8859-1 .iso8859-1 .latin1
-------delete some AddCharset lines here-------
AddCharset Big5 .Big5 .big5
AddCharset UTF-8 .utf8

AddCharset shift_jis .sjis

AddType application/x-tar .tgz
AddType image/x-icon .ico



AddHandler type-map var


ErrorDocument 500 "The server made a boo boo."
ErrorDocument 404 /missing.html
ErrorDocument 404 "/cgi-bin/missing_handler.pl"

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>

<VirtualHost 192.168.0.12:80>
ServerAdmin webmaster@dummy-host.emsky.com
DocumentRoot /server/discuz
ServerName dns1.emsky.com
ErrorLog logs/dummy-host.emsky.com-error_log
CustomLog logs/dummy-host.emsky.com-access_log common
DirectoryIndex index.htm index.html index.php index.jsp
</VirtualHost>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very confusing:httpd or apachectl start? backpacker Linux - Software 2 06-23-2005 08:12 AM
apachectl start not working cparker15 Linux - Networking 2 01-20-2005 09:15 PM
apachectl startssl error message harlow400 Linux - Software 2 03-01-2004 03:31 AM
suddenly apachectl (2.0.47) wont start latino Linux - Networking 3 08-28-2003 08:50 AM
apachectl sopiaz57 Linux - Software 5 04-11-2003 07:11 PM


All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration