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

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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. Giacomo Rossi says:

    Hi, thanks for the great guide! I’ve tried to enable ssl but my site is not responding…

    I’ve used localhost as ServerName because I’ve activated a noip account: but when I try to reach the site isn’t available, but is ok…

    • Matei Cezar says:

      Does the server responds on localhost with ssl,port 443. run netstat to confirm it binds on 443. are you behind a router? if yes, forward ports on the router side. Also, does ddns record replay on port 80.

  2. Mikkel windfeld says:

    Great post, Thanks!

  3. ryan says:

    after completing the configuration, I try to make the applications using CodeIgniter framework, but at run time instead of blank page is opened, I use PHP version 5.9 is okay, but the current version of PHP 5.6 there is a problem, whether the issue of versions of PHP or from the wrong configuration …

  4. ElectricPrism says:

    I had 2 problems getting PhpMyAdmin installed:

    • the code to create a vhost alias in localhost.conf didn’t work, I had to add the code to httpd.conf for it to work.
    • PhpMyAdmin created a bad symlink /usr/share/webapps/phpMyAdmin/ pointed to [ lowercase ] /usr/share/webapps/phpmyadmin/

    Replacing with fixed the problem.

    Hope this helps someone.

    # Enable Mod Rewrite in “/etc/httpd/conf/httpd.conf” by uncommenting
    #LoadModule rewrite_module modules/
    LoadModule alias_module modules/
    # Append to end of file “/etc/httpd/conf/httpd.conf”
    # PhpMyAdmin
    Include conf/phpmyadmin.conf
    # Create File “/etc/httpd/conf/phpmyadmin.conf” with contents
    Alias /phpmyadmin "/usr/share/webapps/phpMyAdmin"
    <Directory "/usr/share/webapps/phpMyAdmin">
        DirectoryIndex index.html index.php
        AllowOverride All
        Options FollowSymlinks
        Require all granted
    # PhpMyAdmin Symlinks are bad
    mv /usr/share/webapps/phpMyAdmin/ /usr/share/webapps/phpMyAdmin/
    # Copy Config
    sudo cp /usr/share/webapps/phpMyAdmin/ /usr/share/webapps/phpMyAdmin/
  5. EP says:

    The whole /etc/httpd/conf/mods-enabled/php.conf file wasn’t working for me.

    I had to comment out “mpm_event_module” in the httpd.conf file and below it put in the

    LoadModule mpm_prefork_module modules/

    # Followed later at the end of the modules by# Use for PHP 5.x:
    LoadModule php5_module modules/
    AddHandler php5-script php
    Include conf/extra/php5_module.conf

    ## Took me some doing just to get PHP running, otherwise the article is solid.

  6. UK Paul says:

    Absolutely amazing post, thanks Matei.

  7. Hadi Rezaee says:

    aa ok, I think my previous comment was… not written well? I don’t see my code. please read the link above that i posted, and correct step 5.

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.