Wordpress permission

Hello i moved my site fomr old hosting to new with E4, all work ok, but when i try update plugins, wordpress request me for FTP info.

Any help?
THanks

You try
chown -R www-data:www:data /opt/easyengine/sites/domain.com/app/htdocs

Work now? @Ph_m_Nh_Dong How work this? I have problem with permission for WordPress for upload media. Is migration of old to ee4. I run the ls -l and i have in app wwwdata e and htdocs i have root user. You can help me?

You can upload “ls -l” command results. (or screen shoot)

Hello thx for help. The results command:

/app# ls -l
total 12
-rw-r–r-- 1 www-data www-data 394 Jan 31 18:09 dead.letter
drwxr-xr-x 10 www-data www-data 4096 Feb 3 13:03 htdocs
-rw-r–r-- 1 www-data www-data 3409 Feb 3 13:03 wp-config.php

/app/htdocs# ls -l
total 1112196
-rw-r–r-- 1 root root 58 Jan 31 19:00 ads.txt
-rw-r–r-- 1 root root 3522 Jan 31 19:00 Desable_wp-config.php
drwxr-xr-x 2 root root 4096 Jan 31 19:00 download
drwxr-xr-x 8 root root 4096 Jan 31 19:00 dup-installer
drwxr-xr-x 2 root root 4096 Jan 31 18:12 ee-admin
-rw-r–r-- 1 root root 71561 Jan 31 19:00 error_log
-rw-r–r-- 1 root root 420 Jan 31 19:00 index.php
-rw-r–r-- 1 root root 484 Jan 31 19:00 lomadee22695990.html
-rw-r–r-- 1 root root 1138569539 Jan 31 18:58 marcelo.zip
drwxr-xr-x 2 root root 4096 Jan 31 19:00 ml
-rw-r–r-- 1 root root 502 Jan 31 19:00 pagseguro.htm
-rw-r–r-- 1 root root 238 Jan 31 19:00 web.config
-rw-r–r-- 1 root root 166 Jan 31 19:00 web.config-191220213139-5dfd3dbbdbc63-duplicator.bak
-rw-r–r-- 1 root root 6939 Jan 31 19:00 wp-activate.php
drwxr-xr-x 10 root root 4096 Jan 31 19:00 wp-admin
-rw-r–r-- 1 root root 369 Jan 31 19:00 wp-blog-header.php
-rw-r–r-- 1 root root 2283 Jan 31 19:00 wp-comments-post.php
-rw-r–r-- 1 root root 3075 Jan 31 19:00 wp-config-sample.php
drwxr-xr-x 11 root root 4096 Jan 31 19:00 wp-content
-rw-r–r-- 1 root root 3955 Jan 31 19:00 wp-cron.php
drwxr-xr-x 20 root root 12288 Jan 31 19:00 wp-includes
-rw-r–r-- 1 root root 2504 Jan 31 19:00 wp-links-opml.php
-rw-r–r-- 1 root root 3326 Jan 31 19:00 wp-load.php
-rw-r–r-- 1 root root 47597 Jan 31 19:00 wp-login.php
-rw-r–r-- 1 root root 8483 Jan 31 19:00 wp-mail.php
-rw-r–r-- 1 root root 413 Jan 31 19:00 wp-pass.php
-rw-r–r-- 1 root root 334 Jan 31 19:00 wp-register.php
-rw-r–r-- 1 root root 19120 Jan 31 19:00 wp-settings.php
-rw-r–r-- 1 root root 31112 Jan 31 19:00 wp-signup.php
drwxr-xr-x 3 root root 4096 Jan 31 19:00 wp-snapshots
-rw-r–r-- 1 root root 4764 Jan 31 19:00 wp-trackback.php
-rw-r–r-- 1 root root 3150 Jan 31 19:00 xmlrpc.php

you run command: sudo chown www-data:www-data -R /opt/easyengine/sites/domain.com/app/htdocs

1 Like

note: /domain.com/ = your domain

Thx!!! Right -

Work now. he change user in ls -l the user right ever is www-data right? Very thanks!!!

1 Like

I am happy to support you

The Recommended WordPress File Permissions

That being said, none of your WordPress file permissions should be set to 777, or “-rwxrwxrwx” if you’re using FTP , or SSH. This would give everyone full access to the file which is incredibly unsafe.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.