Page 1 of 1

Which LAMP server pet/sfs is there for wary 5?

Posted: Wed 09 May 2012, 14:11
by snayak
Hi,

Which LAMP server pet/sfs is available to use on wary 5?

I mean apache/mysql/php package.

Sincerely,
Srinivas Nayak

Which LAMP server

Posted: Thu 10 May 2012, 12:34
by L18L
Do you really need a pet or sfs :?:

I have used always just
http://www.apachefriends.org/en/xampp-linux.html
in /opt

Now I would take /mnt/home/opt to be able to use it from any puppy

XAMPP in /mnt/home/opt

Posted: Fri 11 May 2012, 12:25
by L18L
You will always need a symlink.
If you have your lampp in /mnt/home/opt then

Code: Select all

ln -s /mnt/home/opt/lampp /opt/lampp
Start it by:

Code: Select all

/opt/lampp/lampp start
You might put this into /etc/rc.d/rc.local

Have fun :D

Posted: Mon 14 May 2012, 05:27
by snayak
Many many thanks.

I'll do the same.

Sincerely,
Srinivas Nayak

Posted: Sun 11 Nov 2012, 19:33
by snayak
Dear L18L,

I did

tar xzvf xampp-linux-1.7.7.tar.gz -C /mnt/sda5/xampp

it gave a lot of error like,

tar: lampp/etc/openssl.cnf: Cannot create symlink to `/opt/lampp/share/openssl/openssl.cnf': Operation not permitted
tar: lampp/htdocs/xampp/.version: Cannot create symlink to `/opt/lampp/lib/VERSION': Operation not permitted

How to install xampp to some other directory but not to /opt?

Sincerely,
Srinivas Nayak

Posted: Sun 11 Nov 2012, 20:10
by snayak
Is it because /mnt/sda5 is FAT?

Posted: Sun 11 Nov 2012, 20:19
by mcewanw
Make a directory called opt in /mnt/home.

If you already have stuff in /opt, move it all into the new /mnt/home/opt.

Then put a symlink in / pointing to /mnt/home/opt.

Put your xampp in the new opt, which really is /mnt/home/opt.

Something along these lines should work. I got it to work when my /mnt/home was on an ntfs partition, so fat should be okay here for xampp at least.

Posted: Sun 11 Nov 2012, 20:24
by mcewanw
A slight modification to the above, which is what I do, is to create a dummy directory called opt. Best to do so on a linux filesystem to make sure permissions and all internal symlinks work okay. Then untar your xampp into that, and finally make that into an sfs (the sfs should be made such that it only contains the folder opt and its lampp contents). There are various howto's on the forum about making sfs. The sfs can then be stored on /mnt/home regardless of the underlying filesystem.

Posted: Sun 11 Nov 2012, 21:23
by snayak
Dear mcewanw,

Many thanks for your idea.
I created an sfs.
It is working!

By the way, if I put some files in /opt/lampp/htdocs, and reboot my machine, will those files be there after reboot?

Sincerely,
Srinivas Nayak

Posted: Sun 11 Nov 2012, 23:00
by mcewanw
snayak wrote: By the way, if I put some files in /opt/lampp/htdocs, and reboot my machine, will those files be there after reboot?
Yes, I think so. They will end up in your pupsave so available on reboot too.

I also made a xampp sfs some while back but never uploaded it anywhere, though I did offer... :-) :

http://www.murga-linux.com/puppy/viewto ... 735#650702

But it is best to just make your own anyway, so I'm happy that worked for you.

Posted: Mon 12 Nov 2012, 18:57
by snayak
Dear mcewanw,

Many thank for your suggestions. I did sfs and it worked. Also the files saved inside /opt/lampp/htdocs are remaining after reboot.

I am surprised that how it is being kept.
As you said it goes to pupsave.
That means it doesnot change the sfs file itself? Then how it is being stored in pupsave? Any idea? Till date I was thinking pupsave is the /root directory.


Sincerely,
Srinivas Nayak