Installing LAMP (Linux, Apache, MySQL/MariaDB, and PHP/PhpMyAdmin) in Arch Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

22 Responses

  1. Hadi Rezaee says:

    Hi

    Thanks for this amazing post, but there’s a problem with step 5.

    needs to be changed to

    If you don’t do that, the .htaccess file won’t be read by apache.
    Here’s the related link that i found:
    http://drupal.stackexchange.com/questions/98854/drupal-installed-with-drush-doesnt-display-home-page

  2. Markus says:

    Such a great tutorial. I was searching for a tutorial like this for hours without any afford…
    Great work. Thank you!

  3. Chad says:

    Loved the article; one of the best and most comprehensive about the subject of setting up a LAMP stack for newbies.

    Everything is working fine except when I get to php.conf in mods-enabled. When I got to restart Apache, I get this error below:

    “Job for httpd.service failed. See ‘systemctl status httpd.service’ and ‘journalctl -xn’ for details.”

    Not sure what to do :/

  4. Chad says:

    Typo on Step 4 line 9…. It should be “a2ensite”

  5. Michal says:

    Hi, nice one. Thank you very much.

    When I rode your tutorial I show an misstake in command.
    In line 15 ”
    $ sudo nano /etc/httpd/conf/sites-availble/localhost-ssl.conf

    should be
    $ sudo nano /etc/httpd/conf/sites-available/localhost-ssl.conf

    You eat “a” letter

  6. r33s says:

    The a2ensite script (ln -s) make this when I try to reload the httpd service :
    Could not open configuration file /etc/httpd/conf/sites-enabled/localhost.conf: Too many levels of symbolic links

    :(

  7. matei cezar says:

    read the point 24 again….focus on open_basedir and it should work!

  8. there's a problem says:

    whenever i change my DocumentRoot i get 403 Access Forbidden on localhost. i only need apache and php for production code, no hosting or whatever. i chmodded my whole profile, all/granted/indexes followsymlinks, still apache won’t access my folders.

  9. Pahak Rai says:

    this is a huge example and so very helpful for web developers as well

  10. Kanasaru says:

    Nice work. I just needed it to solve my issue with php under arch after the apache-update and what can I say…THANK YOU.

    But after reading the hole post, I`ve found a lot of useful configurations.

    greetz from germany,
    Kanasaru

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

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