Skip navigation

apache not starting

776 Views 4 Replies Latest reply: Jun 9, 2013 11:49 AM by BioRich RSS
oneHvT Level 1 Level 1 (25 points)
Currently Being Moderated
Apr 15, 2013 10:02 AM

Hi Folks,

 

Had Apache doing a simple html website under Tiger on my old PPC mini.  Then I updated to Leopard, and it stopped working.  I didn't need it any longer, so I let it go.  Now, I need for it to work.  Turned on Web Sharing, port 80 did not come on, and Activity Monitor confirmed that Apache was not running.

 

Here is what happens when I try to start it from the command line:

 

Mac-mini:~ Horst$ sudo bash -x /usr/sbin/apachectl -k start

Password:

+ ARGV='-k start'

+ HTTPD=/usr/sbin/httpd

+ test -f /usr/sbin/envvars

+ . /usr/sbin/envvars

++ DYLD_LIBRARY_PATH=/usr/lib:

++ export DYLD_LIBRARY_PATH

+ LYNX='lynx -dump'

+ STATUSURL=http://localhost:80/server-status

++ ulimit -H -n

+ ULIMIT_MAX_FILES='ulimit -S -n unlimited'

+ LAUNCHCTL=/bin/launchctl

+ LAUNCHD_JOB=/System/Library/LaunchDaemons/org.apache.httpd.plist

+ '[' 'xulimit -S -n unlimited' '!=' x ']'

+ ulimit -S -n unlimited

/usr/sbin/apachectl: line 73: ulimit: open files: cannot modify limit: Invalid argument

+ ERROR=0

+ '[' 'x-k start' = x ']'

+ case $ARGV in

+ /usr/sbin/httpd -k start

(2)No such file or directory: httpd: could not open error log file /private/var/log/apache2/error_log.

Unable to open logs

+ ERROR=1

+ exit 1

Mac-mini:~ Horst$

 

Can someone interpret what is happening here for me?  I am not that well-versed on the command line.

 

Horst

Mac mini, Mac OS X (10.5.8)
  • BDAqua Level 10 Level 10 (114,805 points)
    Currently Being Moderated
    Apr 15, 2013 2:00 PM (in response to oneHvT)

    Hello, when you turn on Web Sharing, does it not show a green dot & give the 2 IPs?

     

    In Security pref pane does Web Shating not show? What settings are there?

     

    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, after reboot do you stll get...

     

    No such file or directory: httpd: could not open error log file /private/var/log/apache2/error_log.

     

    Does that path exist or not on your Mac, if so what rights? Does system have R&W on that folder?

  • BDAqua Level 10 Level 10 (114,805 points)
    Currently Being Moderated
    Apr 16, 2013 10:30 AM (in response to oneHvT)

    Great news, good work, thanks Horst!

  • BioRich Level 1 Level 1 (65 points)
    Currently Being Moderated
    Jun 9, 2013 11:49 AM (in response to BDAqua)

    I had the same happening, but different issue. 

     

    kill all httpd processes then restart the box.  That might help.  I had zombie httpd's happening, even after server reboots. 

     

    Cheers

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.