| Author |
Message |
Evil20071

Joined: 07 Jun 2008 Posts: 369 Location: Atlanta, Georgia, United States.
|
Posted: Sun 28 Dec 2008, 13:34 Post subject:
Puppy: Web Server Edition Subject description: Stage: Gathering thoughts |
|
I was looking today and it dawned on me that Puppy could very well make a nice lightweight web server for personal use. (Testing server or small personal web host). So, using 4.1.2 as a base, I'm going to start trying to put together some things, including compiling and packaging php, MySQL, and Apache into pets. (Won't be small, unfortunately). Anyone have any other suggestions/comments/observations for this?
_________________
Click for Detailed PC info

|
|
Back to top
|
|
 |
prit1

Joined: 03 Jan 2008 Posts: 540 Location: Los Angeles
|
Posted: Mon 29 Dec 2008, 13:54 Post subject:
|
|
I had tried the Muppy server edition that really felt light weight. I am not sure if it had PHP and MySQL.
If you start from a stripped down Puppy like G-Pup and add the required packages - won't it help keep the size less?
Also, do you have the packages ready? How will packaged applications like Xampp work? I have never tried xampp on Puppy.
_________________ Macpup - The beauty of linux | Pritlog - Simple blog app
|
|
Back to top
|
|
 |
paulh177

Joined: 22 Aug 2006 Posts: 852 Location: ST862228
|
Posted: Mon 29 Dec 2008, 14:58 Post subject:
|
|
fwiw ...
xampp worked very well when i tried it in Puppy, but it is more of a test harness and not really suitable for an internet-facing application (the developers explicitly acknowledge this.)
I also tried Abyss, which I liked a lot and has a nice management interface (good for people who don't like .conf files) and is easy enough to hook into php and so on. It is not a tiny application at 1.5MB but that's mostly documentation and gifs for the browser-based interface
http://www.aprelium.com/abyssws/
|
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 165 Location: Kapiti - New Zealand
|
Posted: Mon 29 Dec 2008, 16:52 Post subject:
puppy as a web-server |
|
Check out the wiki entry
http://www.puppylinux.org/wiki/archives/old-wikka-wikki/categoryusercontributions/lamp-vs-plhmp-php-and-mysql-with-hiawatha
There are real advantages to the hiawatha web-server already bundled with puppy compared to apache.
|
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4329 Location: Manila
|
Posted: Tue 30 Dec 2008, 03:29 Post subject:
test |
|
Yes, growler's work needs more users. We can help him polish his work by using it.
Hiawatha is small and secure, so it's worth trying.
_________________ Puppy user since Oct 2004; serving safepup for kiosk, breeezy for eee and minipup for miniPC. Pleased with PuppyLinux? Donate to Barry!
|
|
Back to top
|
|
 |
Evil20071

Joined: 07 Jun 2008 Posts: 369 Location: Atlanta, Georgia, United States.
|
Posted: Tue 30 Dec 2008, 17:23 Post subject:
|
|
All very useful. I appreciate it.
What I'll end up doing is stripping out the majority of a spare 4.1.2 pup that is sitting on my flash drive (So I don't fux anything up) and just use the end result as a base. I'm thinking to include IceWM in place of JWM though... depending on which is smaller...
_________________
Click for Detailed PC info

|
|
Back to top
|
|
 |
prit1

Joined: 03 Jan 2008 Posts: 540 Location: Los Angeles
|
Posted: Tue 30 Dec 2008, 20:29 Post subject:
|
|
I tried the pet mentioned in the Wiki entry to install PHP and MySQL. I did this in Puppy 4.1.1. The http://localhost/index.php is not working yet. It gives the error message
| Code: | | 503 - Service Unavailable |
Only the http://localhost/index.html is working. Are there any changes to be made?
_________________ Macpup - The beauty of linux | Pritlog - Simple blog app
|
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 165 Location: Kapiti - New Zealand
|
Posted: Tue 30 Dec 2008, 20:42 Post subject:
Service unavailable |
|
I just discovered this also. It seems the library libmcrypt.so.4.4.7 is also required. I have added this to the .pet and uploading now or you can get it from tuxx's library database and create the links for libmcrypt.so and libmcrypt.so.4. I am not sure why this is required now in 4.1.1 and 4.1.2 when it worked ok in 4.0.
This fixes a snag with phpMyAdmin also that existed in puppy 4.0
|
|
Back to top
|
|
 |
prit1

Joined: 03 Jan 2008 Posts: 540 Location: Los Angeles
|
Posted: Tue 30 Dec 2008, 22:45 Post subject:
|
|
Thanks a lot. I downloaded the pet again and it works now. I am able to run php pages. I need to play around more.
_________________ Macpup - The beauty of linux | Pritlog - Simple blog app
|
|
Back to top
|
|
 |
