Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 23:10
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Hiawatha / LHMP install - Error redirecting stdout
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
rubantin

Joined: 08 Feb 2013
Posts: 23

PostPosted: 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
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Tue 12 Feb 2013, 13:56    Post subject:  

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

Back to top
View user's profile Send private message 
rubantin

Joined: 08 Feb 2013
Posts: 23

PostPosted: Wed 13 Feb 2013, 17:56    Post subject:  

ok... now getting a 503 - service unavailable error
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

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

_________________

Back to top
View user's profile Send private message 
rubantin

Joined: 08 Feb 2013
Posts: 23

PostPosted: 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
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: 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
View user's profile Send private message 
rubantin

Joined: 08 Feb 2013
Posts: 23

PostPosted: 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
View user's profile Send private message 
rubantin

Joined: 08 Feb 2013
Posts: 23

PostPosted: 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
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Wed 20 Feb 2013, 14:20    Post subject:  

Glad you finally found something that works for you. Razz
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... Rolling Eyes

_________________

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0551s ][ Queries: 12 (0.0050s) ][ GZIP on ]