Setup: CentOS 6.3 X64 (2.6.32-279.el6.x86_64)
- open a terminal window
- su and enter your password
- get the LAMPP kit: wget http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz
- extract the archive to /opt: tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
- change directory to /opt/lampp
- start LAMPP by running: ./lampp start
You will get the following warning message:
[root@CENTOS lampp]# ./lampp start
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
OK, so we need to fix this
As LAMPP does not run on X64 systems, we will have to install some dependencies to make it think it is running on a 32-bit (X86) system.
[root@CENTOS lampp]# yum install glibc.i686 libgcc.i686 libstdc++.i686 beesu gedit-beesu-plugin
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: ftp.ines.lug.ro
* extras: ftp.ines.lug.ro
* updates: ftp.ines.lug.ro
Setting up Install Process
No package beesu available.
No package gedit-beesu-plugin available.
Resolving Dependencies
–> Running transaction check
—> Package glibc.i686 0:2.12-1.80.el6_3.7 will be installed
–> Processing Dependency: glibc-common = 2.12-1.80.el6_3.7 for package: glibc-2.12-1.80.el6_3.7.i686
–> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.80.el6_3.7.i686
–> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.80.el6_3.7.i686
—> Package libgcc.i686 0:4.4.6-4.el6 will be installed
—> Package libstdc++.i686 0:4.4.6-4.el6 will be installed
–> Running transaction check
—> Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated
–> Processing Dependency: glibc-common = 2.12-1.80.el6 for package: glibc-2.12-1.80.el6.x86_64
—> Package glibc-common.x86_64 0:2.12-1.80.el6_3.7 will be an update
—> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
–> Running transaction check
—> Package glibc.x86_64 0:2.12-1.80.el6 will be updated
—> Package glibc.x86_64 0:2.12-1.80.el6_3.7 will be an update
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
glibc i686 2.12-1.80.el6_3.7 updates 4.3 M
libgcc i686 4.4.6-4.el6 base 111 k
libstdc++ i686 4.4.6-4.el6 base 299 k
Installing for dependencies:
nss-softokn-freebl i686 3.12.9-11.el6 base 116 k
Updating for dependencies:
glibc x86_64 2.12-1.80.el6_3.7 updates 3.8 M
glibc-common x86_64 2.12-1.80.el6_3.7 updates 14 M
Transaction Summary
================================================================================
Install 4 Package(s)
Upgrade 2 Package(s)
Total download size: 23 M
Is this ok [y/N]: y
After the dependencies are installed, you can run:
[root@CENTOS lampp]# ./lampp start
and you will get something similar to:
XAMPP: SELinux is activated. Making XAMPP fit SELinux…
Starting XAMPP for Linux 1.8.1…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Error 1! Couldn’t start Apache!
XAMPP: Starting diagnose…
XAMPP: Your /etc/hosts is not okay. I will fix it.
XAMPP: See also http://www.apachefriends.org/faq-lampp-en.html#failed
XAMPP: Next try…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Starting ProFTPD…
XAMPP for Linux started.
- OK, so now we have a fully running LAMPP installation that needs to be secured !
- Run the command: /opt/lampp/lampp security and follow the on-screen instructions.
- Done. Now you can access LAMPP at: http://localhost
- On with WordPress now. Download the latest WordPress from WordPress.org (e.g. wget http://wordpress.org/latest.tar.gz)
- Put the archive in /opt/lamp/htdocs/ and decompress it: tar xvfz latest.tar.gz
- Create a database for your WordPress site – http://localhost/phpmyadmin
-
Change the file permissions of your wp-config.php to avoid extra work. Type the following command to give it read-write permissions:
chmod a+rw /opt/lampp/htdocs/wordpress/ -R
- Navigate to the WordPress installation – http://localhost/wordpress/ and follow the on-screen instructions.
Happy Blogging !!!!
LAMPP Commands
| start | Starts XAMPP. |
| stop | Stops XAMPP. |
| restart | Stops and starts XAMPP. |
| startapache | Starts only the Apache. |
| startssl | Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated. |
| startmysql | Starts only the MySQL database. |
| startftp | Starts the ProFTPD server. Via FTP you can upload files for your web server (user “nobody”, password “lampp”). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated. |
| stopapache | Stops the Apache. |
| stopssl | Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated. |
| stopmysql | Stops the MySQL database. |
| stopftp | Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated. |
| security | Starts a small security check programm. |
LAMPP Important folders
| /opt/lampp/bin/ | The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor. |
| /opt/lampp/htdocs/ | The Apache DocumentRoot directory. |
| /opt/lampp/etc/httpd.conf | The Apache configuration file. |
| /opt/lampp/etc/my.cnf | The MySQL configuration file. |
| /opt/lampp/etc/php.ini | The PHP configuration file. |
| /opt/lampp/etc/proftpd.conf | The ProFTPD configuration file. (since 0.9.5) |
| /opt/lampp/phpmyadmin/config.inc.php | The phpMyAdmin configuration file. |
Uninstall LAMPP
- first stop LAMPP by running: /opt/lampp/lampp stop
- Remove LAMPP by just running: rm -rf /opt/lampp