Bappy
Joined: 12 Jan 2009 Posts: 17
|
Posted: Mon 12 Jan 2009, 16:07 Post subject:
|
|
Hi Guys,
This looks like it's exactly what I need
I have 3 thin clients that I want to use for webserving...
they are all neoware capio 800s - they use amd gx1 cpus.
I want to get mysql running on one of them (which has been upgraded to include a 4.6gb hdd), apache or cherokee or this other web server you mention plus php on another one which has a 512mb solid state harddrive.
the third machine will be getting a 10gb hdd for use as a squid/squidguard proxy with parental filters etc.
does this sound like the kind of project that puppy linux is suited to? I would be hoping to run the jinzora media server on it. I can go buy a small 2.5" hdd for the webserver box if 512mb isnt enough.
Thanks Guys!
|
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 165 Location: Kapiti - New Zealand
|
Posted: Tue 13 Jan 2009, 01:20 Post subject:
|
|
if you can run puppy on it and have 20 Meg spare then you can install the hiawatha/mysql/php dot pet application that has PHP 5 and mysql 5 in it. mysql is the heaviest application to run and on a pentium II 850 MegHz with 256 Meg RAM machine it works well and has 50 Meg RAM free - from a HD install - mysql consumes most CPU
|
|
Back to top
|
|
 |
Bappy
Joined: 12 Jan 2009 Posts: 17
|
Posted: Wed 14 Jan 2009, 09:31 Post subject:
|
|
Cool thanks
Are there any pets for running mysql as a standalone on one machine and hiawatha/php on another standalone?
do the pet files deal with dependencies automatically? I'm thinking I could install the minimal version of puppy on the 512MB disk which should leave enough space for hiawatha, php and a few meg left over for php files.
thoughts?
ta,
Ben
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 6889 Location: Arizona USA
|
Posted: Wed 14 Jan 2009, 09:58 Post subject:
Re: Puppy: Web Server Edition Subject description: Stage: Gathering thoughts |
|
| Evil20071 wrote: | | I was looking today and it dawned on me that Puppy could very well make a nice lightweight web server for personal use. (Testing server or small personal web host). So, using 4.1.2 as a base, I'm going to start trying to put together some things, including compiling and packaging php, MySQL, and Apache into pets. (Won't be small, unfortunately). Anyone have any other suggestions/comments/observations for this? |
I have no use at present for a server, but a home server might come in handy someday if it booted from a multisession DVD or maybe a remastered CD, rather than a hd install. That way, permanent corruption of the OS should be impossible.
_________________ OS
4.31 run from a multisession DVD+RW (burned with burniso2cd)
Hardware
Gigabyte GA-MA69GM-S2H mobo
2.5 GHz Athlon 64 X2 4800+ CPU
4GB RAM
(No HDD, no swap)
AOC 1440 x 900 19" LCD
ISP
1.5 Mb/s cable; Motorola SBG900 modem
|
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 165 Location: Kapiti - New Zealand
|
Posted: Wed 14 Jan 2009, 16:20 Post subject:
mysql standalone |
|
| Quote: | Are there any pets for running mysql as a standalone on one machine and hiawatha/php on another standalone?
do the pet files deal with dependencies automatically? I'm thinking I could install the minimal version of puppy on the 512MB disk which should leave enough space for hiawatha, php and a few meg left over for php files. |
My dot pet has mysql and php combined. php is a couple of meg only. hiawatha comes with standard puppy. Installing the .pet on a vanilla puppy has all dependencies resolved. The .pet package manager reports any inconsistencies. There is plenty of room on a 512Meg disk - the only issue is how large databases might become.
There is no reason why a system could not be remastered after installing the .pet and burnt to a CD/DVD - booting a server from the remastered CD would ensure that you always get the server up ... perhaps the snag though is that databases that get "munted" would be so on the saved multi-session DVD/CD... much as they are on a hard drive. The corruption would occur in the pup_save and simply ditching the pup-save would give you a working server ok - but losing all the data!!
[/quote]
|
|
Back to top
|
|
 |
Bappy
Joined: 12 Jan 2009 Posts: 17
|
Posted: Fri 16 Jan 2009, 13:30 Post subject:
|
|
awesome thanks growler.
i dont currently have any clue as to how to make a php webserver point to another server for it's mysql database but i'm pretty sure i'll work it out
any idea how many megabytes the barebones install takes up on the full hdd install?
|
|
Back to top
|
|
 |
|