Re: Per Site Configuration

11 posts / 0 new
Last post
#1 Mon, 10/06/2008 - 05:11
HostHoboGuy

Re: Per Site Configuration

Hello Guys and Gals,

   I don't know if I have asked this question before but I need to ask it now, Is there a way to configure the server on a per site basis, in other words I need to configure some sites with register globals on and some with register globals off. Is there a way to do this?

If so how and where would I configure it?

Thanks, [img size=600]http://www.virtualmin.com/components/com_fireboard/uploaded/images/Drupa...

Thanks,

Post edited by: HostHoboGuy, at: 2008/10/08 13:25<br><br>Post edited by: HostHoboGuy, at: 2008/10/08 13:40

Sun, 06/07/2009 - 07:30
ronald
ronald's picture

for every new domain you would set that in the server template you are using under the 'Apache Website'
Also there you can set the &quot;PHP configuration variables for scripts&quot;
something like: open_basedir {HOME}:${HOME}/tmp:/usr/lib/php:/usr/share/pear (use your paths of course) and other things you want to set automatically in the domains php.ini upon creation

for existing domains, select a domain, go to 'server configuration' go to 'website options' and in the right pane select &quot;Run CGI scripts as domain owner?&quot; = Yes
&quot;PHP script execution mode&quot; = FCGId (run as virtual server owner)
&quot;PHP FCGId sub-processes&quot; = 2 (i've set it to 2)

Sun, 06/07/2009 - 07:30
HostHoboGuy

This is what I am seeing under Virtualmin and the Domain I need to change:

virtualmin Virtualmin webmin Webmin
Login: root (Master admin)
Create Virtual Server
Edit Virtual Server
Edit Mail and FTP Users
Edit Mail Aliases
Edit Databases
[&acirc;

Wed, 10/08/2008 - 14:21
Joe
Joe's picture

These options aren't available on Virtualmin GPL.

I discussed this exact question yesterday here in the forums, though, and provided simple steps to replicate the functionality in GPL. It requires a few manual steps, but nothing scary.

http://www.virtualmin.com/index.php?option=com_fireboard&amp;Itemid=77&a...

I've made it a sticky thread, since this question comes up every few days lately.

--

Check out the forum guidelines!

Wed, 10/08/2008 - 23:41 (Reply to #4)
HostHoboGuy

<b>Joe wrote:</b>
<div class='quote'>These options aren't available on Virtualmin GPL.

I discussed this exact question yesterday here in the forums, though, and provided simple steps to replicate the functionality in GPL. It requires a few manual steps, but nothing scary.

http://www.virtualmin.com/index.php?option=com_fireboard&amp;Itemid=77&a...

I've made it a sticky thread, since this question comes up every few days lately.</div>

Thanks Joe will do.

Mon, 10/06/2008 - 13:00
ronald
ronald's picture

run your server in mod_fcgid instead of mod_php
then every domain has its own php.ini file in which you can change the register globals and such

also it is more secure as the owner can only execute scripts in his own environment

Mon, 10/06/2008 - 13:05
HostHoboGuy

Thanks Ronald,

I figured there was a way to do that. How would or better yet where would I go to do that in Virtualmin/Webmin?

Thanks for your time,
Michael

Sun, 06/07/2009 - 07:30
ronald
ronald's picture

for every new domain you would set that in the server template you are using under the 'Apache Website'
Also there you can set the &quot;PHP configuration variables for scripts&quot;
something like: open_basedir {HOME}:${HOME}/tmp:/usr/lib/php:/usr/share/pear (use your paths of course) and other things you want to set automatically in the domains php.ini upon creation

for existing domains, select a domain, go to 'server configuration' go to 'website options' and in the right pane select &quot;Run CGI scripts as domain owner?&quot; = Yes
&quot;PHP script execution mode&quot; = FCGId (run as virtual server owner)
&quot;PHP FCGId sub-processes&quot; = 2 (i've set it to 2)

Wed, 10/08/2008 - 13:12
HostHoboGuy

<b>HostHoboGuy wrote:</b>
<div class='quote'>Hello Guys and Gals,

I don't know if I have asked this question before but I need to ask it now, Is there a way to configure the server on a per site basis, in other words I need to configure some sites with register globals on and some with register globals off. Is there a way to do this?

If so how and where would I configure it?

Thanks, [img size=600]http://www.virtualmin.com/components/com_fireboard/uploaded/images/Drupa...

Post edited by: HostHoboGuy, at: 2008/10/06 05:15

Post edited by: HostHoboGuy, at: 2008/10/06 05:16&lt;br&gt;&lt;br&gt;Post edited by: HostHoboGuy, at: 2008/10/06 05:19</div>

Thanks Ronald that is a huge help will do the next time I create one right now I will go fix all of them to be per site, thanks again.

Sun, 06/07/2009 - 07:30
ronald
ronald's picture

for every new domain you would set that in the server template you are using under the 'Apache Website'
Also there you can set the &quot;PHP configuration variables for scripts&quot;
something like: open_basedir {HOME}:${HOME}/tmp:/usr/lib/php:/usr/share/pear (use your paths of course) and other things you want to set automatically in the domains php.ini upon creation

for existing domains, select a domain, go to 'server configuration' go to 'website options' and in the right pane select &quot;Run CGI scripts as domain owner?&quot; = Yes
&quot;PHP script execution mode&quot; = FCGId (run as virtual server owner)
&quot;PHP FCGId sub-processes&quot; = 2 (i've set it to 2)

Sun, 06/07/2009 - 07:30
HostHoboGuy

This is what I am seeing under Virtualmin and the Domain I need to change:

virtualmin Virtualmin webmin Webmin
Login: root (Master admin)
Create Virtual Server
Edit Virtual Server
Edit Mail and FTP Users
Edit Mail Aliases
Edit Databases
[&acirc;

Topic locked