Directory created by php script is not listed in FTP client manager.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:20:52 UTC

Modified:

2016-12-21 20:30:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Directory created by php script is not listed in FTP client manager.

Symptoms

Directories created by PHP script are not listed in FTP Client Manager.

Cause

Selinux may be causing the issue to list the directories created by PHP script.

    # sestatus
SELinux status: enabled

Or this command will show status of selinux policy:

    [root@host1 ~]# getenforce
Enforcing

Review the audit.log:

    # grep denied /var/log/audit/audit.log

Resolution

Temporary solution - disable SELinux (just to make sure that it will fix the issue):

    # sudo setenforce 0

Also you can generate the new rules to allow the access. Use following workaround:

  1. Install policycoreutils-python package by following command:

    yum install policycoreutils-python

    The policycoreutils-python package contains the management tools use to manage an SELinux environment.

  2. Generate loadable package of rules from logs of denied operations(example):

    grep denied /var/log/audit/audit.log | audit2allow -M plesk_rcactions
  3. Apply the changes to your SElinux policy (example):

    semanage -i plesk_rcactions.pp
Have more questions? Submit a request
Please sign in to leave a comment.