Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 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 Sat 02 Aug 2014, 02:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
XAMPP (lampp) from mnt/home -- includes MySQL, PHP and Perl
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 765
Location: Union New Jersey USA

PostPosted: Tue 05 Apr 2011, 16:46    Post subject:  XAMPP (lampp) from mnt/home -- includes MySQL, PHP and Perl
Subject description: and, of course, Apache Web Server
 

As I’ve mentioned in other threads, I frequently test, explore and --of course-- use various Puppies and derivatives. All my Puppies are Frugal Installs, and to make my life simple the directories into which all are installed are on the same partition. Originally, that made it easy to access the same SFSes. But thanks to Playdaz discussion of “Program Folders” and DaveS’s development of Opera_mnt_home and FoxyFun I discovered the utility of “installing” applications to my home partition, which each of my Puppies recognizes as /mnt/home. A Program Folder is simply a folder containing all the files the application requires to run. Since it resides outside the SaveFile, it takes up no “User Space.” In order to enable easy access to the application, I employ the technique used by DaveS in Opera_mnt_home and FoxyFun to create a script file in /my-applications/bin, where I also place an appropriate icon, and then write a desktop file in usr/share/applications. The desktop file creates a menu entry, which when clicked executes the script file, and the script file starts the application.

Recently I became interested in developing a website. While researching that interest I ran across a link which discussed using XAMPP (formerly known as Lampp) to develop, configure and test websites from within your computer. Or, in other words, without the need to acquire a domain in Webspace or test your customizations and settings on a “live” website. I was referred to:

http://www.apachefriends.org/en/xampp.html

Per that site:
“Many people know from their own experience that it's not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.
The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains:
Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.”

It has now been tested in Puppy 4.31, dPup, sPup and the Lupus. Well, by tested I mean that when starting from console the application produced the following message:

Starting XAMPP 1.7.4...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

and I was able to access http://localhost via my webbrowser. I have not gotten beyond that. [Desiring to advise apachefriends to add Puppy to their "successful" distros, I looked into their forum and was distressed to find a significant number of unanswered requests for help. I seem to have gotten further than some running Ubuntus. Warning: use at your own risk and pleasure. I can't help you and help from apachefriends appears iffy.]
It is a large package -- 75 mgs compressed, 287 mgs decompressed. Its instructions were that it be decompressed to /opt. It would, therefore, be more convenient if it could be run from outside the SaveFile. After successfully testing it in Lupu from /opt, I figured out how to run it from /mnt/home. The test provided by the above link said to start Lampp from a console, and once it was running to open your favorite browser and type http://localhost into the address bar. Since I would be starting it via a script rather than a console command, any errors or failures would not be displayed, and I wouldn’t know if there was a problem until I started the browser and typed in the address. Figuring that I’d always want to start my browser once Lampp was running, I simply included the command to do so --and open to localhost-- into the script.
There was one snag I had to overcome, but as that involves a technique which might be of general interest, I’ve discussed it elsewhere. If you’re interested, see my post @ http://www.murga-linux.com/puppy/viewtopic.php?p=510654#510654,

At any rate, I’ve provided two pets. lampp_mnt_home-.03 specifies that firefox be opened. lampp_mnt_home-.04 calls your default webbrowser. 03 was created in Lupu which doesn’t have a default webbrowser as all its webbrowsers are called from Program Folders on /mnt/home. 04 was created in Puppy 4.31 which does have a default webbrowser.
If your Puppy has neither a default webbrowser nor firefox, after installing either pet, use your text editor to open the xampp script in /my-applications/bin and change third line to specify the webbrowser of your choice.

REMEMBER that for either of these pets to work you must first have downloaded and decompressed the XAMPP tar.gz from the apachefriends website into mnt/home, and made certain that the folder created is named (or renamed) lampp, (NO CAPS) and contains a script file also named lampp (NO CAPS).

Happy computing,

mikesLr

p.s. Just thought I'd mention that the following link (although it's oriented to the installing Wordpress on the Windows version) provides good information on installing applications in Lampp. Skip down to instruction 13. The Linux version starts MySQL automatically. The address it tells you to type is to go into your webbrowser.
http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/
lampp_mnt_home-.04.pet
Description  uses default web-browser, requires lampp folder on mnt/home downloaded from apachefriends website
pet

 Download 
Filename  lampp_mnt_home-.04.pet 
Filesize  14.63 KB 
Downloaded  632 Time(s) 
lampp_mnt_home-.03.pet
Description  uses firefox, requires lampp folder on mnt/home downloaded from apachefriends website
pet

 Download 
Filename  lampp_mnt_home-.03.pet 
Filesize  14.59 KB 
Downloaded  532 Time(s) 
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 895
Location: .ar

PostPosted: Sun 17 Apr 2011, 16:11    Post subject:  

~.
_________________


