Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

PHP Permissions

Nov 27, 2013 by Giantweb
Hi there,
I have a CentOS server hosting a number of websites. I setup the Apache with virtual host configuration and userdir but I am having some problems with the permissions. Some of my php applications and one of my websites are not working right because of permission issues. They don’t have the required permission to write into files and directories. It only works right if I set apache as the files owner. How should I setup apache for a multiuser server.
Your help is highly apprecited

3 Answers

0 votes
Nov 27, 2013 by tareq101
Try suPHP to setup  your Apache on your server. suPHP allows  PHP to write as the user and gives the required user permissions.
0 votes
Nov 27, 2013 by ZakWeb
You can also use php-fpm  or fastcgi. The permissions should not be owned by apache, it should be owned by your hosting account user. Gove your folders the 755 permissions and your files  644 permission or 755 permission  if they have to execute for.
0 votes
Nov 27, 2013 by citrix345
FCGI is another option you can use. This has the advantage of being used with php accelerator . this will  make your website load faster.