Ubuntu13.04下web Servier(Apache+MySQL+PHP)的搭建

来源:互联网 发布:学英语的软件 编辑:程序博客网 时间:2024/06/05 05:53
切换到root身份进行一下的操作:su root
step1:安装Apache
apt-get install apache2
安装完毕以后在浏览器输入:localhost

step2:安装MySQL5
apt-get install mysql-server mysql-client
安装过程会要求输入mysql root账户的密码
安装成功后会自动启动mysql
重启mysql:service mysql restart 或者 /etc/init.d/mysqld restart

step3:安装php5和php5的模块
apt-get install php5 libapache2-mod-php5
安装完毕后,重启apache
/etc/init.d/apache2 restart
在/var/www 新建index.php
浏览器输入:localhost
这时候表明php已经安装成功。。

其实php5还有很多很好的模块
apt-cache search php5

其中我们可以特别关注下以下几个模块:
这个模块我们经常使用来抓取页面的内容。 
mongodb也是一个以json数据格式存储数据的数据库,在node.js里面经常使用到。
0 0
原创粉丝点击