Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
升级Vultr“;一键式;CentOS 6上的Wordpress至PHP7_Php_Wordpress_Nginx_Centos_Php 7 - Fatal编程技术网

升级Vultr“;一键式;CentOS 6上的Wordpress至PHP7

升级Vultr“;一键式;CentOS 6上的Wordpress至PHP7,php,wordpress,nginx,centos,php-7,Php,Wordpress,Nginx,Centos,Php 7,正在尝试将Vultr“一键式”Wordpress升级到PHP7 上面的方法似乎有效,但现在每当我更改某些内容时,wordpress都会要求我提供FTP凭据。我已经检查了wordpress目录上的凭据,一切似乎都正常 我错过了什么 cd /var/www/html sudo chown nginx:nginx * -R sudo find . -type d -exec chmod 755 {} \; sudo find . -type f -exec chmod 644 {} \; servi

正在尝试将Vultr“一键式”Wordpress升级到PHP7

上面的方法似乎有效,但现在每当我更改某些内容时,wordpress都会要求我提供FTP凭据。我已经检查了wordpress目录上的凭据,一切似乎都正常

我错过了什么

cd /var/www/html
sudo chown nginx:nginx * -R
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;
service nginx restart && service php-fpm restart
ls -l
给出下面的输出(我认为这是正确的用户和组)


好的,找到问题了!需要启动php7配置以更改用户和组

-rw-r--r--  1 nginx nginx   418 Sep 25  2013 index.php
-rw-r--r--  1 nginx nginx 19935 Mar  5 20:14 license.txt
-rw-r--r--  1 nginx nginx  7360 Apr 26 20:25 readme.html
-rw-r--r--  1 nginx nginx  5032 Jan 28 03:35 wp-activate.php
drwxr-xr-x  9 nginx nginx  4096 May  6 18:33 wp-admin
-rw-r--r--  1 nginx nginx   364 Dec 19 11:20 wp-blog-header.php
-rw-r--r--  1 nginx nginx  1476 Jan 30 21:56 wp-comments-post.php
-rw-r--r--  1 nginx nginx  1590 Jun  4 02:46 wp-config.php
-rw-r--r--  1 nginx nginx  2853 Dec 16 09:58 wp-config-sample.php
drwxr-xr-x  6 nginx nginx  4096 Jun  4 02:49 wp-content
-rw-r--r--  1 nginx nginx  3286 May 24  2015 wp-cron.php
drwxr-xr-x 16 nginx nginx 12288 May  6 18:33 wp-includes
-rw-r--r--  1 nginx nginx  2380 Oct 24  2013 wp-links-opml.php
-rw-r--r--  1 nginx nginx  3316 Nov  5  2015 wp-load.php
-rw-r--r--  1 nginx nginx 33837 Mar  6 03:06 wp-login.php
-rw-r--r--  1 nginx nginx  7887 Oct  6  2015 wp-mail.php
-rw-r--r--  1 nginx nginx 13106 Feb 17 22:58 wp-settings.php
-rw-r--r--  1 nginx nginx 28624 Jan 28 03:51 wp-signup.php
-rw-r--r--  1 nginx nginx  4035 Nov 30  2014 wp-trackback.php
-rw-r--r--  1 nginx nginx  3061 Oct  2  2015 xmlrpc.php
sudo nano /etc/php-fpm.d/www.conf
    user = nginx
    group = nginx
service nginx restart && service php-fpm restart

好的,找到问题了!需要启动php7配置以更改用户和组

-rw-r--r--  1 nginx nginx   418 Sep 25  2013 index.php
-rw-r--r--  1 nginx nginx 19935 Mar  5 20:14 license.txt
-rw-r--r--  1 nginx nginx  7360 Apr 26 20:25 readme.html
-rw-r--r--  1 nginx nginx  5032 Jan 28 03:35 wp-activate.php
drwxr-xr-x  9 nginx nginx  4096 May  6 18:33 wp-admin
-rw-r--r--  1 nginx nginx   364 Dec 19 11:20 wp-blog-header.php
-rw-r--r--  1 nginx nginx  1476 Jan 30 21:56 wp-comments-post.php
-rw-r--r--  1 nginx nginx  1590 Jun  4 02:46 wp-config.php
-rw-r--r--  1 nginx nginx  2853 Dec 16 09:58 wp-config-sample.php
drwxr-xr-x  6 nginx nginx  4096 Jun  4 02:49 wp-content
-rw-r--r--  1 nginx nginx  3286 May 24  2015 wp-cron.php
drwxr-xr-x 16 nginx nginx 12288 May  6 18:33 wp-includes
-rw-r--r--  1 nginx nginx  2380 Oct 24  2013 wp-links-opml.php
-rw-r--r--  1 nginx nginx  3316 Nov  5  2015 wp-load.php
-rw-r--r--  1 nginx nginx 33837 Mar  6 03:06 wp-login.php
-rw-r--r--  1 nginx nginx  7887 Oct  6  2015 wp-mail.php
-rw-r--r--  1 nginx nginx 13106 Feb 17 22:58 wp-settings.php
-rw-r--r--  1 nginx nginx 28624 Jan 28 03:51 wp-signup.php
-rw-r--r--  1 nginx nginx  4035 Nov 30  2014 wp-trackback.php
-rw-r--r--  1 nginx nginx  3061 Oct  2  2015 xmlrpc.php
sudo nano /etc/php-fpm.d/www.conf
    user = nginx
    group = nginx
service nginx restart && service php-fpm restart