Last edited by GustavoYz on Thu 17 Jan 2013, 14:18; edited 1 time in total
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 895
Location: .ar

PostPosted: Fri 13 May 2011, 00:13    Post subject:  

~.
_________________

Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Sun 11 Aug 2013, 07:40    Post subject:  

can you post clearer instructions please. (lucid 5.2Cool

4 weeks, day after day trying to install the 4 lamp packages to Puppy Lucid 5.28. And still no joy.

Following your instructions, I download the tar to /home/mnt.

type tar -xzwf xampp-linux-1.8.0.tar.gz

around 50 lines or more of positive unpacking, then:

gzip: stdin: unexpected end of file
tar: unexpected EOF in archive
tar: unexpected EOF in archives
Error is not recoverable: exiting now

After 160 frustrated hours, I am almost done with Linux!

I follow the instructions at Apachefriends, also using the run installer, and again, failures ( although different!)
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 895
Location: .ar

PostPosted: Sun 11 Aug 2013, 14:12    Post subject:  

Tried just with this?
Code:
tar -zxf xxx.tar.gz


Are you running out of space in the partition?

_________________

Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Sun 11 Aug 2013, 17:43    Post subject:  

You are my hero.

Dont know why the x makes such a difference, maybe a quick explanation!

But its working fine.


Thanks

Simon

So thrilled, now I just have to remove 1GB of aborted installation files.
Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Mon 12 Aug 2013, 09:28    Post subject:  

Sorry it wasnt working fine at all.. I simply saw icons added to the menu screen and satisfied with progress I went to bed.

Now I am testing and well you guessed it.

So before installing cacti, I thought I would study up a bit on starting Xampp.

and it says:

oh and by the way, contrary to instructions http://www.apachefriends.org/en/faq-xampp-linux.html#start

the only way I can see to start the packages is /opt/lampp/xampp start NOT lampp start (which does not exist)

XAMPP: Starting Apache...fail.
httpd: Syntax error on line 31 of /opt/lampp/etc/httpd.conf: Server Root must be a valid directory
XAMPP: Starting MySQL....ok
XAMPP: Starting ProFTPD...fail
Contents of "/opt/lampp/var/proftpd/start,err":
puppypc proftp[31756]: Fatal: <Directory>: relative path not allowed in non-<Anonymous> sections on line 29 of '/opt/lampp/etc/proftpd.conf'


any thoughts?
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 12 Aug 2013, 09:58    Post subject:  

wirwav wrote:
any thoughts?

X is not L
and Xampp is not lampp.

(and Windows is not linux)
Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Mon 12 Aug 2013, 10:02    Post subject:  

Troll, go and annoy someone else!
Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Mon 12 Aug 2013, 12:24    Post subject:  

oh.

Didnt make any further progress, only backwards

so searched any removed all words and directories apache.

Trying re-install Xampp again.. But now worse than berfore, unable to unpack using tar -zxf xxx.tar.gz

Stopping again at:

PostPosted: Yesterday, at 07:40 Post subject:
can you post clearer instructions please. (lucid 5.2Cool

4 weeks, day after day trying to install the 4 lamp packages to Puppy Lucid 5.28. And still no joy.

Following your instructions, I download the tar to /home/mnt.

type tar -xzwf xampp-linux-1.8.0.tar.gz

around 50 lines or more of positive unpacking, then:

gzip: stdin: unexpected end of file
tar: unexpected EOF in archive
tar: unexpected EOF in archives
Error is not recoverable: exiting now
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 895
Location: .ar

PostPosted: Mon 12 Aug 2013, 12:42    Post subject:  

Hold on...

First, be sure of downloaded the Linux package. Then, how is your puppy installion?

It sounds like your /home/ is in a partition that may be full or may not be in a Linux filesystem, which is really important for MySQL to -even- start running.

Note aside, installing lampp is not hard (just unpack) and it should not be, so if it is, maybe the problem is not on it.

Use
Code:
tar -zxf something

to decompress and check (report us) the size of the file you got packed, the unpacked size and if possible the md5sums.

_________________

Back to top
View user's profile Send private message 
wirwav

Joined: 14 Jul 2013
Posts: 33

PostPosted: Mon 12 Aug 2013, 13:57    Post subject:  

Hi.

No it just simply wont unpack anymore beyond that same point.

Yesterday after your advice, it silently unpacked all the way.

Oddly, you mentioned mysql, well that was the only 1 of the 3 packages that said it was ok and running.

The SSD is probably in a mess from failed installs..

I managed to install ntop and then dude under wine environment.. It may be safer and quicker for me to re-install lupu 5.28 and start at the begining, with what appears to be the most troubling.

If I take it back to a fresh install.. what dependencies are needed to unpack.

My guess Gcc and others?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
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
[ Time: 0.0884s ][ Queries: 13 (0.0119s) ][ GZIP on ]