chown -r pentago:pentago /home/pentago/public_html doesn't fix the ownership issue?
-
☆ A M B ☆
- 24,524 Posts
That's the problem with a standard LAMP stack. The PHP interpreter is run as the Apache user, so your FTP user can't deal with the files that MODx creates. If you have your own server or VPS, and don't want to set up an suexec environment, you can have your Apache user belong to your FTP user's group and vice versa, then use 775 and 664 permissions for everything. Or you can get really kinky and have Apache and your FTP user be the same.
@sottwell Can't you also configure Apache to run PHP scripts as the user? I've heard of it but not tried.
-
☆ A M B ☆
- 24,524 Posts
Yes, you can configure it to use CGI or FastCGI instead of a built-in php module. I've done it; it's much easier with the latest versions of PHP with FPM. The Apache mod_suexec module does not apply to PHP, by the way.
http://php.net/manual/en/install.fpm.php
http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2