Minimilistic Puppy Webserver. What's best route.

Using applications, configuring, problems
Post Reply
Message
Author
Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

Minimilistic Puppy Webserver. What's best route.

#1 Post by Canadianpride »

Hi everyone.

I'm working on a science fair project for my science 10 class. What I'm doing is building a website for my school using php and mysql to allow teachers to post assignments, send messages to students and the like. Now the idea for the project is that I'm coding and doing the graphics all in open source software running on an open source operating system on an antiquated machine. I'm also hoping to run the site off of an old pc using puppy to run a lampp server posibly. Does anyone have any tips on how I should set up the server. I'm hoping it can be as small and fast as possible.

Thanks In Advance.

Matthew.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

This might be too advanced for you, or not quite what you had in mind, but it would be an educational read.

How familiar are you with Puppy? Have you burned a CD from the iso and booted it? Have you done any kind of programming? Do you have a computer, of the type the school uses, available for tinkering? :)

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#3 Post by Gn2 »

:shock:
~ This might be too advanced for you
~ Have you done any kind of programming?
Flash This might be an "educational" read !
-
> using php and mysql
> doing the graphics all in open source software running on an open source operating system
> using puppy to run a lampp server
Mat - What Prov - I' d be interested in the results
Google will better resource
Best success

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

lamp_202.sfs

#4 Post by raffy »

What you see in http://minipup.info will enable you to do what you want. Just get lamp_202.sfs, put it beside your save file, and reboot. Presto, your htdocs will be in /root/www.

It is built for Puppy 2.02, and I recommend the regression build which has Firefox. You can get the updated regression 2.02 at
http://puptrix.org/isos/regression2/

However, this enhanced build will have Gimp that is useful for doing Web graphics:
http://bexa.org/pup/minipup2.02R_w_Gimp_Feb_02_2007.iso (85 MB)
http://bexa.org/pup/minipup2.02R_w_Gimp ... 07-md5.txt

You can easily build your website in /root/www/htdocs. But note that the server must be turned off if you access that folder directly via Rox: in console, "apachectl stop". BTW, it is "apachectl start" for starting it. :)

Be sure to check out the readme:
http://bexa.org/pup/minipup2.02R-readme.txt

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#5 Post by Canadianpride »

Thanks for all the responses. I've done quite a bit of html webdesign and recently got into php. I've really enjoyed it and I'm learning quick. I'm quite experienced with puppy. All my computers dual-boot xp and puppy. I'm almost done coding the site using puppy 2.15. Now the only thing that really remains to be done is to build a server pc. Thanks for that link to that lampp sfs. One question do you know if it includes sql databases of any kind? Also would it work with something like 1-bone puppy. I've never used a commandline puppy are they hard to use? I'm hoping to run the server from a old pc without a hard drive. Booting from a CF card if possible. I'm the only one I know of in my town (about 1000 people) who uses linux. I'm hoping to be able to show some people what open source can do.
Gn2 I'm from Saskatchewan about half an hour from Saskatoon.

Thanks everyone for the help.

A puppy in training.

Matthew.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#6 Post by John Doe »

I was just tinkering with this stuff the past three days.

Check out the screenshot. I used http://lamphowto.com/ and just followed the directions. No snags with puppy 2.14 using devx. It's real straight forward.

Ontop of Linux,Apache,MySQL,PHP I added Perl, Mono, and BIND so far. I'm going to add mod_python also and have to figure out a good opensource smtp/pop3 combo. An alternative to BIND would be cool also, it's sort of big.

I think one could easily run this off USB with an extra 128megs of RAM in the machine. "Puppy Server 2007" :-)

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

no hard drive

#7 Post by raffy »

Yes, without a hard drive, you may have to add more RAM to make it 256 MB total.

No, there is no sql in the lamp_202.sfs. There are many scripts that do not need sql ( http://minipup.info uses Dokuwiki, for example). And in an old machine, I don't know if it's advisable to use one (such as MySQL).

The Minipup linked to at http://bexa.org/pup/minipup2.02R-Mar08_2007.iso has a noramsfs feature that disables loading of sfs to RAM, use it like "pfix=noramsfs". This can help you conserve RAM. Or if you really like it to load in RAM, just trim it by removing most other applications then remaster. No, it is not console-based. Only the commands I indicated for starting/shutting down the server are console-based.

NathanF of grafpup has a compact LAMP (with MySQL) but it is for Puppy 1+ only.

John, Wow has built some excellent Python add-ons for Puppy 2.13 (should work in 2.14), please check out:
http://murga-linux.com/puppy/viewtopic.php?t=16583
http://murga-linux.com/puppy/viewtopic.php?t=16424
You have a very good project there, John!

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#8 Post by Canadianpride »

Hmmm.... Thanks for all the help. I'll look into building something like that John. I think I might run the server off one-bone puppy it's the smallest by a long ways. I guess I should clarify when this site is going to be actuallty used it will be run on my servage web host. This small server is for demo reasons only during the science fair. I'm using sql because... well frankly I'm building everything from scratch and it's something I'm familiar with.

Thanks.

Post Reply