| Author |
Message |
rubantin
Joined: 08 Feb 2013 Posts: 23
|
Posted: Tue 12 Feb 2013, 12:22 Post subject:
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
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 866 Location: .ar
|
Posted: Tue 12 Feb 2013, 13:56 Post subject:
|
|
Change permissions for /dev/null, to 777 and try again.
_________________

|
|
Back to top
|
|
 |
rubantin
Joined: 08 Feb 2013 Posts: 23
|
Posted: Wed 13 Feb 2013, 17:56 Post subject:
|
|
ok... now getting a 503 - service unavailable error
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 866 Location: .ar
|
Posted: Thu 14 Feb 2013, 12:01 Post subject:
|
|
That's too general...
| Code: | 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.
** URI of error codes is here: http://www.web-cache.com/Writings/http-status-codes.html
_________________

|
|
Back to top
|
|
 |
rubantin
Joined: 08 Feb 2013 Posts: 23
|
Posted: Thu 14 Feb 2013, 13:23 Post subject:
|
|
Not sure how to "exec all the involved daemons as a non privileged user from the terminal. "
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 866 Location: .ar
|
Posted: Sat 16 Feb 2013, 19:00 Post subject:
|
|
Check this page, will clear some start/stop ideas.
| Code: | 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: | su spot
$(which hiawatha) |
Just do that as any user from a terminal and post output here.
_________________

|
|
Back to top
|
|
 |
rubantin
Joined: 08 Feb 2013 Posts: 23
|
Posted: Sat 16 Feb 2013, 19:25 Post subject:
|
|
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
|
|
Back to top
|
|
 |
rubantin
Joined: 08 Feb 2013 Posts: 23
|
Posted: Wed 20 Feb 2013, 12:07 Post subject:
|
|
WOOHOO!!! found a distro of Webserverpuppy 1 with hiawatha... man its small, fast and pretty much preconfiged...
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 866 Location: .ar
|
Posted: Wed 20 Feb 2013, 14:20 Post subject:
|
|
Glad you finally found something that works for you.
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...
_________________

|
|
Back to top
|
|
 |
|