ubuntu搭建PHP+MySQL环境

来源:互联网 发布:ai软件下载教程 编辑:程序博客网 时间:2024/05/24 06:53

版本Ubuntu12.01 

1、更新源  sudo apt-get update

2、sudo apt-get install apache2 

3、sudo apt-get install php5 libapache2-mod-php5  

4、sudo apt-get install mysql-server

5、sudo apt-get install libapache-mod-auth-mysql

6、sudo apt-get install php5-mysql

7、sudo apt-get install phpmyadmin

8、安装curl组件 sudo apt-get intall php5-curl(这个要更新源还能生效sudo apt-get update)


其他操作:

1、Apache重启  sudo /etc/init.d/apache2 restart

2、MySQL重启  sudo /etc/init.d/mysql restart

3、Apache配置文件位置 /etc/apache2/

4、MySQL配置文件位置 /etc/mysql/

5、网站默认目录  /var/www/

0 0
原创粉丝点击