How to install Lamp in Opensuse 11.x


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUpon

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


# cd /srv/www/htdocs/phpMyAdmin


# cp

edit this file and change this line to :

$cfg['blowfish_secret'] = ‘mysqladmin’

Now restart your apache and check the phpMyadmin page :



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

Please enter the url to a YouTube video.