Cs:HOWTO: Install LAMPP / XAMPP web development environment

From Sabayon Wiki
Revision as of 21:15, 16 December 2012 by Jablko (Talk | contribs) (Created the page.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

XAMPP is a complete set of integrated applications for localised web development. It includes updated versions of Apache, PHP, MySQL, PHPMyAdmin, Proftpd. It's called XAMPP now because it works on Win32 and OS/X also.

The site for download and general installation instructions is here: [1].



After downloading simply type in the following commands: Go to a Linux shell and login as the system administrator root: su

Extract the downloaded archive file to /opt: tar xvfz xampp-linux-1.7.4.tar.gz -C /opt

Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.

Warning 2: already installed XAMPP versions get overwritten by this command.

That's all. XAMPP is now installed below the /opt/lampp directory.

To start XAMPP simply call this command: /opt/lampp/lampp start

You should now see something like this on your screen:

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

Ready. Apache and MySQL are running.


Now for the Sabayon / Gentoo specific instructions:

at terminal, do: su

ln -s /opt/lampp/lampp /usr/bin/lampp

nano /etc/conf.d/local

then add lines in there to control the startup and shutdown;


# Here is where you can put anything you need to start
# that there is not an init script for.

local_start() {
        # This is a good place to load any misc programs
        # on startup (use &>/dev/null to hide output)
        /opt/lampp/lampp start
        # We should always return 0
        return 0
}

local_stop() {
        # This is a good place to unload any misc.
        # programs you started above.
        /opt/lampp/lampp stop
        # We should always return 0
        return 0
}

Here a list of missing security in XAMPP:

The MySQL administrator (root) has no password.

The MySQL daemon is accessible via network.

ProFTPD uses the password "lampp" for user "nobody".

PhpMyAdmin is accessible via network.

Examples are accessible via network.

MySQL and Apache running under the same user (nobody).


So call the lampp security:

lampp security

and enter passwords for your system.

Now you can set up an FTP client like FireFTP in Firefox, or FileZilla. Add a connection and point it to localhost, with user nobody, and whatever password you gave in the security mode.

When you connect via FTP to this it is going into /opt/lampp/htdocs. So all your web pages will be started from there.