Ubuntu 16.04 and php_admin_value engine Off php 7

8 posts / 0 new
Last post
#1 Wed, 04/27/2016 - 03:36
miojamo

Ubuntu 16.04 and php_admin_value engine Off php 7

Hi,

Just installed new Ubuntu 16.04 server and Virtualmin. Migrated vhost from previous server.

When launching the sites instead of the website a download form shows. I'm running FCGI and to get it working need to comment php_admin_value engine Off under all vhosts.

Is it secure? Is the vhost run for the owner only? How to fix it

Thanks

Wed, 04/27/2016 - 06:50
miojamo

I have edited:

sudo pico /etc/apache2/mods-available/php7.0.conf

and commented out: SetHandler application/x-httpd-php

and it worked

I'm not sure it is the right way

Ubuntu 18.04 LTS

Wed, 04/27/2016 - 08:57
andreychek

Howdy,

That's actually something the installer does now... we overlooked that earlier.

The next version of Virtualmin should detect if that isn't commented out and notify the admin in that case.

So yes that's an excellent find and a good solution :-)

-Eric

Sun, 07/30/2017 - 12:42 (Reply to #3)
colech

Hello Eric or anyone else who can answer this. It wasn't super clear to me what to do here. I'm experiencing the same issue. Has this not been incorporated into the new Virtualmin automatic stuff yet because it seems I shouldn't be getting this error with ???

  • Do I delete the line php_admin_value engine Off
  • Do I delete the line AddType application/x-httpd-php .php

MY SYSTEM: I am migrating away from old CentOS 6 and CentOS 7 Virtualmin servers to an Ubuntu 16 Virtualmin server.

Tue, 08/22/2017 - 20:33 (Reply to #4)
Joe
Joe's picture

Your problem is almost certainly different than the one that initially started this thread; I'd recommend starting a new topic where you explain what problem you're trying to solve.

It's not clear to me what problem you're having or why you're wanting to remove random lines from config files. ;-)

--

Check out the forum guidelines!

Tue, 08/22/2017 - 18:57
robbrandt

I am having this problem too. I am on Ubuntu 16.04 but am using php5.6 rather than 7 at this time.

I am finding that every single virtualhost I create has

php_admin_value engine Off

in it. How do I change the default so that it doesn't do this? I have scoured the virtual host templates looking for it and can't find it.

Please help.

Tue, 08/22/2017 - 20:36 (Reply to #6)
Joe
Joe's picture

Virtualmin won't add those lines if mod_php is disabled in your Apache configuration. It has to add them if mod_php is enabled. So, make sure Apache isn't loading mod_php, and make sure Virtualmin knows that (you should see the mod_php execution option disappear from the Server Configuration->Website Options->PHP script execution mode).

--

Check out the forum guidelines!

Wed, 08/23/2017 - 18:48 (Reply to #7)
robbrandt

Indeed that is the case, I found that by searching the forum last night after I posted the comment. I now have mod_php disabled, but without it I get a 500 Internal Server error. I've posted a new topic here:

https://www.virtualmin.com/node/53251

Topic locked