Google Plus

How to install Lamp in Opensuse 11.x

Written by Mel Kham on . Posted in Linux tutorials

opensuse.gifLAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
In this Simple tutorial we will explain you how to install LAMP server on your Install Lamp in opensuse 11.0 and 11.1 Desktop
The installation will be done in 3 steps:
Apache, PHP and MySQL, after that we will install phpmyadmin the administration software tool for MySql.

 

1- Apache2 installation

lets use zypper to install apache

#zypper install apache2

check if httpd is running

# rcapache2 status

edit the index page of apache, choose a message for example “welcome to my server“:

# cd /srv/www/htdocs
#vi  index.html

Write for example :
welcome to my server

then save and exit
Start Apache2 Webserver

# rcapache2 start

2- PHP5 and dependencies installation:

 

#zypper install   php5 php5-mysql apache2-mod_php5

This should install PHP5, PHP5-MySQL module and the Apache2 PHP5 module.

Restart apache

# rcapache2 restart

3- MySql Installation :

To install mysql use the command

 

# zypper   install  mysql mysql-tools

check of now mysqld is running with

# rcmysql status

Checking for service MySQL: unused

-Now start mysql:

 # rcmysql start

Starting service MySQL done

-Now set Root Password for mysql

# mysqladmin -u root -p rootpassword

in the rootpassword type any complicated password

Install phpmyadmin:

Phpmyadmin the administration software tool for MySql. To install it use the command :

#zypper  install  phpMyAdmin

then

# cd /srv/www/htdocs/phpMyAdmin

 

# cp config.sample.inc.php  config.inc.php

edit this file and change this line to :

$cfg['blowfish_secret'] = ‘mysqladmin’

Now restart your apache and check the phpMyadmin page :

http://localhost/phpMyAdmin

 

See the result of this  installion (how have to see that apache is working , phpamydmin) in this video.


Download YouTube Video | YouTube Converter

 

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.
  • GAURAV YADAV

    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Access denied for user ‘root’@'localhost’ (using password: YES)’

    Kindly give a solution . :idea:

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

SK

|

Yes i will. Keep visiting. Subscribe us to get daily updates. Thanks for the comment

Rakesh Vijayan

|

Hi SK

I am Rakesh vijayan thanks for your great work ,by your work I start to learn what is ldap , my request is will you make tutorial for ldap and samba pdc for us on ubuntu 12.04

Guest

|

It was a typo. Now its corrected. Thanks for pointing out.

Michael T

|

You shouldn’t be so stupid, in the first time.

PrestaShop

|

Hi! Thank you for this nice article. We’ve 130,000+ active stores, you forgot the “1″ ;-)

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