XAMPP

Hosting Apache Server with XAMPP on CentOS 7

Xampp App

  1. Download xampp installer from the website above.

  2. We now have to execute the installer.

    If you just try running the file by double clicking on the file you will get the following error. 2020-06-18_No_App_for_Executables

    To run the file we have to make it an executable. Right click on the file and open properties.

    2020-06-18_Right_Click_Executable

    Go to the permissions tab.

    2020-06-18_Properties_Dialog_Basics.png

    Make the file an executable by allowing it too execute.

    2020-06-18_Properties_Dialog_Permissions_Not_Check.png

    2020-06-18_Properties_Dialog_Permissions_Check.png

  3. If you try to execute the program now, a diolog box will inform you that you can only execute as root.

    2020-06-18_Requires_Root_Dialog.png

    To resolve this we can open a terminal and run the file as root.

    Right click to open a terminal to the current directory with the file we want to execute.

    2020-06-18_Right_Click_Open_in_Terminal.png

    2020-06-18_Open_Terminal.png

    Execute the file with sudo and type your password when asked.

     $ sudo ./xampp-linux-64-7.4.7-installer.run
     $
    

    2020-06-18_Open_Terminal_Before_Execution.png

  4. Follow the installer.

    2020-06-18_Open_Terminal_After_Execution_Setup.png

    2020-06-18_XAMPP_Select_Components.png

    2020-06-18_XAMPP_Installation_Directory.png

    2020-06-18_XAMPP_Bitnami_for_XAMPP.png

    2020-06-18_XAMPP_Ready_To_Install.png

    2020-06-18_XAMPP_Welcome_Loading.png

  5. Launch the application after the install by checking the box to launch XAMPP.

    2020-06-18_XAMPP_Finish_Install.png

  6. The application should be open.

    2020-06-18_XAMPP_App_Welcome.png

Start an apache server in the application

  1. Open the application

    2020-06-18_XAMPP_App_Welcome.png

  2. Navigate to Manage servers, highlight Apache by clicking on it, and click start.

    2020-06-18_XAMPP_App_Manage_Servers.png

  3. Check if the apache server is online by opening a browser and type localhost. You will be navigated to localhost/dashboard. This webpage is running on the local Apache server. Note: if you stop the server from running, you will not be able to view this page.

    2020-06-18_XAMPP_Website_Home.png

Locating Apache Server Root Directory

  1. To View root directory of the Apache Server being hosted, click in the XAMPP app click on Configure

    2020-06-18_XAMPP_App_Configure_Button.png

  2. Click on Open Conf file (The configuration file).

    2020-06-18_XAMPP_App_Open_Conf_File_Button.png

  3. Click yes to manually edit the conf file.

    2020-06-18_XAMPP_App_Open_Conf_File_Manually_Edit_Warning.png

    You should see something like this.

    2020-06-18_XAMPP_App_Conf_File_Opened.png

  4. Locate the ServerRoot Line

    2020-06-18_XAMPP_App_Conf_File_Opened_ServerRoot_Line.png

  5. Here, it is indicated the root directory of the server: /opt/lampp/.

  6. You can open a file explorer and navigate to this direcotory. This is where you can make changes to files you want hosted.

    2020-06-18_File_Explorer_Apache_Root_Directory.png

    You can find the home page within this root directory. Here is where the dashboard html is:

    2020-06-18_File_Explorer_Dashboard_Home_Page.png

    Opening the html file, you can see the similarities to the dashboard home page.

    2020-06-18_File_Explorer_Dashboard_Home_Page_Html_Open.png

Access Apache Server on CentOS VM

To access an Apache server running on a CentOS 7 VirtualBox machine from a host (the physical computer):

accessing-a-centos-7-server-running-on-virtualbox-from-outside

Start XAMPP GUI App

References:

Executable to start GUI can be found here

$ cd /opt/lampp

If you use a 32-bit system:

$ sudo ./manager-linux.run # or manager-linux-x64.run

If you use a 64-bit system:

$ sudo /opt/lampp/manager-linux-x64.run

You will then see the xampp app launch.

Start XAMPP Apache Server from Terminal

Found from: Ubuntu 16.04 - How to start xampp control panel

Starts Apache Server from Terminal

sudo /opt/lampp/lampp start

Journal