博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

LAMP的安装配置

Posted on 2011-10-13 09:44  douyamumu  阅读(128)  评论(0)    收藏  举报
There are many ways to install LAMP.
Here shows the most easiest way to install LAMP using yum program.

1)Install the CentOS OS.

2)yum install httpd php mysql mysql-server

3)service httpd start

4)service mysqld start

5)Once both services is running, you can point your browser to http://localhost and you should see a welcome page from CentOS,If    you     see that welcome page, you just installed everything successfull.

6)To test if php is running, cd to /var/www/html and create an index.php file with the content below

      <?php phpinfo(); ?>

7)Refresh your browser. If you see a purple PHP information page showing all the php configuration variables, then php is running now.

Congratulation, you just successfully installed LAMP in your machine.

NOTICE:THIS SETUP IS JUST SUITABLE FOR DEVELOPMENT PURPOSES, DO NOT USE IT FOR PRODUCTION