LAMP, Linux Apache Mysql PHP
Installation
# aptitude update && aptitude upgrade Mysql
# aptitude install mysql-server mysql-client 修改Mysql登录root的密码(非必须操作,在安装过程中会让你建立root密码)
#/usr/bin/mysqladmin -u root password "password" Apache2 #aptitude install apache2 apache2-doc
#a2enmod userdir //配置web用户目录并激活module
#mkdir /home/$USER/public_html 创建目录(非root目录)
#chgrp www-data /home/$USER/public_html
#service apache2 restart #chmod 755 /home/$USER //如果有权限问题需改正
PHP
#aptitude install php5 php5-mysql libapache2-mod-php5
Test php
nano /var/www/apache2-default/test.php <?php phpinfo(); php>
PHPmyadmin
#aptitude install phpmyadmin
#include /etc/phpmysql/apache.conf
#service apache2 restart
/etc/php5/apache2/php.ini //需要php支持mysql
extension=mysql.so
/etc/mysql/my.cnf //mysql配置文件需要找样本 /usr/share/doc/msyql-server/example