How to install LAMP (Linux Apache MySQL PHP) on OpenSUSE 13.1

June 2, 2014 | By | 1 Reply More

This guide will show you How to install LAMP (Linux Apache MySQL PHP) on OpenSUSE 13.1. If you are Ubuntu users, you can read how to install LAMP on Ubuntu 14.04 here. LAMP is the perfect applications if you want to turn your OpenSUSE 13.1 into a powerful web server and database server. Please proceed to the following steps to install LAMP on OpenSUSE 13.1

Install MySQL

[codesyntax lang=”bash”]

[/codesyntax]

In case your OpenSUSE has already installed MariaDB, you will see the following message appear during installation:

opensuse:/home/dhani # zypper install mysql-community-server mysql-community-server-client
Loading repository data…
Reading installed packages…
Resolving package dependencies…
2 Problems:
Problem: mysql-community-server-5.6.12-7.2.2.i586 conflicts with namespace:otherproviders(mysql) provided by mariadb-5.5.33-2.2.i586
Problem: mysql-community-server-client-5.6.12-7.2.2.i586 conflicts with namespace:otherproviders(mysql-client) provided by mariadb-client-5.5.33-2.2.i586

Problem: mysql-community-server-5.6.12-7.2.2.i586 conflicts with namespace:otherproviders(mysql) provided by mariadb-5.5.33-2.2.i586
Solution 1: deinstallation of mariadb-5.5.33-2.2.i586
Solution 2: do not install mysql-community-server-5.6.12-7.2.2.i586

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c):

If you see the above message, type c and press Enter. We will use the MariaDB instead of MySQL. Or you may want to remove MariaDB and install MySQL using above command.

Start MySQL Service

[codesyntax lang=”bash”]

[/codesyntax]

Secure MySQL Installation

[codesyntax lang=”bash”]

[/codesyntax]

You will need to answer some question during secure installation.

Install Apache

[codesyntax lang=”bash”]

[/codesyntax]

Start Apache2 service

[codesyntax lang=”bash” lines=”normal” lines_start=”1″]

[/codesyntax]

Install PHP

[codesyntax lang=”bash”]

[/codesyntax]

Restart Apache service

[codesyntax lang=”bash”]

[/codesyntax]

Test PHP installation

[codesyntax lang=”bash”]

[/codesyntax]

Type the following in the info.php

[codesyntax lang=”php”]

[/codesyntax]

Now open browser and type:

http://localhost/info.php

You should see the page similar to this one

php on opensuse

Tags: , , ,

Category: OpenSUSE

Comments (1)

Trackback URL | Comments RSS Feed

Sites That Link to this Post

  1. Install Linux-dash on OpenSUSE 13.1 | Linux, Forex and GIS | June 2, 2014

Leave a Reply