Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/277.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.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
Php 安装失败:无法在ubuntu上的wordpress nginx中创建目录_Php_Wordpress_Ubuntu_Nginx - Fatal编程技术网

Php 安装失败:无法在ubuntu上的wordpress nginx中创建目录

Php 安装失败:无法在ubuntu上的wordpress nginx中创建目录,php,wordpress,ubuntu,nginx,Php,Wordpress,Ubuntu,Nginx,我在本教程的帮助下安装了wordpress。。。 当我尝试安装主题或插件时,错误消息如下所示 Installation failed: Could not create directory 我还试图通过以下方式给予许可: sudo chown -R www-data:www-data /var/www/domain_name.com/html/wp-content/plugins sudo find /var/www/domain_name/html/ -type d -exec chmod

我在本教程的帮助下安装了wordpress。。。 当我尝试安装主题或插件时,错误消息如下所示

Installation failed: Could not create directory
我还试图通过以下方式给予许可:

sudo chown -R www-data:www-data /var/www/domain_name.com/html/wp-content/plugins
sudo find /var/www/domain_name/html/ -type d -exec chmod 7555 {} \;
sudo find /var/www/c-linkons.com/html/ -type f -exec chmod 644 {} \;
我查过了

ps aux|grep nginx|grep -v grep

826  0.0  0.9 142688  9184 ?        Ss   Sep03   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 13818  0.0  0.8 144988  8748 ?        S    Sep04   0:00 nginx: worker process
用这个

ps -ef |grep php

root       759     1  0 Sep03 ?        00:00:11 php-fpm: master process    (/etc/php/7.2/fpm/php-fpm.conf)

www-data   834   759  0 Sep03 ?        00:00:03 php-fpm: pool www
www-data   835   759  0 Sep03 ?        00:00:05 php-fpm: pool www
root      8843  8831  0 15:58 pts/0    00:00:00 grep --color=auto php
www-data 19731   759  0 Sep04 ?        00:00:00 php-fpm: pool www

用它来改变所有权就像魅力一样

sudo chown -R www-data:www-data /var/www/domain_name.com/html/
sudo systemctl reload nginx

你能从
/var/www/domain\u name.com/
/var/www/domain\u name.com/html/
文件夹发布
ls-l
的结果吗?当我写sudo ln-s/var/www/domain\u name.com//var/www/domain\u name.com/html/时,它没有显示任何内容。。。