Breaking things. Perfect. *stressed*

AndruC

Registered
Jan 23, 2012
3
0
51
cPanel Access Level
Root Administrator
I've been temporarily thrust into the role of server admin at the small company I work for, after the previous left. I have some experience working with it, but my deeper knowledge is limited.

After using EasyApache to rebuild PHP to 5.3.9, though the build was successful, Apache refused to start back up after the reset, leaving me with this lovely message:

Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.

If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.

You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.

[Mon Jan 23 21:38:14 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.11 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
[Mon Jan 23 21:38:51 2012] [notice] caught SIGTERM, shutting down
[Mon Jan 23 21:38:53 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:38:53 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.
[Mon Jan 23 21:39:01 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:39:01 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.
[Mon Jan 23 21:39:53 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:48:35 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:49:34 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:57:33 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Mon Jan 23 21:57:33 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable.
The thing is, I've since reinstalled passenger, and the /usr/local/cpanel/scripts/ssl_crt_status command doesn't exist.


Thoughts?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Does Apache restart after the Passenger reinstall? If not, are you still receiving that exact same error message?

If the same message is occurring, then what does this show?

Code:
ls -l /usr/lib/phusion-passenger/agents/PassengerWatchdog
Also, how precisely did you install mod_rails on the machine? I'm asking as I have a guide on installing it for cPanel:

Installing mod_rails and Rails 3.0.9 on a cPanel machine - cPanel & WHM Admin Blog
 

AndruC

Registered
Jan 23, 2012
3
0
51
cPanel Access Level
Root Administrator
The log is as written after the passenger reinstall. Pre-reinstall (awkward) gave me the same reasons, but the statements in the log were in a slightly different order.

It was reinstalled using cPanel's ruby gem module installer.

And upon examination, I'm noticing that /usr/lib/phusion-passenger/ doesn't exist. And yet "Successfully installed passenger-3.0.11".

I'll be honest, I'm a little out of my element here.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
How about /usr/local/lib/phusion-passenger on the machine? If that does exist, try symlinking it to /usr/lib/phusion-passenger:

Code:
ln -s /usr/local/lib/phusion-passenger /usr/lib/phusion-passenger
 

AndruC

Registered
Jan 23, 2012
3
0
51
cPanel Access Level
Root Administrator
I appreciate the help coming in. Woke up to a running Apache server.

Looks like it restarted itself successfully shortly after I left the forums last night, and all is currently well.

FTR: /usr/local/lib/phusion-passenger/ didn't exist either.