Ubuntu下构建LAMP服务器

豆豆网   技术应用频道   2007年03月03日  【字号: 收藏本文

本文详细介绍Ubuntu下构建LAMP服务器

  First download PuTTy if you are accessing your server through SSH. Just enter the IP of your server with root login to access your host. As you probably know, Webmin is a freely available server control panel and we will setup this once we have completed the LAMP server and Mail Server. Webmin makes more easier for us to fine tune our linux box.

  Before proceeding to install, update the necessary packages with debian with this command.

  apt-get install update

1. Installing Apache + PHP

  Apache is one of the most famous web server which runs on most linux based servers. With just few commands you can configure apache to run with PHP 4 or PHP 5.

  If you want to install PHP 4, just apt-get

  apt-get install apache2 php4 libapache2-mod-php4

  To install PHP5, just run the following on linux shell. Note that if you dont specify packages with '4', PHP5 will be automatically installed.

  apt-get install apache2 php5 libapache2-mod-php5

  Apache configuration file is located at: /etc/apache2/apache2.conf and your web folder is /var/www.

  To check whether php is installed and running properly, just create a test.php in your /var/www folder with phpinfo() function exactly as shown below.

  nano /var/www/test.php

作者:olddocks    责编:豆豆技术应用

正在加载评论...