The Suexec command on your system is configured to only run scripts under /var/www, AGAIN!

5 posts / 0 new
Last post
#1 Wed, 08/21/2019 - 10:28
domjag

The Suexec command on your system is configured to only run scripts under /var/www, AGAIN!

I usually get this error when installing the GPL version on the latest CENTOS 7 version (1810 iso). I've seen issues going back to 2008 - not sure why this is happening. Procedure for install: Install Centos on VM from iso using minimal plus mariadb options. Then I follow instructions on virtualmin download page: wget http://software.virtualmin.com/gpl/scripts/install.sh Then I run install script: sh ./install.sh Installation doesn't show errors - go to Virtualmin and after going through the installation online I run the check configuration and boom I get this error. Should I be running a specific option when I install Centos? Minimal install only?

Wed, 08/21/2019 - 10:33
andreychek

Howdy,

A common cause for that error on CentOS is if some third party repositories are being used there.

What is the output of these commands:

dpkg -l httpd
ls /etc/yum.repos.d
Wed, 08/21/2019 - 11:06
domjag

dpkg-query: no packages found matching httpd CentOS-Base.repo CentOS-Media.repo CentOS-Vault.repo CentOS-CR.repo CentOS-SCLo-scl.repo epel.repo CentOS-Debuginfo.repo CentOS-SCLo-scl-rh.repo epel-testing.repo CentOS-fasttrack.repo CentOS-Sources.repo virtualmin.repo

Dom Jag

Wed, 08/21/2019 - 12:46
domjag

Hey Andreychek

So I fixed it by installing and enabling apache (again??) -which is strange because I assumed that apache was already installed. I installed Virtualmin with no options hence it would install the full LAMP stack be default - not at all sure why this error but anyway it is fixed. All good now. Thanks for your help

Dom Jag

Wed, 08/21/2019 - 13:41
andreychek

Ah durnit I gave you the wrong command above, "dpkg" is for Debian/Ubuntu systems, we should have run an "rpm" command instead.

But, I'm glad to hear you got it working!

And yeah I'm not seeing any third party repositories there, it's tough to say why that wasn't working previously.

-Eric

Topic locked