Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy home page: puppylinux.com
 
 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 Thu 09 Sep 2010, 07:45
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Puppy: Web Server Edition
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [29 Posts]   Goto page: 1, 2 Next
Author Message
Evil20071


Joined: 07 Jun 2008
Posts: 369
Location: Atlanta, Georgia, United States.

PostPosted: 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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

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


Joined: 22 Aug 2006
Posts: 852
Location: ST862228

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


Joined: 24 Mar 2008
Posts: 165
Location: Kapiti - New Zealand

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

Joined: 25 May 2005
Posts: 4329
Location: Manila

PostPosted: 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. Smile

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


Joined: 07 Jun 2008
Posts: 369
Location: Atlanta, Georgia, United States.

PostPosted: Tue 30 Dec 2008, 17:23    Post subject:  

All very useful. I appreciate it. Very Happy

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

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


Joined: 24 Mar 2008
Posts: 165
Location: Kapiti - New Zealand

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


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

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

Joined: 12 Jan 2009
Posts: 17

PostPosted: Mon 12 Jan 2009, 16:07    Post subject:  

Hi Guys,

This looks like it's exactly what I need Smile

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
View user's profile Send private message Send e-mail 
growler


Joined: 24 Mar 2008
Posts: 165
Location: Kapiti - New Zealand

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

Joined: 12 Jan 2009
Posts: 17

PostPosted: Wed 14 Jan 2009, 09:31    Post subject:  

Cool thanks Smile

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
View user's profile Send private message Send e-mail 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 6889
Location: Arizona USA

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


Joined: 24 Mar 2008
Posts: 165
Location: Kapiti - New Zealand

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

Joined: 12 Jan 2009
Posts: 17

PostPosted: 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 Smile

any idea how many megabytes the barebones install takes up on the full hdd install?
Back to top
View user's profile Send private message Send e-mail 
Display posts from previous:   Sort by:   
Page 1 of 2 [29 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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
hot copy
[ Time: 0.3573s ][ Queries: 8 (0.0950s) ][ Debug on ]