最近对vps的操作系统进行了升级,记录一下
操作系统升级
sudo apt update
我按照提示直接
sudo do-release-upgrade 报错,所以,先
sudo apt dist-upgrade
然后
sudo do-release-upgrade
php升级,升级以后php升级到7.0了
$ php -version
PHP 7.0.33-0ubuntu0.16.04.4 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies
博客需要配合升级
- 安装 如果在/etc/php/7.0下没有fpm文件夹,需要安装fpm
sudo apt-get install php7.0-fpm
sudo service php7.0-fpm stop
sudo service php7.0-fpm start - php配置文件在/etc/php/7.0/fpm/pool.d/www.conf
- 修改nginx的conf配置文件为
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
修改mysql的配置
- 报错您的PHP似乎没有安装运行WordPress所必需的MySQL扩展
- sudo apt-get install php-mysql