Hi fellow developers. If you are a web developer you will definitely need a local server in your computer to test and debug your code. There are lot of server applications ever operating systems which provides various features when it comes to server configuration.
Apache is one of the most popular server platform. But only the server is not enough you will need to install a database application, email servers and much more counterparts in order to get started which might be quite frustrating. To resolve this there are pre-packed server applications like XAMMP, WAMP, EasyPHP etc. Mine favorite is XAMPP but no special reason.
So here's how you install XAMPP on linux based OS/Lubuntu in my case.
https://www.apachefriends.org/download.html
Open the location where the downloaded file is exists by using terminal, if my downloaded file exists in Downloads directory. e.g: cd /$HOME/Downloads
Give permissions to that file using command:
chmod +x xampp-linux-x64-7.0.9-1-installer.run
Run the file using command:
sudo ./xampp-linux-x64-7.0.9-1-installer.run
That's it. Now if you open your browser and navigate to localhost or 127.0.0.1 you may see that xampp has successfully installed.
sudo /opt/lampp/lampp stop
To set passwords use below command
sudo /opt/lampp/lampp security
Apache is one of the most popular server platform. But only the server is not enough you will need to install a database application, email servers and much more counterparts in order to get started which might be quite frustrating. To resolve this there are pre-packed server applications like XAMMP, WAMP, EasyPHP etc. Mine favorite is XAMPP but no special reason.
So here's how you install XAMPP on linux based OS/Lubuntu in my case.
Step 1: Download XAMPP
You can download the official XAMPP following below link.https://www.apachefriends.org/download.html
Step 2: Installation
Open the location where the downloaded file is exists by using terminal, if my downloaded file exists in Downloads directory. e.g: cd /$HOME/DownloadsGive permissions to that file using command:
chmod +x xampp-linux-x64-7.0.9-1-installer.run
Run the file using command:
sudo ./xampp-linux-x64-7.0.9-1-installer.run
That's it. Now if you open your browser and navigate to localhost or 127.0.0.1 you may see that xampp has successfully installed.
Additional Info
To stop the XAMPP server use bellow command:sudo /opt/lampp/lampp stop
To start the server:
sudo /opt/lampp/lampp start
To auto-start XAMPP when computer turns on edit rc.local file using below command:
sudo nano /etc/rc.local
Before the line "exit 0" you may add "/opt/lampp/lampp start" as follows
#! /bin/ bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure que the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/opt/lampp/lampp start
exit 0
#! /bin/ bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure que the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/opt/lampp/lampp start
exit 0
To set passwords use below command
sudo /opt/lampp/lampp security
Comments
Post a Comment