From Mageia wiki
(Redirected from Cookbook LAMP Stack)
Jump to: navigation, search


Drakconf multiflag.png
Other languages
English ;
this page is a draft.
It requires improvements. If you want to improve it, simply log in and click on the Edit tab.

Please remove this {{Draft}}template, when you're sure the page is complete and correct.


View the other draft pages, or other pages to improve and maintain.

Obsolete page see Task-lamp-installation

Installing a LAMP Server on Mageia

This will be a quick walk-through for installing a LAMP Stack on Mageia. It is intended to quickly get the necessary tools for a near-beginner. It may be that you find some of these tools unnecessary, but then you already know how to use LAMP, so what are you doing here? ;-)

Warning!
Using a command prompt is fast and effective. It is also fast and effective at breaking your computer if you don't pay attention to what you're doing.


First, let's install the basic LAMP stack. Do the following as root (or use the sudo command):

[root@localhost etc]# urpmi apache php mysql phpmyadmin

In order to satisfy the 'apache-mpm-peruser|apache-mpm-prefork|apache-mpm-itk|apache-mpm-itk|apache-mpm-peruser|apache-mpm-prefork' dependency, one of the following packages is needed:
 1- apache-mpm-prefork-2.2.24-1.mga2.x86_64: Implements a non-threaded, pre-forking web server (stable) (to install)
 2- apache-mpm-peruser-2.2.24-1.mga2.x86_64: Implements a hybrid multi-process, multi-threaded web server (experimental) (to install)
 3- apache-mpm-itk-2.2.24-1.mga2.x86_64: Implements a non-threaded, pre-forking web server (experimental) (to install)
What is your choice? (1-3) 1

The following (or similar warnings) may be received. You have to decide if you want to say yes or no. Obviously, I will say yes here.

The following package has to be removed for others to be upgraded:
apache-mpm-event-2.2.22-12.mga2.x86_64
 (due to conflicts with apache-mod_php) (y/N) y

There will now follow a long list of packages to be installed. Just say yes. I said yes to a 128MB download when I tested this recipe. :)

Note:
The web documents (pages, scripts etc.) have to be placed in the folder /var/www/html/. The configuration file is located under /etc/httpd/conf/httpd.conf.