• Hi Everybody,

    I set my permissions, as recommendend by WordPress from here and here.

    So all directories to 755 and files to 644
    except the Cache and Uploads directories got 775
    the config.php is set to 600
    .htaccess is set to 644 (604 does not work for my page)
    and one Backup Plugin needs 775 (which is fine for me)

    Everything seems to work. And as expected WordPress askes for the FTP-Password, when I update plugins.

    But WordPress shows this message all the time:

    Required File Permissions to import the templates are missing.
    You can easily update permissions by adding the following code into the wp-config.php file.
    define( ‘FS_METHOD’, ‘direct’ );

    When I insert the code into wp-config.php then the message disappears. But next time I want to update a plugin – WordPress does not ask me for the FTP-Password and the update failes.

    So I again deleted this code in the wp-config.php. And could update plugins with the FTP-Passwort again. But WordPress keeps telling me to insert it back.

    Do you have a solution?
    Do I need to ease any other permission, so that the message doesnt show up again? If yes, which directories are relevant?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, noorman068, & welcome.

    There’s a lot you don’t tell us, & it’s important stuff. I’m going to make an assumption that you’re using some sort of VPS or dedicated server as opposed to shared hosting, but if that’s not correct, please let us know in your reply. You also don’t tell us what webserver software you’re running, which makes it tough to assist you, as well as your hosting operating system, ie, Linux or windows, and the path to your website files.

    Because of the lack of information, my comments are going to be very general. This sort of problem usually occurs when the owner of the WordPress files is incorrect. The WordPress files should be owned by the webserver group (often www-data in Apache & sometimes Nginx, but this varies greatly). Once you get the ownership correct, you won’t need that code in your wp-config.php file. In Linux, this change is made using the chown -r command.

    That was pretty nonspecific, & I apologize for that, but if you provide additional information, we can get more specific if required. Perhaps, however, this will be enough to get you headed in the right direction.

    Thread Starter noorman068

    (@noorman068)

    Hello Abletec,

    thank you for answering. Here are some more information:

    I use a shared-webhosting webspace with Linux. I use FileZilla as FTP-CLient. I created an addition FTP user in order to separate the FTP und PHP user (because by default it is the same user at my webhoster).

    I discovered that this message disappears when I deactivate the Plug-In “Starter Templates”, so I even deleted it and now the message stays away.

    I hope WordPress will work fine, even without this code. As I understand this code is not essential for WordPress to work correct. Please correct me if I am wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Required File Permissions to import the templates are missing’ is closed to new replies.