Puppy LAMP Distro for website developers

A home for all kinds of Puppy related projects
Message
Author
caguy1000
Posts: 3
Joined: Tue 17 Mar 2009, 23:23

Puppy LAMP Distro for website developers

#1 Post by caguy1000 »

I have literally spent all day with my friend Google. and he hasn't told me much. I've tried talking to him in all kinds of different ways, and there is no answer. but puppy seems so suited to this, so I'd be surprised if nobody has thought of it, and probably just haven't found a suitable recent page about this stuff.

Puppy seems so perfectly suited to a test environment for web development that I'm surprised I haven't found it yet.

What I want to do is create a puppy distribution (.iso) that has a stripped down puppy with just the basics needed for one purpose, website development.... a basic LAMP environment, with a simple gui. This environment would be suitable for development of websites, or for giving out on CD's at trade shows, etc. to provide people with working examples of how software can be used.

Once the system is booted it should have a basic Linux/Apache(maybe LightHTTP or something else)/ MySQL / PHP environment and be suitable for development. Simple things like text editors, phpmyadmin, file transfer capabilities, simple image maniplation stuff, etc.

After that (picture the puppy machine loaded in vmware player) the system could share the web root via samba and allow people to easily develop in windows and transfer files to the puppy machine.... and/or use freenx or vnc to remotely control the virtual machine and edit settings, etc. The virtual machine could then be available to the outside world via some simple port forwarding mechanisms.

I'm willing to contribute time with somebody that has started on a similar idea....I think puppy is a perfect platform for this type of stuff. I'm hoping somebody with some experience in re-mastering puppy gets in touch soon

Thanks.

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

growler and MU

#2 Post by raffy »

Growler has been packaging Apache-MySQL-PHP for Puppy, initially as sfs (look for lamp-400.sfs in the FTP site, and rename to lamp_412.sfs for use with puppy 4.12).

An easier method is to use pet package, see here:
http://murga-linux.com/puppy/viewtopic.php?t=34489

MU has been building Xampp for Puppy, so just search the forum for Xamp.

Looking forward to your lampup. :)
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

LAMP or PHMP

#3 Post by growler »

See the wiki

http://www.weberp.org/PuppyLinux

I am working on an update to the latest versions

Hiawatha 6.11
Mysql 5.1.31
PHP 5.2.8

I could make it a squash file now too since hiawatha is no longer going to be in puppy from 4.2
The new .pet is looking like 11 Meg - so uncompressed it will be 20 odd Meg.
Last edited by growler on Sat 09 Jan 2010, 05:30, edited 2 times in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

http://www.murga-linux.com/puppy/viewtopic.php?t=39531

But it is not small (800 MB), as it includes Eclipse and several other things for Java developers.

xampp is here:
http://www.murga-linux.com/puppy/viewtopic.php?t=39112

You could run it in a barebones Puppy or wows unnamed puplet or NYP micro or Muppy Embryo.

Administration is done with the included browserbased utilities like phpmyadmin.

Start xampp with
lampp start
Then type "http://localhost" in your webbrowser.
Read the thread carefully, in case you have permission problems with the layered filesystem.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#5 Post by jamesbond »

The fix to get it working is here: http://www.murga-linux.com/puppy/viewto ... 450#285450.

Oh yes if you plan to use it under some other puplet, rename the SFS file by removing the "_411" so that it can be loaded by anything other than NYP and Puppy 4.1.1.

Excellent work Mark, thanks!

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

jamesbond wrote: Excellent work Mark, thanks!
No, not here. ;)
I just extracted the original xampp , added a symlink, and ran dir2sfs.

So xampp itself is very easy to add, no compiling, tweaks or even programming was required.
It is important to state this, to make clear, that everybody also could try the original xampp package (e.g. when they release a new version).

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

nic2109
Posts: 405
Joined: Mon 01 Jan 2007, 20:24
Location: Hayslope, near Middlemarch, Midlands, England

#7 Post by nic2109 »

Just to encourage you all that creating a web server environment in Puppy is straight-forward.

I downloaded the XAMPP package from Apache fans and extracted it "as is" into a folder and ran the setup as instructed. Lo and behold it all works. As MU warns. you have to set some permissions in /tmp to 777 with chmod before mySQL can create temporary tables and you really, really, really MUST do what it says to make it secure before opening it up to anyone else.

Go for it!

I did and added Wordpress for my daughter's school project and was amused that the whole distro and server software was smaller than some Windows printer drivers! :D
[color=darkblue][b][size=150]Nick[/size][/b][/color]

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

Updated LAMP for puppy 4.2

#8 Post by growler »

I have rolled up a new pet including

mysql 5.1.31
php 5.2.8
hiawatha 6.11
phpMyAdmin 3.1.3.1

see

