Main Menu

search

You are here

Local Server

[last updated: 2025-05-09]
-----

  • Setting up a local server:
    • Introduction:
      • A local server is a collection of software installed on your local computer
        that creates an environment that allows execution of whole websites,
        "locally", that is without having an internet connection.
          Being "local", you have full control over the site,
          and the public cannot access it.
          It can be a useful way to develop and test a website before "going live"
          and hosting it onto some internet-accessible service.
      • XAMPP is a free, open-source software package
        that facilitates creation of a local server.
        • It includes Apache, MariaDB (formerly MySQL), PHP, and Perl.
          • Apache is the actual web server
          • MariaDB is a database manager for the content of the site
          • PHP is a scripting language used in website development
          • Perl is also a scripting language, typically used for sysadmin tasks.
        • In Linux, XAMPP is often installed in /opt/lampp directory.
          It can alternatively be installed in /usr/local/xampp.
        • XAMPP also includes a control panel for easy management.
            Open with:
              $ cd /opt/lampp
              $ sudo ./manager-linux-x64.run

          --------------------------------------------------

        • Install:
          • I downloaded: xampp-linux-x64-8.2.12-0-installer.run
            from: https://www.apachefriends.org/
          • Change permission:
              $ chmod 755 xampp-linux-*-installer.run
          • Run it to install:
              $ sudo apt-get update
              $ sudo apt-get upgrade
              $ sudo ./xampp-linux-*-installer.run
              follow the prompts ... click Finish
        • Start/Run XAMPP:
          • XAMPP must be Started before anything will happen
            If it is not started, then loading http://localhost will fail to connect
          • You can start it from a terminal command line:
              $ sudo /opt/lampp/lampp start
          • Or you can start it by running the manager:
              $ cd /opt/lampp
              $ sudo ./manager-linux-x64.run

            Then click on the Manage Servers tab at the top, and click Start All (at the bottom - it takes about 20 sec on my machine)

          • Once it is started, if the manager is open,
            click on the Manage Servers tab at the top, and you should see:
              MySQL Database Running
              ProFTPD Running
              Apache Web Server Running

            And if you now open a browser to URL http://localhost (per Linux FAQ link below)
            the Apache welcome page should be loaded.

        • Linux FAQ's: https://www.apachefriends.org/faq_linux.html
      • At this time (2025-05) I am setting this up to run WordPress.

      --------------------------------------------------

    • Installation Procedure:
      • Set up a Local Server:
        Choose a local server environment like XAMPP (Windows, Linux, macOS), MAMP (macOS), or WAMP (Windows).
        Download and install the chosen local server software.
        https://sourceforge.net/projects/xampp/postdownload
        Start the local server environment.

      --------------------------------------------------

    • Installation Log:

      --------------------------------------------------

    • Old/obsolete history:
      I did a lot of work investigating setting up a local server some time ago,
      in the context of making it work for Drupal.
      Eventually I abandoned the project as beyond my skill level, however there are several pages here with records of those attempts:

      --------------------------------------------------

    • Links:


    .


    .
    eof