douaipi3965
2018-09-06 17:25
浏览 284
已采纳

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

I setup wordpress with the help of this tutorial... how to install wordpress with LEMP on ubuntu 18.04 when I tried to install theme or plugins the error message shown like this

Installation failed: Could not create directory

I tried also to give permission with this:

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 {} \;

I checked by this

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

and with this

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

图片转代码服务由CSDN问答提供 功能建议

我在本教程的帮助下设置了wordpress ... 如何在ubuntu 18.04上安装带有LEMP的wordpress 当我尝试安装主题或插件时,显示如下错误消息

 安装失败:无法创建目录
   
 
 < 我也尝试过这样的许可: 
 
 
  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 
 \  n826 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 \  n 
root 759 1 0 Sep03?  00:00:11 php-fpm:主进程(/etc/php/7.2/fpm/php-fpm.conf)
nn-data 834 759 0 Sep03?  00:00:03 php-fpm:pool www 
 -www 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 19731 759 0 Sep04?  00:00:00 php-fpm:pool www 
   
 
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douzhi4991 2018-09-07 03:58
    已采纳

    changing ownership with this it works like charm

    sudo chown -R www-data:www-data /var/www/domain_name.com/html/
    sudo systemctl reload nginx
    
    点赞 打赏 评论

相关推荐 更多相似问题