http://www.weberp.org/PuppyLinux
Last edited by growler on Sat 09 Jan 2010, 05:31, edited 1 time in total.

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#9 Post by tlchost »

jamesbond wrote:The fix to get it working is here: http://www.murga-linux.com/puppy/viewto ... 450#285450.
This didn't seem to work

cd /opt/lampp
find . -uid 99 -exec chown nobody '{}' +


What the above means, is that you go to the /opt/lampp directory, and then run the find command starting in your current directory (which is /opt/lampp) and find all files with uid 99. For all files found, run the "chown" command and change the owner to user "nobody".

When done, you can start lampp
Code:
lampp start

It starts...but still the permission problem.

Is there another way to fix it?

Thanks

Thom

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#10 Post by jamesbond »

Thom, have you done both steps?
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#11 Post by tlchost »

jamesbond wrote:Thom, have you done both steps?
I tried the second step....saw no output to the screen...so I have no idea what was changed, if anything...

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#12 Post by ecomoney »

"Watchdog" has got many of the Llamp Packages built in.

http://puppylinux.org/wiki/hardware/general/watchdog

It also catches burglars 8)
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#13 Post by tlchost »

ecomoney wrote:"Watchdog" has got many of the Llamp Packages built in.

http://puppylinux.org/wiki/hardware/general/watchdog
Sigh...the download link is dead

Thanks anyway

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#14 Post by jamesbond »

tlchost wrote:
jamesbond wrote:Thom, have you done both steps?
I tried the second step....saw no output to the screen...so I have no idea what was changed, if anything...
You have to do both steps, in the proper sequence I mentioned. Otherwise the problem is not solved.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#15 Post by tlchost »

jamesbond wrote: You have to do both steps, in the proper sequence I mentioned. Otherwise the problem is not solved.
Sorry....I did do both steps, in the order stated....and it did not fix the problem.

Thom

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#16 Post by ecomoney »

Ive found a copy of watchdog on my hard disk. :D

I am uploading it here to my mirror, but it will take about an hour and a half from this post.

http://www.ecomoney.eu/puppy/distros/watchdog

Would someone add the link to the documentation for watchdog...I am really bad with Wiki's
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#17 Post by jamesbond »

tlchost wrote: Sorry....I did do both steps, in the order stated....and it did not fix the problem.
Thom
Sorry to hear that. May be I need to get back to basic.
1) When you say you have permission problem, what is it do you have? Is it possible to upload a screenshot of the permission problem?
2) I assume that you have puppy installed as frugal, on a non-flash device (e.g. regular harddisk etc). If you use ATA flash or USB thumbdrive, then what I'm going to suggest will not work and I have to give you another instruction.
2a) Open a terminal
2b) Type this command:

Code: Select all

ls -lR /initrd/pup_rw/opt/lampp | gzip -9 > /root/x.gz
This code will create a file named x.gz in your home directory (/root), containing a compressed list of all files in the /opt/lampp directory, in your savefile. Please upload this file to the forum so that I can take a look at it and make a better guess of what's going wrong.

Btw the code is, for avoidance of doubt, phonetically read as follows:
small-L small-S space hyphen small-L capital-R space /initrd/pup_rw/opt/lampp space vertical-bar space gzip space hyphen number-9 space > /root/x.gz

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

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

AMP for 4.X

#18 Post by raffy »

AMP for Puppy 4 series by growler is here:
http://www.eminima.org/lamp/growler-amp_412.sfs

Copy to /mnt/home and reboot.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: AMP for 4.X

#19 Post by tlchost »

raffy wrote:AMP for Puppy 4 series by growler is here:
http://www.eminima.org/lamp/growler-amp_412.sfs

Copy to /mnt/home and reboot.
Is that the same as
http://minipc.org/lamp/growler-amp_412.sfs

If it is, while it works...I can not get the virtual hosts to work using a bootable USB drive.

Thom

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#20 Post by tlchost »

jamesbond wrote:
Sorry to hear that. May be I need to get back to basic.
1) When you say you have permission problem, what is it do you have?
Is it possible to upload a screenshot of the permission problem?
Apache complains that I do not have rights to access /
jamesbond wrote: 2) I assume that you have puppy installed as frugal, on a non-flash device (e.g. regular harddisk etc). If you use ATA flash or USB thumbdrive, then what I'm going to suggest will not work and I have to give you another instruction.
My error...I am using a bootable USB drive...sorry I did not specifiy that.

My guess is that some directive in the httpd.conf file is not correct for a usb drive.....I uncommented the virtual hosts directive and set the cirtualhosts config file to point at /mnt/home/htdocs and I no longer get the error message(I had copied htdocs to the usb drive)

I thought I was out of the woods....but I can not get any other virtual hosts to work correctly. The same behavior exists with growler-amp_412.sfs

Thom

Post Reply