Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




22 posts

Geek
+1 received by user: 1


Topic # 128726 21-Aug-2013 14:39 Send private message

Does anyone have a robust solution for the problem that on Plesk (and both the control panels I've used prior to Plesk), PHP runs as a user (generally apache) which is not part of a site's group. This generally leads to the requirement that any directory where the CMS needs to write files have permissions of 777 - not good for security.

So far I've found a $proprietary plesk add-on called run PHP as user. Seems like a good option but I only have a production server, so trying to install it would be high-risk.

Would making apache a member of the groups psacln or psaserv work? psaserv is the group for all sites above their httpdocs directory, psacln for all files and directories below httpdocs.

Create new topic
2958 posts

Uber Geek
+1 received by user: 167

Trusted
Subscriber

  Reply # 882207 21-Aug-2013 14:59 Send private message

I'm sure you can have them in the same group of if not have one as owner and then set the group e.g. 775?





10 posts

Wannabe Geek


  Reply # 885562 27-Aug-2013 21:14 Send private message

It's because your domain/site is set to run PHP as Apache module (using Apache user).
Go to Web Hosting Settings or Settings (depending on the version of your Plesk) and use FastCGI. With that, PHP will be executed by your account. Similar to cPanel's way using suPHP. 

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »
Dunedin as an innovation hub
Posted 22-Aug-2014 09:06


When venture capital hurts start-ups
Posted 21-Aug-2014 19:54


Long wait for ARM servers
Posted 21-Aug-2014 19:35


Firefox now or no choice later
Posted 21-Aug-2014 08:41


New Zealand’s Fastest ISPs 2014
Posted 20-Aug-2014 16:27


NZ Games Industry launches Business Startup Competition
Posted 20-Aug-2014 12:25



Trending now »
Hot discussions in our forums right now:

Vodafone TV multicast settings on pfSense?
Created by kenkeniff, last reply by TimA on 21-Aug-2014 19:35 (90 replies)
Pages... 4 5 6


CGA. Is it fair?
Created by BTR, last reply by Geektastic on 22-Aug-2014 09:58 (83 replies)
Pages... 4 5 6


UFB provider comparison
Created by Rappelle, last reply by dcole13 on 21-Aug-2014 20:43 (23 replies)
Pages... 2


Lightbox press event release
Created by freitasm, last reply by foamfollower on 22-Aug-2014 09:44 (464 replies)
Pages... 29 30 31


It was hardly 'hacking' was it?
Created by CB_24, last reply by gzt on 21-Aug-2014 22:26 (97 replies)
Pages... 5 6 7


How to refresh WinXP
Created by Rickles, last reply by allan on 20-Aug-2014 14:25 (19 replies)
Pages... 2


Free: Smart Button for your Android device
Created by freitasm, last reply by networkn on 22-Aug-2014 09:46 (93 replies)
Pages... 5 6 7


Vodafone now charging you to receive a bill via post
Created by stocksp, last reply by r2b2 on 22-Aug-2014 09:50 (81 replies)
Pages... 4 5 6



Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.