2016-05-30

Build our own Linux Web Server with XAMPP

If we want to set up our own web server on the Linux platform,  installing an XAMPP (Apache+MariaDB+PHP+Perl on the different platforms) will be the easiest way.  Here I show the basic installation procedures as follows:

1. Download a copy of an  XAMPP Linux version from the site Download XAMPP   . For example,  we can download the file
https://www.apachefriends.org/xampp-files/5.5.35/xampp-linux-x64-5.5.35-0-installer.run

2. Run cd command to go to your directory and execute the installation file:
sudo chmod +x xampp-linux-x64-5.5.35-0-installer.run
sudo ./xampp-linux-x64-5.5.35-0-installer.run

We will see a newly generated pop-up window. Just click the Next button and uncheck the  “Learn more about BitNami for XAMPP” checkbox. We'll install the XAMPP and run it.

To stop the XAMPP, we can:
sudo /opt/lampp/lampp stop
 
To strat  the XAMPP, we can:
sudo /opt/lampp/lampp start

We can try the url http://localhost from our browser to see the page on our server.

And then one important thing to do- set the Security settings:
sudo /opt/lampp/lampp security
 
Always say yes by pressing Enter key and key in our password.


References:
1. How to Install XAMPP 1.8.3 for Linux in Ubuntu Desktop 
2. Setting Security for XAMPP

No comments:

Post a Comment