1 更新系统 apt-get update && apt-get upgrade 2 安装配置APACHE apt-get install apache2 nano /etc/apache2/apache2.conf KeepAlive Off a2dismod mpm_event a2enmod mpm_prefork systemctl restart apache2 3 安装配置MYSQL apt-get install mysql-server mysql_secure_installation 4 安装配置PHP apt-get install php5 php-pear mkdir /var/log/php chown www-data /var/log/php apt-get install php5-mysql systemctl restart apache2 5 安装PHPMYADMIN apt-get install phpmyadmin 6 因为自己在后台在线安装插件和主题的时候总提示过需要建立ftp连接,最后的解决办法还是权限设置问题 chmod 755 /var/www/wordpress/wp-content/ chown -R www-data /var/www/wordpress (责任编辑:最模板) |