Server Admin Search
Articles Category
RSS Feed
Linux Apache MySQL and PHP Server (LAMP) on OPENSUSE 11
- Details
- Category: Linux
- Published on Saturday, 07 May 2011 04:13
- Written by Server Administrator
- Hits: 931
Linux, Apache, MySQL and PHP Server (LAMP) on OPENSUSE 11
Linux servers has many configurations and many roles. One of the most well know configuration is the LAMP server or Linux, Apache, MySQL and PHP server. The Lamp server configuration is the fasted way to get a web server up and running. Apache is the leading web server in the computer market. This install guild will show one how to install a LAMP server on OpenSuSe 11.
Getting the OpenSuSe 11 CD.
If you have not obtained a CD, then the best place to get it is http://software.opensuse.org/.
After installing, do not forget to add your Software Repositories in Yast.
Installing the LAMP or Linux, Apache, MySQL and PHP Server.
Open yast2. From any command line you can just type yast.

After opening Yast, you will need to open the Software Management tool.

Here you will need to filter by patterns. In this list you can select the LAMP server pattern.

Scroll down until you see the LAMP server pattern. If you just click the LAMP server option, Yast will install the default. You can pick other options after selecting the Lamp pattern.
A good option to pick is the yast2-http-server. This is a fast way to look at the config of apache.

Select accept and install.
Now that you know the GUI way here is the real way. Open a console as the root user and type:
zypper –install apache2; zypper –install php5 php5-mysql apache2-mod_php5; yast2 –install mysql mysql-tools
Configuring the LAMP Server.
Configuring MYSQL
This command will check to see if the MySQL server is install and not used:
Type > rcmysql status
This command will start MySQL:
Type >rcmysql start
This command will set the root password. Where you see rootpassword replace it with the password you want:
Type >mysqladmin -u root -p rootpassword
Starting for Apache 2
Start the server by typing the following command “rcapache2 start” or service apache2 start
The configuration files for your default site should go into /srv/www/htdocs.
Keeping servers running after a reboot
Run the following commands to add Apache2 and Mysql to start at boot.
chkconfig --add apache2; chkconfig apache2 on
chkconfig --add mysql; chkconfig mysql on
Yast2-http-server
A fast way to see how your server is setup and do some basic configurations is by using yast2-http-server.

You should now be able to go to http://localhost and see your site. If there are any questions, please see the forum at http://www.the-server-admin.com/forum/index.html

