|
|
Personal Web Sharing / Apache not starting up
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
A search didn't show much on Apache / PWS, and certainly not about the following weird scenario, so...
I have a PB w/ 10.4.8, and am just now trying to start up PWS (Apache) in system preferences/sharing. Clicking the box beside PWS causes dialogue box to say "Personal Web Sharing starting up..."
But it says that forever. Closing preferences windows ceases this phenomenon, but I always get same results. No other sharing is enabled. Restarting doesn't help.
Meanwhile, on a TiBook with my backup system (thus also 10.4.8), clicking on PWS in the sys preferences starts up PWS within 2 secs. Similarly on an icebook with 10.3.x
Nothing remarkable about the AL Powerbook system I'm running.
Anybody know a way to do the apache startup in Terminal ? or some hypothesis why Apache's not liking this PB?
Muchos gracias!
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
A little more (confusing-to-me) information:
When I try to get Apache version at Terminal ) via " httpd -v", I get:
Server version: Apache/1.3.33 (Darwin)
Server built: Mar 20 2005 15:08:27
(even though syspref/sharing (after I've booted via non-safe reboot) says PWS is NOT on)
Well... does that mean *Terminal* thinks Apache is running? Or just that that's the version *available*?
Also, when I browse to:
http://localhost/
I get:
Apache/2.0.45 (Unix) PHP/4.3.1 DAV/2 Server at localhost Port 80
huh? Who thinks I've got Apache 2.x ? Isn't it still 1.3 that came with OS X as of Tiger? (I sure haven't done any Apache installing attempts.)
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Do a:
"which httpd"
You probably do have another Apache install in there... Try a:
ps -aux | grep httpd
Which should show the path where this version of Apache is running from.
To answer your earlier question, doing a: httpd -v does not start Apache, it simply tells you waht version the file is - just like getting info on a file in the Finder.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
Another test, using terminal command I found: "sudo apachectl start"
This gave me:
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/pinneaur.conf
/usr/sbin/apachectl start: httpd started
BUT: Despite this saying Apache has started, the syspref/sharing says it's OFF. ???
Thanks, besson. Your command showed me:
RP:~ username$ ps -aux | grep httpd
username 332 0.0 0.0 27372 428 p1 S+ 11:48AM 0:00.01 grep httpd
Which I can't really interpret (this was run while *outside* safe mode - so it says no Apache running.) Does this mean anything to someone else. I'll reboot is safemode now and see what both of those look like.
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
I'm not sure how safe mode came into the picture here.. PHP's safe mode?
What do you see in Apache's error log?
sudo tail /var/log/httpd/error_log
There is a chance that is failing right after starting up, and writing this error to log. System Preferences simply reports on whether the Apache process is running based on its PID (process ID).
I'm willing to bet your error log will reveal the source of this mystery.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
SAFE: I'm referring to reboot OS X in Safe Mode: that causes PWS to function just fine.
Error log (after normal system boot):
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/pinneaur.conf
[Mon Mar 5 12:01:01 2007] [notice] Apache/1.3.33 (Darwin) PHP/5.2.1 configured -- resuming normal operations
[Mon Mar 5 12:01:01 2007] [notice] Accept mutex: flock (Default: flock)
[Mon Mar 5 12:01:46 2007] [notice] caught SIGTERM, shutting down
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/pinneaur.conf
[Mon Mar 5 12:15:04 2007] [crit] (48)Address already in use: make_sock: could not bind to port 80
I can't interpret... but it doesn't sound good
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
And correction on one statement above...
When I reboot OS is Safe Mode (holding down shift key), starting Apache in Terminal *does* get reflected in the SysPrefs/sharing panel.
Does the ref to entropy-php.conf (I recently DLd PHP 5 from them) mean it might be doing something to my port 80 -- something I could change in the php5 .conf file? (I don't know why that's still labeled "+entropy-php")
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by Love Calm Quiet
SAFE: I'm referring to reboot OS X in Safe Mode: that causes PWS to function just fine.
Error log (after normal system boot):
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/pinneaur.conf
[Mon Mar 5 12:01:01 2007] [notice] Apache/1.3.33 (Darwin) PHP/5.2.1 configured -- resuming normal operations
[Mon Mar 5 12:01:01 2007] [notice] Accept mutex: flock (Default: flock)
[Mon Mar 5 12:01:46 2007] [notice] caught SIGTERM, shutting down
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/+entropy-php.conf
Processing config file: /private/etc/httpd/users/pinneaur.conf
[Mon Mar 5 12:15:04 2007] [crit] (48)Address already in use: make_sock: could not bind to port 80
I can't interpret... but it doesn't sound good
This is your key right here:
[Mon Mar 5 12:15:04 2007] [crit] (48)Address already in use: make_sock: could not bind to port 80
Some other startup script has tried to startup a separate install of Apache 2.x at the precise time Apple's bundled Apache (PWS) starts up. Both ultimately fail.
Have you installed Macports and Apache using Macports? Apache off a disk image?
To correct this problem, I'd suggest looking in your Startup Items folders for Apache startup scripts. Once you have found it, by examining its contents you can determine where Apache 2 was installed to. However, if all else fails, you can also search your entire harddrive for it by running this command:
sudo find / -name httpd
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by Love Calm Quiet
And correction on one statement above...
When I reboot OS is Safe Mode (holding down shift key), starting Apache in Terminal *does* get reflected in the SysPrefs/sharing panel.
Does the ref to entropy-php.conf (I recently DLd PHP 5 from them) mean it might be doing something to my port 80 -- something I could change in the php5 .conf file? (I don't know why that's still labeled "+entropy-php")
PHP is a run-time library, it is not a process that is always running and listening on a port. This is not your problem, although it might be possible that whatever you installed also installed a copy of Apache 2 and a startup script to go along with it. See my last post about tracking down this startup script.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: CO
Status:
Offline
|
|
Thanks, Besson!
That search revealed : mulp/Library/eSuite4X/Apache2/Executables/sbin/httpd
So an old copy of eSuite4X was activating Apache2 !
I'd of thought it would have happened on my TiBook, too, but I've turned it off in the eSuite4x panel, and I bet it'll be better from here on.
Very kind of you to give me a tutorial in some Terminal commands in the process!
|
TOMBSTONE: "He's trashed his last preferences"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|