From owner-freebsd-questions@FreeBSD.ORG Sun Dec 3 08:32:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7363216A416 for ; Sun, 3 Dec 2006 08:32:11 +0000 (UTC) (envelope-from maanjee@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99AEF43CA2 for ; Sun, 3 Dec 2006 08:31:45 +0000 (GMT) (envelope-from maanjee@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so3162713wxc for ; Sun, 03 Dec 2006 00:32:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ig6A1Hy/0KLg92YeVnV4GcJjS0Sxqa6V0X33pfYweHLjmF0LFINaWWaQ6I68KxUh+B75YwMeZqVGsbtyeT0YXp8amakCgoq1h1KZnA5ncGnB0CXFvfkEYVGbHZU8ANX9HmqiIKXjjs+M8pui5H1Mq2mHm/dzS3I+UMHkzXHqH3Y= Received: by 10.100.58.4 with SMTP id g4mr1063917ana.1165134730371; Sun, 03 Dec 2006 00:32:10 -0800 (PST) Received: by 10.100.33.13 with HTTP; Sun, 3 Dec 2006 00:32:10 -0800 (PST) Message-ID: <2cd0a0da0612030032y44da94aha241843c289a5ab7@mail.gmail.com> Date: Sun, 3 Dec 2006 09:32:10 +0100 From: VeeJay To: "Per olof Ljungmark" In-Reply-To: <45721636.9040004@intersonic.se> MIME-Version: 1.0 References: <2cd0a0da0612021551r7e5cb264xa7408cc6aceda1ed@mail.gmail.com> <45721636.9040004@intersonic.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Please HELP! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 08:32:11 -0000 Hi Thanks you. But it does not work? I have spend whole night to solve this problem... but still haven't had it work.... On 12/3/06, Per olof Ljungmark wrote: > > 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@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 > > > > DirectoryIndex index.html > > > > > > # ================================================= > > # HTTP and performance settings > > # ================================================= > > Timeout 300 > > KeepAlive On > > MaxKeepAliveRequests 100 > > KeepAliveTimeout 15 > > > > MinSpareServers 5 > > MaxSpareServers 10 > > StartServers 5 > > MaxClients 150 > > MaxRequestsPerChild 0 > > > > > > # ================================================= > > # 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 > > # ================================================= > > > > Options None > > AllowOverride None > > Order deny,allow > > Deny from all > > > > > > Order allow,deny > > Allow from all > > > > > > # ================================================= > > # MIME encoding > > # ================================================= > > > > TypesConfig /usr/local/etc/apache2/mime.types > > > > DefaultType text/plain > > > > 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 > > > > > > # ================================================= > > # 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 * > > > > 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 > > > > > > 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 > > > > > Try > less /usr/local/etc/rc.d/apache2 > > Does that answer your question? > -- Thanks! BR / vj