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 Sat 25 Oct 2014, 03:09
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 Posts_count  
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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