安装环境
apt-get -y install apache2 php5 php5-mhash php5-mcrypt php5-curl php5-cli php5-mysql php5-mysqlnd php5-sqlite php5-gd php5-intl php5-dev mysql-server mysql-client phpmyadmin
开启php的mcrypt拓展
php5enmod mcrypt
启动伪静态
a2enmod rewrite
重启apache服务
service apache2 restart
安装ftp
apt-get install vsftpd
修改/etc/vsftpd.conf
- local_enable=YES //允许本地用户访问
- write_enable=YES //允许写入
- local_umask=022 //上传后文件的权限掩码
service vsftpd restart
ubuntu12.04&15.04安装lamp(12.04为主)://m.ajphoenix.com/linux/13087.html