Hiawatha / LHMP install - Error redirecting stdout
Hiawatha / LHMP install - Error redirecting stdout
# hiawatha
Error redirecting stdout
# hiawatha.run check
bash: hiawatha.run: command not found
# /etc/init.d/rc.httpd stop
stopping PHP FastCGI daemons
killall: hiawatha: no process killed
# /etc/init.d/rc.httpd start
read /var/run/php-fcgi.pid: No such file or directory
starting PHP FastCGI daemons
error redirecting stdout
PHP FastCGI daemon exited with code 256
Error redirecting stdout
Error redirecting stdout
# hiawatha.run check
bash: hiawatha.run: command not found
# /etc/init.d/rc.httpd stop
stopping PHP FastCGI daemons
killall: hiawatha: no process killed
# /etc/init.d/rc.httpd start
read /var/run/php-fcgi.pid: No such file or directory
starting PHP FastCGI daemons
error redirecting stdout
PHP FastCGI daemon exited with code 256
Error redirecting stdout
That's too general...
Sound like troubles on the php daemon.
Make sure the web server is running and the pid file is under /var/run/something.
Be careful, Puppy runs as root, but Hiawatha doesn't: Im not sure if that changed in newer puppies, but Hiawatha is meant to run as a non privileged user, so you shuold try to keep that way in flies and resources related to it. Thus, CGI process/demons/scripts/anything should run as non privileged user as well (although may work fine anyway).
So, let's troubleshoot that, change permissions for /var/run to 755 and exec all the involved daemons as a non privileged user from the terminal.
Paste the output.
* My silly error codes script is here.
** URI of error codes is here: http://www.web-cache.com/Writings/http- ... codes.html
Code: Select all
perl code_server_reponses.pl 503
503 Service Unavailable
--------------------------
This code indicates the server is temporarily unable to process the
client's request. A server that becomes overloaded may use this code to
let the client know that it can retry the request later.
Make sure the web server is running and the pid file is under /var/run/something.
Be careful, Puppy runs as root, but Hiawatha doesn't: Im not sure if that changed in newer puppies, but Hiawatha is meant to run as a non privileged user, so you shuold try to keep that way in flies and resources related to it. Thus, CGI process/demons/scripts/anything should run as non privileged user as well (although may work fine anyway).
So, let's troubleshoot that, change permissions for /var/run to 755 and exec all the involved daemons as a non privileged user from the terminal.
Paste the output.
* My silly error codes script is here.
** URI of error codes is here: http://www.web-cache.com/Writings/http- ... codes.html
Check this page, will clear some start/stop ideas.
Not sure which user should exec Hiawatha in your puppy, usually is 'spot', so should be `su spot`.
Could try like this too:
Just do that as any user from a terminal and post output here.
Code: Select all
su someone
/etc/init.d/rc.httpd start
Could try like this too:
Code: Select all
su spot
$(which hiawatha)