User Tools

Site Tools


permissions_issues_with_php_based_cms_or_commerce_software

PHP User and file ownership conflicts

When PHP scripts run as an “Apache Module”, the user is “Apache”, which conflicts with the ownership of your files which will be owned by the FTP username. By running PHP in CGI mode, all scripts run as the FTP user so there are no file permissions errors.

In Plesk 9, the change may be made in the Web Hosting Settings. Under the Scripting section next to “Run PHP as”, and the drop down allows you to select Apache Module, CGI or FastCGI. Select CGI. (FastCGI uses much more memory)

In Plesk 10

1) For an individual Domain Login to Admin Panel as Admin. Click “Domains” in the left hand nav. Click “Control panel” next to domain in question which opens a new page. Click the “Websites & Domains” tab Click the Domain name at the bottom of the page. under the ” Web Scripting and Statistics” section next to ” PHP support (run as)” the drop down allows you to select Apache Module, CGI or FastCGI. Select CGI. (FastCGI uses much more memory)

2) To make the change for all domains on a plan, or to amend a service Plan. Login to Admin Panel as Admin. Under Hosting Services, click on Service Plans Select the Service Plan that you are using. Click on the Hosting Parameters tab Under the Scripting section next to “Run PHP as”, and the drop down allows you to select Apache Module, CGI or FastCGI. Select CGI. (FastCGI uses much more memory)

permissions_issues_with_php_based_cms_or_commerce_software.txt · Last modified: 2015/01/05 10:47 (external edit)