Post Page Advertisement [Top]



Click here to send WhatsApp On Unsaved Mobile Numbers For Free

How to install XAMPP Server on Ubuntu using the terminal? || Installing XAMPP Server on Ubuntu using Terminal.

How to install XAMPP Server on Ubuntu using the terminal?

Installing XAMPP Server on Ubuntu using Terminal.


First, let's understand, What is XAMPP?


What is XAMPP?


XAMPP is a package of the software which includes much software in a single package like, XAMPP v3.2.3 includes five software of Apache, MySQL, FileZilla, Mercury, and Tomcat. Simply, we can say that XAMPP is a server that is used for running the server-side languages like, PHP.



XAMPP stands for:



X --> For any operating system (Windows, Linux, etc.)

A --> Apache Web Server

M --> MySQL or MariaDB Database Engine

P --> PHP

P --> Perl


In this post, I will tell you to step by step process, How to install XAMPP Server on Ubuntu using the terminal? 


Step 1: Login and Update


First login to your Ubuntu machine using SSH

ssh <username>@<hostnname/IP>

Note: Putty is the most popular way to connect with your server using SSH. If you are on the local system, simply you have to start your terminal.

Now, first of all, run the following commands:

sudo apt-update
sudo apt-upgrade


Step 2: Download XAMPP package


Run the following command in your terminal:

wget https://www.apachefriends.org/xampp-files/7.3.7/xampp-linux-x64-7.3.7-0-installer.run

Note that, the above command download the XAMPP with version 7.3.7 / PHP 7.3.7, check the latest version on your of XAMPP on the official XAMPP website.


Step 3: Executable permission


It is important to give the executable permission to the downloaded file to install it.

chmod +x xampp-linux-x64-5.6.33-0-installer.run

Step 4: Install the XAMPP Package


To install the XAMPP Package run the following command:

./xampp-linux-x64-7.3.7-0-installer.run

Note: Wait till the installation is completed, and at the time of installation it will ask you some queries read it carefully and continue.



How to install XAMPP Server on Ubuntu using the terminal? | Installing XAMPP Server on Ubuntu using Terminal.



Step 5: Start XAMPP


Now, congrats you are successfully installing the XAMPP server on your Ubuntu machine. And, to start all the service of the XAMPP run the following command:

sudo /opt/lampp/xampp start

If you want to stop the XAMPP server run the command:

sudo /opt/lampp/xampp stop

The restart command for the XAMPP server is:

sudo /opt/lampp/xampp restart


Step 6: Change the server port if required (Optional)


Sometimes the location of the .conf file varies. But, in my case it is at /opt/lampp/etc/httpd.conf location. It's also your location in your case then open the httpd.conf file in your favorite editor and find the line "Listen 80", replace the port number 80 to any other port number of your choice.


Note: If you get the error on accessing the PHPMyAdmin.


The error message is given below:


PHPMyAdmin error: This setting can be configured in the file "httpd-xampp.conf"


Then, go the path /opt/lampp/etc/extra/ and open the httpd-xampp.conf file, replace "Require local" with "Require all granted".


path: /opt/lampp/etc/extra/httpd-xampp.conf


Run the below command to open the httpd-xampp.conf  to VI Editor.


vi  /opt/lampp/etc/extra/httpd-xampp.conf


Now, replace "Require local" with "Require all granted".


<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    #Require local
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

How to install XAMPP Server on Ubuntu using the terminal? || Installing XAMPP Server on Ubuntu using Terminal.



---
I hope you likable this nice post. Do not forget to share it together with your friends, the Sharing Button is below the post. Apart from this, if there's any downside within the intermediate, don't hesitate to request the Comment Box. we are going to be happy to help you.

I will continue to write more and more on this blog, so do not forget to make our blog BlogLearner as a bookmark (Ctrl + D) on your mobile or computer and subscribe to us to get all the posts in your email. Do not forget to share these posts, if you like it. You can facilitate us reach additional individuals by sharing it on social networking sites like Facebook or Twitter.



How to install XAMPP Server on Ubuntu using the terminal? | Installing XAMPP Server on Ubuntu using Terminal.

:) Thank You !!!

#xampp #rrkksinha

No comments:

Post a Comment

Bottom Ad [Post Page]

rrkksinha.