ubuntu学习笔记(一)

环境的搭建:
1.一些准备工作:

sudo apt-get update
sudo apt-cache search libxml | grep dev
sudo apt-get install libxml2-dev
sudo apt-cache show libxml2-dev

2.安装MySQL:

sudo apt-get install mysql-server-5.1
修改MySQL配置文件:
vi /etc/mysql/my.cnf
注释掉bind-address = 127.0.0.1行,重启MySQL:
sudo /etc/init.d/mysql restart

3.安装apache

sudo apt-get install apache2-dev

配置Apache:

sudo a2enmod rewrite

4.安装PHP

sudo apt-get install php5-dev
sudo apt-get install libapache2-mod-php5
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 restart

5.其他
安装phpmyadmin:

sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin/ /var/www

你可能感兴趣的:(apache,PHP,mysql,ubuntu,phpMyAdmin,search)