ubuntu11.10安装php+apache+mysql+phpmyadmin
参考网址,请猛击这里:http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/
首先安装apache2:
sudo apt-get install apache2
再安装mysql:
sudo apt-get install mysql-server
再安装php:
sudo apt-get install php5 libapache2-mod-php5 php5-mysql
然后安装phpmyadmin:
sudo apt-get install phpmyadmin
拷贝配置文件:
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
然后重启apache2:
sudo /etc/init.d/apache2 restart
如果此时出现:
apache2: Could not reliably determine the server's fully qualified domain name
则应该在/etc/apache2/httpd.conf中加上一行:ServerName localhost
至此,配置圆满完成,通过localhost/phpmyadmin可以图形访问数据库。