suse linux lamp服务器,How-To: Build a LAMP server under Suse Linux

This "How-To" will walk you through the simple process of getting your Suse Linux server (OpenSuse or SLES) up and running as a LAMP (Linux, Apache, Mysql, PHP/Perl). For the purposes of this article, we will be starting with a fresh install of Suse Linux Enterprise Server (SLES), and going from there. You may accomplish the tasks in this tutorial as part of the installation process, however we will not be covering that here.

So, let's get started! You've just finished installing a shiny new copy of Suse Linux, and you'd like to be able to do something with it. As I mentioned, we're going to walk through setting yourself up with a simple web and database server, so you can start publishing content onto the world wide web.

In Suse Linux, most of the common administrative tasks can be performed through our "YaST" tool. YaST is one of those acronymns for which Linux and open-source software are so famous. In this case it stands for "Yet Another Setup Tool". Nice, eh? YaST can be accessed by clicking on the "Computer" button in the lower left-hand corner of the desktop.

You'll see "YaST" as one of the options in the "System" section on the right-hand side of the popup menu, but don't click on it quite yet! Since the software installation process is one that is often done, we've added a link to that portion of YaST directly to the menu here. So, for now, go ahead and click on the "Install Software" link, but feel free to click on the "YaST" one later on and explore away. We'll be spending lots of time there in future tutorials. For future reference, you can find the software installation in YaST by going to the "Software" section and clicking on the "Software Management" button.

This will bring up the tool, which should look like this:

d88ca5c7666bdf8d92a688073bb5d527.png

Figure 1:Software Management

Once you're in the "Software Management" application, click the dropdown box labeled "Filter:" and select "Patterns". Scroll down to the "Primary Functions" heading and select the "Web and LAMP Server".

7caad08bef987825382dcbfa8325661f.png

Figure 2: Selecting the Web and LAMP Server

When you click the checkbox, you will see the packages that make up this particular pattern. You have the option to include or remove packages individually, or check the box next to the pattern name and select the whole list. As you can see, this will give you the following packages:

apache2

apache2-doc

apache2-example-pages

apache2-mod_php5

apache2-mod_python

apache2-prefork

libapr1

libapr-util1

mysql

Unless you're constrained by space, just go ahead and install all of the packages. You can start the installation process by clicking the "Accept" button in the lower right-hand corner.

And, it's as simple as that! You are now setup with the Apache web server, which can serve out both PHP and Python scripted pages and we've installed the MySQL database as our default place to store data. At this point, you can download and follow the instructions for installing your favorite web application. Some popular open-source projects built on this LAMP stack are Wordpress, Mambo, Drupal, and thousands more.

Enjoy!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值