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

安装失败:无法在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
  • 写回答

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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)