LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2014, 04:19 PM   #1
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Rep: Reputation: Disabled
Apache won't start


I can't seem to find a solution so hopefully someone out there can help me. When I attempt to start apache with "/etc/rc.d/rc.httpd start" there are no errors or any complaints and I get my prompt back almost instantly. However, the server is not running. If I ps aux there is no httpd running, and if I point my browser to the ip address there is nothing but a nice error message. Here is my httpd.conf:

# httpd.conf
ServerRoot "/usr"
PidFile /var/run/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0

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

AccessFileName .htaccess

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

DefaultType None
HostnameLookups Off
ErrorLog /var/log/httpd/error_log
LogLevel warn

LoadModule authz_host_module lib/httpd/modules/mod_authz_host.so
LoadModule authz_groupfile_module lib/httpd/modules/mod_authz_groupfile.so
LoadModule authz_core_module lib/httpd/modules/mod_authz_core.so
LoadModule auth_basic_module lib/httpd/modules/mod_auth_basic.so
LoadModule reqtimeout_module lib/httpd/modules/mod_reqtimeout.so
LoadModule mime_module lib/httpd/modules/mod_mime.so
LoadModule setenvif_module lib/httpd/modules/mod_setenvif.so
LoadModule ssl_module lib/httpd/modules/mod_ssl.so
LoadModule mpm_event_module lib/httpd/modules/mod_mpm_event.so
LoadModule status_module lib/httpd/modules/mod_status.so
LoadModule autoindex_module lib/httpd/modules/mod_autoindex.so
LoadModule vhost_alias_module lib/httpd/modules/mod_vhost_alias.so
LoadModule negotiation_module lib/httpd/modules/mod_negotiation.so
LoadModule dir_module lib/httpd/modules/mod_dir.so
LoadModule alias_module lib/httpd/modules/mod_alias.so
LoadModule php5_module lib/httpd/modules/libphp5.so

<IfModule alias_module>
#add aliases
</IfModule>

<IfModule autoindex_module>
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8
</IfModule>

<IfModule negotiation_module>
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no p pt pt-BR ru sv tr
ForceLanguagePriority Prefer Fallback
</IfModule>

<IfModule reqtimeout_module>
RequestReadTimeout header=20-40,minrate=500
RequestReadTimeout body=10,minrate=500
</IfModule>

<IfModule setenvif_module>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^gvfs/1" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCMI" redirect-carefully
BrowserMatch "Konqueror/4" redirect-carefully
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect builtin
SSLRandomSeed connect file:/dev/urandom 512
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin
SSLSessionCache shmcb:/var/run/httpd/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLProtocol all -SSLv2
SSLEngine on
SSLCertificatFile /etc/ssl/certs/webserver.pem
SSLCertificateKeyFile /etc/ssl/private/webserver.pem
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>

BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /home/www/secure
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</IfModule ssl_module>

<IfModule status_module>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 192.0.2.0/24
</Location>
</IfModule>

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/www/data
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/data>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

I did guess on some stuff but I was hoping if anything was wrong it would complain about it. Any suggestions are welcome.

Thanks
 
Old 05-14-2014, 04:59 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 528

Rep: Reputation: Disabled
Look in the file /var/log/httpd/error_log to see if there is a message explaining what went wrong.

And/or run: apachectl configtest
to check the config file (although I suspect it will be ok).
 
Old 05-14-2014, 06:13 PM   #3
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Original Poster
Rep: Reputation: Disabled
The /var/run/http.pid file had the wrong pid so the script was trying to kill the wrong process and it wouldn't start because it thought it was running. At least thats my best guess. After removing the .pid file and rebooting apache is working.
 
  


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
Apache won't start because... nutnut Linux - Server 2 12-22-2010 08:49 PM
Apache won't start jhwilliams Linux - Software 5 11-08-2007 12:01 AM
apache won't start mr_dizzle Linux - Software 4 12-08-2006 06:03 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM
apache won't start at all... ctzimmerman Linux - Networking 3 06-01-2001 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:23 AM.

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
Open Source Consulting | Domain Registration