- 安装Apache2/MySQL/PHP5/PHPMyAdmin
//安装MySQL5.0
sudo apt-get install mysql-server-5.0
//安装Apache2
sudo apt-get install apache2
//安装PHP5
sudo apt-get install php5 libapache2-mod-php5
//让Apache、php支持MySQL
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo /etc/init.d/apache2 restart
//重启Apache
sudo /etc/init.d/apache2 restart
//安装phpmyadmin
sudo apt-get install phpmyadmin//启用mod-rewrite 模块
sudo a2enmod rewrite//配置PHP
sudo gedit /etc/php5/apache2/php.ini
//配置Apache
sudo gedit /etc/apache2/apache2.conf
//主目录地址
/var/www/ - 几个不错的站:
http://forum.ubuntu.org.cn
http://ubuntu-tweak.com
http://www.gnome-look.org
http://art.gnome.org/themes/gdm_greeter/
http://linuxtoy.org
http://browse.deviantart.com/customization/skins/linuxutil/gnome/
文泉驿开源字体:http://wenq.org
linux下数据库备份和自动回复脚本
1.数据库自动备份
新建目录 /var/cfhbackup/dbbackup/用来存放备份文件。
gksudo mkdir /var/cfhbackup/dbbackup/