Installing and running XAMPP

 

XAMPP is a suite of standalone servers meaning it does not affect the operating system and / or the services of the host system.
Starting from Menu/Education/XAMPP

Both Apache2 and MySQL can be run as services installed on the operating system as well as on XAMPP.
The issue is that to run the apache2 service in XAMPP, the apache2 service of the system must be shut down.
Start in browser at .127.0.0.1 or write localhost

If a page appears stating Apache2 Debian Default Page … the operating system apache2 service is running.

What is to be done in this aspect?
To check the operating system services before starting those of XAMPP, the following commands are running in the console:

#service apache2 status

if the service is on, the following message will appear:

# apache2.service – The Apache HTTP Server

if the service is on, the following message will appear:

#apache2.service – The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-27 19:09:05 EEST; 15h ago
Process: 15191 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 562 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 704 (apache2)
Tasks: 7 (limit: 4915)
CGroup: /system.slice/apache2.service
├─ 704 /usr/sbin/apache2 -k start
├─15203 /usr/sbin/apache2 -k start
├─15204 /usr/sbin/apache2 -k start
├─15205 /usr/sbin/apache2 -k start
├─15206 /usr/sbin/apache2 -k start
├─15207 /usr/sbin/apache2 -k start
└─15254 /usr/sbin/apache2 -k start

if the service is not on, the following message will appear:

#Unit apache2.service could not be found

Further to check mysql if installed and running as a service running:

#service mysql status

If the service is started it will appear as above given command to check apache2.
If Not On will appear:

#Unit mysql.service could not be found

Stop the service running on the system by going to /usr/sbin/apache2 path with command:

#service apache2 stop

Checking:

#service apache2 status
#● apache2.service – The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2018-03-28 10:27:07 EEST; 1min 29s ago
Process: 23609 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 15191 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 562 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 704 (code=exited, status=0/SUCCESS)

If you notice the service is inactive. In Active status status: appears inactive

It can be checked by running browser 127.0.0.1 or localhost

If the page appears, press F5 a few times, which means refresh the page.
Erroneous display will appear because the last query is kept in the browser cache. F5 reload the page.
The result should be:

Unable to connect

Firefox can not establish a connection to the server at 127.0.0.1.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is allowed to access the Web.

So we’re ready to run XAMPP
First what XAMPP do it .
Simply I can run various platforms like WordPress, Joomla, Wikimedia, Drupal, or static sites without affecting the system’s core servers.

We start the XAMPP application, select the manage servers tab and all must appear in green after they are started.

Everything is running in /opt/lampp
We have here the directories /htdocs and /apps

This version of  XAMPP comes with a very cool thing for novices. In fact, the entire program is meant for those who want to take the first steps in building a site, blog, wikimedia …. to get acquainted with the platforms.
Coming back, to install some platforms we can use Bitnami.
Scroll down the page: https://www.apachefriends.org/ro/download.html

Search Add-ons and as you can see there is a plethora of applications that can be installed in XAMPP.
Bitnami account must be created and download the file you want that comes with .run extension

As root run the following commands:

# chmod +x nume_pachet_instalare_app_xampp.run

# ./nume_pachet_instalare_app_xampp.run

Go through some graphical installation menus and then automatically start your installed application.

But first XAMPP services must be started.
Select one at a time MySQL Database , Apache Web Server , ProFTPD (ProFTPD  depends if you want to connect to FTP server  included in suite, otherwise could be off).

Starting every service, the red dots turn green meaning the service is on.

You can check also Application Log tab.

With started servers You can play as You wish!

 

Author: Abibula Aygun

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.