您的位置:首页 > 运维架构 > Apache

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

2013-12-23 16:00 627 查看
切换到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里面经常使用到。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: