The Suexec command on your system is configur

Virtualmin
knightdog
2008-09-25
2013-05-21
  • knightdog

    knightdog - 2008-09-25

    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

     
    • WebieforWebmin

      WebieforWebmin - 2008-09-25

      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

       
      • knightdog

        knightdog - 2008-09-29

        Webforwebmin,
        I ended up moving /var/www/vhosts as you suggested.
        thanks for the help.

         
    • knightdog

      knightdog - 2008-09-26

      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

       
    • webie4webmin

      webie4webmin - 2008-12-13

      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

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks