Install scripts don't work correctly

5 posts / 0 new
Last post
#1 Tue, 02/12/2008 - 01:11
DonPeek

Install scripts don't work correctly

The server is a CentOS 5.1 and with a Virtualmin unlimited pro..

When the install scripts finish installing whatever, the directory is left with a chmod 750 , that will not let any of the new installed programs run. At this point I must chmod 755 folders to get it to run. Not to bad on a simple script, but the bigger ones, it is a mess.

Can I get the server set so this is the default for install is 755 ?

Thanks Don Peek

Tue, 02/12/2008 - 09:21
Joe
Joe's picture

Howdy Don,

Sounds like suexec isn't working, as 750 is sufficiently open for a suexec script to run. Check to be sure you're using the fcgid execution type for PHP scripts, and this problem will go away without lowering permissions (it's also just as fast as mod_php, though maybe a little more memory heavy for large numbers of virtual servers).

If you really do want to go 755 for homes, edit it in the System:Users and Groups module configuration.

--

Check out the forum guidelines!

Wed, 02/13/2008 - 04:31 (Reply to #2)
DonPeek

I have the default for new servers setup to 755. The problem it is the install scripts when they finish they leave what ever folder they make, (for word press; /home/user/public_html/wordpress) is then set to 750 ...

I am using mod_php, I am running a lot of top level virtual servers (600+ on this system) so I have to do some things a little differently.

How can I set all the sites to 'a' theme at one time.. I looked in a the (dot)acl files but didn't find a theme= like I was hopping too.. :-)

Thanks
Don

Don Peek

Wed, 02/13/2008 - 12:41 (Reply to #3)
Joe
Joe's picture

<div class='quote'>I have the default for new servers setup to 755. The problem it is the install scripts when they finish they leave what ever folder they make, (for word press; /home/user/public_html/wordpress) is then set to 750 ...</div>

That'd be a bug. File an issue in the tracker, and Jamie will get it fixed in the next revision. If you're set to mod_php execution and without suexec, then Virtualmin ought to install scripts with the correct permissions for that circumstance.

The theme can be set system-wide, and per-user. System-wide, browse to Webmin:Webmin Configuration:Webmin Themes and set your preferred theme. For individual users--e.g. to override each users individual choices, you'd just remove the &quot;theme_username=&quot; and &quot;preroot_username=&quot; lines from miniserv.conf in /etc/webmin. (I don't think there is a way to do this in the UI, though you could disable all themes except the one you want to use, and folks would then probably get the default you've selected...I think).

--

Check out the forum guidelines!

Wed, 02/13/2008 - 16:32 (Reply to #4)
JeremyHorland

Hello!!

Mr. Cameron just helped me solve this question for a similar FreeBSD issue...

our current thread is in bugs, but maybe we should bring it back here...
[url]http://www.virtualmin.com/bugs/index.php?do=details&amp;task_id=3571[/url]

Topic locked