These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Re: Per Site Configuration on the new forum.
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
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 "PHP configuration variables for scripts"
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 "Run CGI scripts as domain owner?" = Yes
"PHP script execution mode" = FCGId (run as virtual server owner)
"PHP FCGId sub-processes" = 2 (i've set it to 2)
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
[â
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&Itemid=77&a...
I've made it a sticky thread, since this question comes up every few days lately.
--
Check out the forum guidelines!
<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&Itemid=77&a...
I've made it a sticky thread, since this question comes up every few days lately.</div>
Thanks Joe will do.
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
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
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 "PHP configuration variables for scripts"
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 "Run CGI scripts as domain owner?" = Yes
"PHP script execution mode" = FCGId (run as virtual server owner)
"PHP FCGId sub-processes" = 2 (i've set it to 2)
<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<br><br>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.
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 "PHP configuration variables for scripts"
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 "Run CGI scripts as domain owner?" = Yes
"PHP script execution mode" = FCGId (run as virtual server owner)
"PHP FCGId sub-processes" = 2 (i've set it to 2)
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
[â