• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

FTP Folders created by Wordpress/PHP remain hidden

Kioni1974

New Pleskian
I have a relatively small but weird problem. I've copied a Wordpress install to my 11.5.30 server. The site works fine. FTP access seems to work fine except for some folders.

For example, newer subfolders in the plugin directory just won't show in FTP. The same goes for folders in the upload folder. My guess is these are folders created by PHP.

Now, the group and modes for these folders are no different from any other (username : psacln). For example the contents of the uploads folder:

drwxr-xr-x. 9 username psacln 4096 Apr 15 14:24 2013
drwxr-xr-x. 6 username psacln 4096 Apr 15 14:26 2014
drwxr-xr-x. 2 username psacln 4096 Apr 16 18:37 test


The folders 2013 and 2014 do not show and the folder test (created manually in ssh) does show in FTP. Other example, the plugins folder:

drwxr-xr-x. 3 username psacln 4096 Apr 15 14:08 akismet
drwxr-xr-x. 7 username psacln 4096 Apr 15 16:02 contact-form-7
drwxr-xr-x. 6 username psacln 4096 Apr 15 14:21 crew-list
drwxr-xr-x. 2 username psacln 4096 Apr 15 16:03 link-manager
drwxr-xr-x. 4 username psacln 4096 Apr 16 17:57 mailchimp-for-wp
drwxr-xr-x. 3 username psacln 4096 Apr 15 14:22 wordpress-importer


Only askimet and crew-list show up in FTP.

I tried: restarting xinetd, httpd and psa. I did not yet restart the server because some client software is running there too. Furthermore, I would accept restarting the server for this problem instance but I can't keep rebooting every time Wordpress (or PHP) decides to create a folder.

Suggestions welcome.
 
I have the same problem, although the user/group names are different.

My server is CentOS 6.5 (fully patched to the best of my knowledge) and Plesk is 11.5.30 Update #42, last updated at April 17, 2014 03:49 AM.

In my case however it is not all folders only a select few. They were all created at the same time when the server was migrated from an old installation.

I've tried adding the FTP user to the same group as is listed as the owning group but that made no difference.
 
Update

If you guys can gain access to the filesystem of your server via SSH then you may be able to fix the problem yourselves.

One of the folders that wasn't appearing in my FTP client was akismet. I've just logged in via SSH, SU'd to root and then changed to the plugins directory and run this command:-

restorecon -Rv akismet

This is the SELinux security context restoration tool. After running it, the directory appeared in my FTP client list.

I really don't understand SELinux so I have no clue as to how the contexts could have been broken in the first place, but clearly there is something going on with them.
 
Hi Athena, I can confirm the problem!
It's SElinux for sure.

With the command above I can see my files again in ftp...

I disabled for now SELinux, and all worked as expected.
I don't know if it's a good solution disable SELinux, can someone tell us if we going in right direction or maybe we can figure out how working with SELinux enabled?

Thanks for now!!!
 
Back
Top