donglv1831 2019-01-31 08:12
浏览 773

无法找到wordpress内容目录(wp-content)

I have configured my wordpress (5.0.3 -- latest) on the remote server (OS: Ubuntu 18.04).

Please find the directory structure for my blog directory. As you would notice, permissions are there so that wp-content is writable.

enter image description here

Following is the configuration in my wp-config.php:

define( 'FS_METHOD', 'ssh2' );
define( 'FTP_BASE', '/var/www/html/blog/' );
define( 'FTP_CONTENT_DIR', '/var/www/html/blog/wp-content/' );
define( 'FTP_PLUGIN_DIR ', '/var/www/html/blog/wp-content/plugins/' );

define( 'FTP_USER', 'ubuntu' );
define( 'FTP_PASS', 'XXXXXX' );
define( 'FTP_HOST', 'www.mydomain.com:22' );
define( 'FTP_SSL', true );

Now, when I'm trying to do any kind of write (like editing post, adding a theme, etc. I'm facing the error: "unable to locate wordpress content directory (wp-content)" while it is properly defined.

Another strange thing I noticed, while I was uploading the theme, it happened successfully in wp-content/uploads, but nothing new gets installed. Help me resolve this issue, as I have deployed wp before couple of times but this issue is something very new to me. All of the solutions available tell me to set that CONTENT_DIR in wp-config.php, which I have done from the very beginning anyway.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号
    • ¥50 安装pyaudiokits失败
    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能
    • ¥15 jmeter脚本回放有的是对的有的是错的
    • ¥15 r语言蛋白组学相关问题
    • ¥15 Python时间序列如何拟合疏系数模型