The time now is Thu 26 Apr 2018, 21:00
All times are UTC - 4 |
Page 2 of 2 [22 Posts] |
Goto page: Previous 1, 2 |
Author |
Message |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Wed 08 Jun 2005, 14:12 Post subject:
|
|
if you right click the Monkey icon, click Look Inside
then right click AppRun, Open As Text
you can edit the script that starts/stops Monkey
the line that starts Monkey is su -c $SM - nobody &
you are root, and normally any program you run is run as root with root's privledges
running as nobody means the server will have limited privledges to do things it shouldn't be allowed to do anyway
if you change the line su -c $SM - nobody & to $SM &, Monkey will run as root with root's privledges
also, at the top of the AppRun file, change MONKEY_URL="http://127.0.0.1:51234/" to MONKEY_URL="http://127.0.0.1:80/"
setup the port you want to use in /root/monkey/conf/monkey.conf ... if you right click the Monkey icon and click Help, there is an icon you can click to edit monkey.conf
for example, change Port 51234 to Port 80
now when you click the start button, Monkey should start using port 80
screenshot of Monkey serving on port 80: http://tinypic.com/5tvzfl
screenshot of Monkey running a perl cgi script ... note where it says SERVER_PORT=80:
http://tinypic.com/5tvzvs
|
Back to top
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1760 Location: Wadsworth, OH (occasionally home)
|
Posted: Wed 08 Jun 2005, 19:19 Post subject:
Thank You |
|
Thanks for the fast reply. I thought I had tried all of that earlier, but I geuss I must have skipped something. It's workink now. My website should be up by next week, with this setup.
Nathan
|
Back to top
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1760 Location: Wadsworth, OH (occasionally home)
|
Posted: Thu 09 Jun 2005, 18:56 Post subject:
firewall |
|
Ok, I hope I'm not asking this in the right place, but it's closely related. I've got the server up and running but not with the firewall. I had Morizot setup and it blocked port 80 quite effectively. Now I'm wondering how I could set up the firewall and open up just that port in order to run my website. Thanks again for helping with everything else.
Nathan
(really close to making this my main system)
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Thu 09 Jun 2005, 19:21 Post subject:
|
|
i think the firewall is called rc.firewall or rc.firewall-morizot ... something like that ... it's in /etc/rc.d i think
i put config variables at the top of the file
right click the rc.firewall (whatever it actually is called)
click Open As Text
pupTCP_ALLOW_PORTS="" should be near the top of the file
change the line to pupTCP_ALLOW_PORTS="80"
the firewall should now allow incoming connections to port 80
either reboot or restart the firewall
(type /etc/rc.d/rc.firewall stop then type /etc/rc.d/rc.firewall
or whatever it's called)
if you have a router or hardware firewall, you need to forward port 80 too
i prefer not to use port 80, because there are bots searching for computers with port 80 open ... but i don't suppose it makes much difference
|
Back to top
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1760 Location: Wadsworth, OH (occasionally home)
|
Posted: Thu 09 Jun 2005, 20:13 Post subject:
Puppy server: is a firewall necessary? |
|
Thanks. Will try that. I don't think I should have any real problems using port 80, as I'm going to reboot the computer every now and then and just re-insert monkey and the pages that I want, after deleting the pup100 file. So even if someone does compromise the server, any damage should be gone at the next bootup. This was my primary reason for wanting to do this with Puppy and Monkey. My first plan was to use DSL, but I'm way more comfortable running Puppy so far.
Thanks again,
Nathan
|
Back to top
|
|
 |
Kemas
Guest
|
Posted: Sun 12 Jun 2005, 05:55 Post subject:
PHP and MySQL? |
|
Hi all,
Is it possible to add PHP and MySQL as well? Can Puppy be used as a server-distro?
Thanks.
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 12828 Location: Arizona USA
|
Posted: Mon 13 Jun 2005, 01:38 Post subject:
Re: Puppy server: is a firewall necessary? |
|
Nathan F wrote: | Thanks. Will try that. I don't think I should have any real problems using port 80, as I'm going to reboot the computer every now and then and just re-insert monkey and the pages that I want, after deleting the pup100 file. So even if someone does compromise the server, any damage should be gone at the next bootup. This was my primary reason for wanting to do this with Puppy and Monkey. My first plan was to use DSL, but I'm way more comfortable running Puppy so far.
Thanks again,
Nathan |
Nathan, I don't know much about servers, but your idea suggests to me that if the data the server serves doesn't change then it is possible to put server Puppy and the data on a bootable CD or DVD, and have a "thin server" without a hard drive at all. Conceivably a server farm could be made up of 'blades' that only have a DVD ROM drive, 128 MB of RAM, and no hard drive. As you seemed to say, there would be no need for a firewall either, just reboot occasionally to clear any viruses or worms.
|
Back to top
|
|
 |
|
Page 2 of 2 [22 Posts] |
Goto page: Previous 1, 2 |
|
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
|