Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12390 invoked from network); 12 Apr 2005 16:25:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2005 16:25:30 -0000 Received: (qmail 43014 invoked by uid 500); 12 Apr 2005 16:25:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 42985 invoked by uid 500); 12 Apr 2005 16:25:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42956 invoked by uid 99); 12 Apr 2005 16:25:06 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: 209.83.200.3 is neither permitted nor denied by domain of araheja@techquotes.com) Received: from ns1.pi2zone.com (HELO yourcakes.com) (209.83.200.3) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 12 Apr 2005 09:25:04 -0700 Received: (qmail 24544 invoked from network); 12 Apr 2005 16:26:35 -0000 Received: from 12-22-157-254.mastercard.com (HELO ?172.19.108.22?) (12.22.157.254) by yourcakes.com with SMTP; 12 Apr 2005 16:26:35 -0000 Message-ID: <425BF65D.10108@techquotes.com> Date: Tue, 12 Apr 2005 11:25:01 -0500 From: Aman Raheja User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: <425BE86B.6080600@snow.email.ne.jp> In-Reply-To: <425BE86B.6080600@snow.email.ne.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked Subject: Re: [users@httpd] init.d/httpd file missing and error running apachectl X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mark Sargent wrote: > Hi All, > > just recently installed ver 2.0.53 and went to restart after > configuring httpd.conf and got the following, Good move > > [root@localhost conf]# /etc/rc.d/init.d/httpd restart > -bash: /etc/rc.d/init.d/httpd: No such file or directory > > funny, cause when installing earlier today, on a work machine, it > existed. So, I then tried the following, because this package never installs it and on the other machine you had a different apache installed and that's what was executed and not the new one, when you ran the script - You might want to check which apache version are you running on that other box, as well. > > [root@localhost bin]# /usr/local/apache2/bin/apachectl restart > httpd: could not open document config file > /usr/local/apache/conf/httpd.conf > > why is it looking for apache as opposed to apache2.? Below is the > apachectl file, Did you copy your httpd.conf file from the older install of apache from this or another box and that still has the root set incorrectly? > > [root@localhost bin]# cat apachectl > #!/bin/sh > # > # Copyright 2000-2005 The Apache Software Foundation or its licensors, as > # applicable. > # > # Licensed under the Apache License, Version 2.0 (the "License"); > # you may not use this file except in compliance with the License. > # You may obtain a copy of the License at > # > # http://www.apache.org/licenses/LICENSE-2.0 > # > # Unless required by applicable law or agreed to in writing, software > # distributed under the License is distributed on an "AS IS" BASIS, > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > # See the License for the specific language governing permissions and > # limitations under the License. > # > # > # Apache control script designed to allow an easy command line interface > # to controlling Apache. Written by Marc Slemko, 1997/08/23 > # > # The exit codes returned are: > # XXX this doc is no longer correct now that the interesting > # XXX functions are handled by httpd > # 0 - operation completed successfully > # 1 - > # 2 - usage error > # 3 - httpd could not be started > # 4 - httpd could not be stopped > # 5 - httpd could not be started during a restart > # 6 - httpd could not be restarted during a restart > # 7 - httpd could not be restarted during a graceful restart > # 8 - configuration syntax error > # > # When multiple arguments are given, only the error from the _last_ > # one is reported. Run "apachectl help" for usage info > # > ARGV="$@" > # > # |||||||||||||||||||| START CONFIGURATION SECTION |||||||||||||||||||| > # -------------------- -------------------- > # > # the path to your httpd binary, including options if necessary > HTTPD='/usr/local/apache2/bin/httpd' > # > # pick up any necessary environment variables > if test -f /usr/local/apache2/bin/envvars; then > . /usr/local/apache2/bin/envvars > fi > # > # a command that outputs a formatted text version of the HTML at the > # url given on the command line. Designed for lynx, however other > # programs may work. > LYNX="lynx -dump" > # > # the URL to your server's mod_status status page. If you do not > # have one, then status and fullstatus will not work. > STATUSURL="http://localhost:80/server-status" > # > # Set this variable to a command that increases the maximum > # number of file descriptors allowed per child process. This is > # critical for configurations that use many file descriptors, > # such as mass vhosting, or a multithreaded server. > ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" > # -------------------- -------------------- > # |||||||||||||||||||| END CONFIGURATION SECTION |||||||||||||||||||| > > # Set the maximum number of file descriptors allowed per child process. > if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then > $ULIMIT_MAX_FILES > fi > > ERROR=0 > if [ "x$ARGV" = "x" ] ; then > ARGV="-h" > fi > > case $ARGV in > start|stop|restart|graceful) > $HTTPD -k $ARGV > ERROR=$? > ;; > startssl|sslstart|start-SSL) > $HTTPD -k start -DSSL > ERROR=$? > ;; > configtest) > $HTTPD -t > ERROR=$? > ;; > status) > $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' > ;; > fullstatus) > $LYNX $STATUSURL > ;; > *) > $HTTPD $ARGV > ERROR=$? > esac > > exit $ERROR > > I don't see any reference to calling httpd.conf from apache as opposed > to apache2. Am I missing something..? Was following this, > > http://www.php.net/manual/en/install.unix.php > > Anyone know what's going on..? Cheers. > > php=5.0.4 > apache=2.0.53 > OS=Fedora 3 (same as work machine, which had no errors like this) > Mark sargent. > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > > Aman Raheja TechQuotes.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org