I am running centos5 and webmin. i upgraded virtualmin thru the webmin console to 3.62, when i went back to virtualmin i had to do a recheck config. i now get this error:
The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed
I have googled this and all i find is a post telling me that the answer is to recompile Suexec, is this correct?
and is there a good step by step instruction for this procedure?
Thanks for the help.
Knightdog
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is your email down my account stopped working i was out all day today anyway back to the question you have couple of options you can recompile apache src don't forgot to adjust spec file.
Find the line that reads --with-suexec-docroot=%{contentdir} \
Replace with --with-suexec-docroot=/home \
cd into /usr/src/SPECS
After that run this command rpmbuild -ba apache2.spec
then install the new apache rpms
or you can move your vhosts to var/www/vhosts then reconfigure virtualmin so new domains are created on var partion then you would not have to rebuild apache source.
Regards
Webforwebmin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi simple solution is to move virtual websites under /var directory and reconfigure virtualMin to create websites under /var i would suggest create a directory under /var/www/vhosts and then modify your installation of virtualmin to point to vhosts directory.
Regards
webie4webmin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running centos5 and webmin. i upgraded virtualmin thru the webmin console to 3.62, when i went back to virtualmin i had to do a recheck config. i now get this error:
The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed
I have googled this and all i find is a post telling me that the answer is to recompile Suexec, is this correct?
and is there a good step by step instruction for this procedure?
Thanks for the help.
Knightdog
Hi Knightdog,
Is your email down my account stopped working i was out all day today anyway back to the question you have couple of options you can recompile apache src don't forgot to adjust spec file.
Find the line that reads --with-suexec-docroot=%{contentdir} \
Replace with --with-suexec-docroot=/home \
cd into /usr/src/SPECS
After that run this command rpmbuild -ba apache2.spec
then install the new apache rpms
or you can move your vhosts to var/www/vhosts then reconfigure virtualmin so new domains are created on var partion then you would not have to rebuild apache source.
Regards
Webforwebmin
Webforwebmin,
I ended up moving /var/www/vhosts as you suggested.
thanks for the help.
Webforwebmin
1-thank you for your post!
2-I did not compile apache i installed it with a clean install of centos5
3-I think the best thing is to recompile apache
so with that can you give me a little more help?
I figure i would have to download the source file right?
then untar?
I am sorry to ask such basic questions
thanks for the help.
knightdog
Hi simple solution is to move virtual websites under /var directory and reconfigure virtualMin to create websites under /var i would suggest create a directory under /var/www/vhosts and then modify your installation of virtualmin to point to vhosts directory.
Regards
webie4webmin