Google Plus

Install Lamp in mandriva 2011

Written by Mel Kham on . Posted in Linux tutorials

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

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • http://opensource-tr.org/forum canemir

    Hi urpmi phpmuadmin

    urpmi phpmyadmin edit.

    thanks

  • http://localhost Steph

    Quick & easy install!

  • pirat9

    enter your message here…[quote=canemir]Hi urpmi phpmuadmin

    urpmi phpmyadmin edit.

    thanks[/quote]
    is Done thx

  • Maicon Herverton

    What directory to put the projects because var / www besides being owned by the apache user, even if you enter a folder there, I can not access it through browser. The phpmyadmin is not there in the folder var / www, but the same wheel. What is it?

    • http://enteryoursiteURL... This

      Sorry, I’ve not seen the full tutorial = )

  • http://enteryoursiteURL... OILUARBARRAP

    YEAH !! DESPUES DE MUCHO , YA ESTA ! GRACIAS GRACIAS, TE DEBO LA MALDITA EXISTENCIA DE MI SER

  • buymore

    Спасибо поставлю на Mandriva отпишусь…

  • buymore

    Спасибо поставлю на Mandriva отпишусь…

  • buymore

    Спасибо поставлю на Mandriva отпишусь…

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Ladi Oyekanmi

|

Could you please assist in step by step on how to install nagios on solaris

Adhraa

|

Greate tutorial :)

pigmej

|

Just one thing:

What about pep8 in your python code ? How can you give ‘tutorials’ on quite popular website, of such a bad quality ?

Amit Rai

|

I just renamed shared.xml and it logged in and created a new shared.xml.

DB Griffin

|

Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!

If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.

Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .