Install Lamp in mandriva 2011

by
Share this Article: Facebook8Google+1Twitter0LinkedIn0Reddit0StumbleUpon0

LAMP is an acronym for a solution stack of free, open source software, originally coined from the first letters of Linux (operating system), Apache HTTP Server, mandriva-tuxMySQL (database software) and Perl/PHP/Python, principal components to build a viable general purpose web server

The exact combination of software included in a LAMP package may vary, especially with respect to the web scripting software, as PHP may be replaced or supplemented by Perl and/or Python. Similar terms exist for essentially the same software suite (AMP) running on other operating systems, such as Microsoft Windows (WAMP), Mac OS (MAMP), Solaris (SAMP), or OpenBSD (OAMP).

In this post will show you how to install LAMP in Mandriva 2011

I-   Install  Apache  :

Apache2 is available as a Mandriva package,  just  install  with  this  command

urpmi apache-mpm-worker

Now start Apache:

/etc/init.d/httpd start

Check  the  page     with  http://hostname  or  http://IP

 

 

 

II-install  Mysql  the  Server  and  the  client  :

 Open terminal and enter the following commands:

urpmi  mysql  mysql-client  -a
start  the  Mysqld  with
/etc/init.d/mysqld start

 

Make the  root  password   with  the  command mysql_secure_installation

#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we’ll need the current password for the root user.  If you’ve just installed MySQL, and you haven’t set the root password yet, the password will be blank, so you should just press enter here.

Enter current password for root (enter for none)

III- Install  php

 Install PHP using the command:

urpmi apache-mod_php

 After  this   you  have  to  restart  apache

   /etc/init.d/httpd  restart

 

Check  the  php  page   with by creating a file

add this  code  to  one file  in apache  like  test.php   (with  vi   nano or  gedit )

vi /var/www/html/test.php

and  add

{codecitation}

{
{/codecitation}
save and exit

Now check the page

http://ip/test.php
 

 

IV- install phpmyadmin

If  more   comrortable  mysql  manager   you  have  to  install    phpmyadmin

urpmi  phpmyadmin

open  the   browser  on  http://ip/phpmyadmin and  login with  root  and  root   password  of  mysql server

 

 

 Enjoy

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook8Google+0Twitter0LinkedIn0Reddit0StumbleUpon0