Setting LAMP up on Arch Linux
Posted 10 months, 3 weeks ago at 1:06 pm. 1 comment
Setting LAMP up on Arch Linux couldn’t be any easier. To install it basically takes 3 commands.
pacman -S apache php libxml2 mysql
This downloads the latest Arch package binaries of apache, php, and MySQL (also libxml2 which is required for php). After entering the command, pacman will automatically download and install all of the software.
Next, you go into your httpd.conf file which is the configuration file for apache.
nano /etc/httpd/conf/httpd.conf
Near top of the file there are a list of modules, comment out the line that says LoadModule unique_id_module modules/mod_unique_id.so By placing a # infront of the line. Ctrl+X to quit, make sure to type ‘y’ when it asks you to save.
Now, go into you php.ini file.
nano /etc/php/php.ini
Find the list modules there and remove the semicolon (;) from the front of the line that says ;extension=mysql.so. This enables php to work with MySQL.
Now add apache and mysql to start at boot (php doesn’t need to be explicitly started).
nano /etc/rc.conf
Use your down arrow key to navigate to where it says:
DAEMONS=(syslog-ng network netfs crond) and add httpd and mysqld separated by a space within the parentheses.
Now you can either reboot or type in /etc/rc.d/httpd start and /etc/rc.d/mysqld start
Now everything should be setup! Type in the local ip of the server, or if you are on the server ‘localhost’ in your web browser and you should see an Apache test page.
Be sure you go through the httpd.conf on your own again to change some of the settings to suit you. Any question, don’t hesitate to either comment here or post on the Arch Linux Forums. They are pretty quick at getting back usually.
not very quick on support
http://bbs.archlinux.org/viewtopic.php?pid=404359