Hiawatha / LHMP install - Error redirecting stdout

Using applications, configuring, problems
Post Reply
Message
Author
rubantin
Posts: 23
Joined: Fri 08 Feb 2013, 15:34

Hiawatha / LHMP install - Error redirecting stdout

#1 Post by rubantin »

# 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

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#2 Post by GustavoYz »

Change permissions for /dev/null, to 777 and try again.

rubantin
Posts: 23
Joined: Fri 08 Feb 2013, 15:34

#3 Post by rubantin »

ok... now getting a 503 - service unavailable error

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#4 Post by GustavoYz »

That's too general...

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. 
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. :P
** URI of error codes is here: http://www.web-cache.com/Writings/http- ... codes.html

rubantin
Posts: 23
Joined: Fri 08 Feb 2013, 15:34

#5 Post by rubantin »

Not sure how to "exec all the involved daemons as a non privileged user from the terminal. "

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#6 Post by GustavoYz »

Check this page, will clear some start/stop ideas.

Code: Select all

su someone 
/etc/init.d/rc.httpd start
Not sure which user should exec Hiawatha in your puppy, usually is 'spot', so should be `su spot`.

Could try like this too:

Code: Select all

su spot
$(which hiawatha)
Just do that as any user from a terminal and post output here.

rubantin
Posts: 23
Joined: Fri 08 Feb 2013, 15:34

#7 Post by rubantin »

Switched back to this thread.. tried another distro but it used too many resources... So, I am back to the drawing board... getting the 503... will post results soon

rubantin
Posts: 23
Joined: Fri 08 Feb 2013, 15:34

#8 Post by rubantin »

WOOHOO!!! found a distro of Webserverpuppy 1 with hiawatha... man its small, fast and pretty much preconfiged...

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#9 Post by GustavoYz »

Glad you finally found something that works for you. :P
I should recommend you XAMPP if you're after php-mysql learning, but is heavier than the whole puppy-server iso...

It will be nice to have an updated server pup available... :roll:

Post Reply