• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Run PHP (virtual host) as FTP User

EduardH

Basic Pleskian
Run PHP (virtual host) as User 1.4.15. PHP, Python and other Apache modules can be run as FTP user w/o additional overhead. Extra RAM and CPU resources are not spent unlike suPHP and FastCGI technologies.

This add-on for Parallels Plesk Panel allows to run PHP scripts as domain FTP user. It only works in conjunction with mod_ruid2 (preferable) or mpm-itk Apache module. Standard PHP module is used to runs scripts. Any domain can be configured to run PHP as FTP user or Apache user.

Actually all modules like mod_python, mod_perl etc. also are run as FTP user on domains where "Run as User" feature is active.

...........Security
......../ ............\
..More - Performance --
for your PHP sites
........\ ........... /
..........Convenience

Security
  • PHP code on different domains is run as different system users. PHP script on a domain can modify only the files on the same domain.
  • Insecure permissions (666, 777) on files and directories are not required.
Performance
  • PHP scripts use less RAM and CPU time resources than with suPHP or FastCGI.
  • Your server can host much more PHP sites w/o being overloaded.
Convenience
  • The sites can be controlled by FTP, because PHP scripts do not create Apache owned directory/files. Any file / directory created by PHP script is available for FTP access.
  • Templates for vhost.conf can be used to affect all domains and/or subdomains.

Usage example:
s11.png

See also
  • Documentation
  • Products
  • Trial version
  • Order now: $19 (+ $29.95 if installation option is added)
    1. Open Order page
    2. Select "Installation: Yes" if you would like us to install "Run PHP as User" software on your server
    3. Click "Update Cart" -> "Checkout"
    4. Enter valid information and complete payment procedure
  • Ask questions, report issues, order more products/services in Helix Development client area
  • On Demand Support Engineer: about $50/hr (improve security, resolve issues, install additional software etc.)

Compatible Plesk versions:
  • Plesk 8 for Linux
  • Plesk 9 for Linux
  • Plesk 10 for Linux
  • Plesk 11 for Linux

Additional features
  • Command line interface provides extended control
  • Templates for vhost.conf with variables to configure all domains, subdomains, sites
  • If domain/subdomain name or FTP user are changed in Plesk panel, Apache configuration in vhost.conf is updated automatically (with event handlers)
 
Last edited:
The new version 1.4.9 of Run PHP as User is released

Plesk migrations: It's recommended to upgrade to 1.4.9 on the source server before Plesk upgrade.

Changes:
1.4.8
[+] Added update_all parameter for set_dom.php
[+] All CLI parameters are tested by testing script
[+] Templates for vhost.conf are also tested
[+] Loadmodule is moved from main Apache config to ruid2.conf

1.4.9
[+] Added CLI parameter: set_dom.php status DOMAIN
[+] conf/asuser.conf files are removed, corresponding Include line is removed from vhost.conf
 
The new version 1.4.10 of Run PHP as User is released

Changes:
1.4.10
[+] Plesk for Debian or Ubuntu: "LoadModule ..." line is not active in ruid2.conf to hide Apache warning.
 
The new version 1.4.15 of Run PHP as User is released

1.4.11
[+] Plesk 11.5 is supported

1.4.12
[+] GUI for Plesk 11.5 is visible

1.4.13
[+] Bugfix: License check in GUI for Plesk 11.5

1.4.14
[+] asuser_psa_sync.sh is compatible with Plesk 11.5

1.4.15
[+] Plesk 11.5: Protected directories permissions are corrected
[+] Plesk 11.5: New cgi-bin location is recognized
 
Last edited:
Back
Top