directories not writabel by applications

I am trying to install drupal but I have to set the permission to 777 to get it to install. I should only have to do 755. Also when i try to use the built in upgrader to wordpress it too throws permission errors until i put the affected directory to 777. Is there any way to remedy this w/o having to do the 777 dance because 755 used to be sufficient.

Status: 
Closed (fixed)

Comments

Are you using mod_php or fcgid to execute PHP scripts in the domain you have these scripts installed in?

With fcgid mode, only 755 permissions should be needed..

does gpl support fcgid mode?

Joe's picture
Submitted by Joe on Wed, 11/11/2009 - 22:37 Pro Licensee

There is a stickied thread in the Virtualmin forum about how to enable fcgid in Virtualmin GPL. It is not automatic, but once configured (takes about 5-15 minutes depending on your experience level and how fast you read) it requires no use intervention, assuming you want all virtual servers to use mod_fcgid for PHP.

so bascially i have to hand do a script for every domain.

Joe's picture
Submitted by Joe on Fri, 11/20/2009 - 20:50 Pro Licensee

No. That's not what the thread suggests at all. You would add the scripts to your skel, and edit the Server Template Apache section just like the thread suggests...and it will all be automatic.

is this going to be a future inclusion into gpl or is htis going to reamin pro only?

Which feature in particular are you referring to? Setting up suexec/fcgid?

Joe's picture
Submitted by Joe on Sat, 11/28/2009 - 12:52 Pro Licensee

It probably will be at some point. But, it is part of the Install Scripts code (which doesn't exist at all in GPL), and so isn't easily merged downward without quite a bit of effort.

But, again, as I mentioned, the thread covers how to set this up so that it is completely automatic in Virtualmin GPL. It is 5-10 minutes of reading and configuration, and then it is done...you never have to think about it again. You don't have the options in the UI for switching between fcgid and mod_php and such, but most folks pick one and use only that execution model for all virtual hosts (and fcgid is the best model for most deployments).

i'll just change the permissions on the sites to apache and if i need the usermode execution i'll buy pro..:) Thanks..:)

Automatically closed -- issue fixed for 2 weeks with no activity.