• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

apache cannot write necessary files/directories

Z

zardozrocks

Guest
I'm currently migrating a site from an old server running WHM to one using Plesk:

Plesk Panel 9.5.4
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Dual core Intel(R) Xeon(R) CPU

The site is a modified version of Joomla and therefore apache needs permission to write certain files and folders. However, on this plesk system, I see that the public_html directory for newuser is owned by newuser:psaserv with permissions rwxr-x--- which is not writeable by apache. If I change the permission on files that must be written by apache to newuser:apache with permissions rw-rw---- will this break anything? I worry that changing the group to anything other than psaserv might break some kind of plesk functionality.

Any help would be much appreciated. On the older server, Apache was configured to chroot/su as the user who owns a particular site so writing the files just worked. On other servers I've deal with, I usually just assign the group of certain files to apache/nobody/www-data depending on the distro and this allows apache to write them.
 
Break something? Probably not. What you would do is make your application less secure by allowing certain directories to be world writable. What you can do is use somethign like suphp or run the php in Plesk as CGI/FCGI instead which then makes apache run the site as the FTP user account instead of the apache user.

The only down side to that is htaccess files dont seem to pick up php settings that way, so if you rely on that to set php values, you may have to just use the permission fix.
 
You can use suphp check my signature link HOW TO and there it is explained. Hope this help. On 9.5 FastCGI is not stable, so I suggest mod_suphp.
 
9.5 FastCGI is fine. We have dozens of servers using it and hundreds of clients using it with out problems. SuPHP on the otherhand is something I personally wouldnt recomend as it takes manual configuration to get it to work on individual domains, otherwise you either have to buy something or manually code some event handlers.
 
Back
Top