LAMP的安装配置
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
页:
[1]