Please HELP!

Derek Ragona derek at computinginnovations.com
Sun Dec 3 13:52:27 PST 2006


Which version of FreeBSD are you running?  Which version of apache?

Have you updated either recently?

         -Derek


At 05:51 PM 12/2/2006, VeeJay wrote:
>Hi
>
>I am sorry to post this question here but I am desparet to get my freebsd
>box work soonest possible.
>
>I have installed apache20 on my freebsd box but am unable to run with new
>httpd.conf changes....
>
>When I run the apache, with command:
>
>                 # /usr/local/sbin/apachectl restart
>
>I get this message:
>
>                  httpd not running, trying to start
>#
>In the error log error is like this:
>
>[Sun Dec 03 01:29:59 2006] [warn] pid file /var/apache/logs/httpd.pid
>overwritten -- Unclean shutdown of previous Apache run?
>
>Even I delete the pid file, but it still doesnt work...
>
>Please HELP!
>
>my httpd.conf is mentioned below;
>
>
># =================================================
># Basic settings
># =================================================
>Listen 0.0.0.0:80
>User apache
>Group apache
>ServerAdmin webmaster at domain1.com
>UseCanonicalName Off
>ServerSignature Off
>HostnameLookups Off
>ServerTokens Prod
>ServerRoot "/usr/local"
>DocumentRoot "/home/apache"
>PidFile /var/apache/logs/httpd.pid
>ScoreBoardFile /var/apache/logs/httpd.scoreboard
><IfModule mod_dir.c>
>    DirectoryIndex index.html
></IfModule>
>
># =================================================
># HTTP and performance settings
># =================================================
>Timeout 300
>KeepAlive On
>MaxKeepAliveRequests 100
>KeepAliveTimeout 15
><IfModule prefork.c>
>    MinSpareServers 5
>    MaxSpareServers 10
>    StartServers 5
>    MaxClients 150
>    MaxRequestsPerChild 0
></IfModule>
>
># =================================================
># Load Module Section; Dynamic Shared Object (DSO) Support
># =================================================
>LoadModule access_module libexec/apache2/mod_access.so
>LoadModule auth_module libexec/apache2/mod_auth.so
>LoadModule log_config_module libexec/apache2/mod_log_config.so
>LoadModule mime_module libexec/apache2/mod_mime.so
>LoadModule dir_module libexec/apache2/mod_dir.so
>LoadModule rewrite_module libexec/apache2/mod_rewrite.so
># Other required modules are compiled such as Compiled in modules: core.c
>prefork.c http_core.c mod_so.c
>
># =================================================
># Access control
># =================================================
><Directory />
>Options None
>    AllowOverride None
>    Order deny,allow
>    Deny from all
></Directory>
><Directory "/home/apache/default/public_html">
>    Order allow,deny
>    Allow from all
></Directory>
>
># =================================================
># MIME encoding
># =================================================
><IfModule mod_mime.c>
>    TypesConfig /usr/local/etc/apache2/mime.types
></IfModule>
>DefaultType text/plain
><IfModule mod_mime.c>
>    AddEncoding x-compress .Z
>    AddEncoding x-gzip .gz .tgz
>    AddType application/x-compress .Z
>    AddType application/x-gzip .gz .tgz
>    AddType application/x-tar .tgz
></IfModule>
>
># =================================================
># Logs
># =================================================
>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
>ErrorLog /var/apache/logs/error_log
>CustomLog /var/apache/logs/access_log combined
>
># =================================================
># Virtual hosts
># =================================================
>NameVirtualHost *
><VirtualHost *>
>    DocumentRoot "/home/apache/domain1.com/public_html"
>    ServerName "www.domain1.com"
>    ErrorLog /var/apache/logs/domain1.com/error_log
>    CustomLog /var/apache/logs/domain1.com/access_log combined
></VirtualHost>
><VirtualHost *>
>    DocumentRoot "/home/apache/domain2.com/public_html"
>    ServerName "www.domain2.com"
>    ErrorLog /var/apache/logs/domain2.com/error_log
>    CustomLog /var/apache/logs/domain2.com/access_log combined
></VirtualHost>
>
>--
>Thanks!
>
>BR / vj
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>--
>This message has been scanned for viruses and
>dangerous content by MailScanner, and is
>believed to be clean.
>MailScanner thanks transtec Computers for their support.
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the freebsd-questions mailing list