网站优化

网站优化

Products

当前位置:首页 > 网站优化 >

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

GG网络技术分享 2025-03-18 16:12 0


问题描述:

I setup wordpress with the help of this tutorial...

how to install wordpress with LEMP on ubuntu 18.04when 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 当我尝试安装主题或插件时,显示如下错误消息</ p>

 安装失败:无法创建目录

</ code> </ pre>

< 我也尝试过这样的许可:</ p>

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

</ code> </ pre>

我通过此检查</ p>

  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

</ code> </ pre>

并使用此</ p>

  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

</ code> </ pre>

</ div>

网友观点:

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

标签:

提交需求或反馈

Demand feedback