# mod\_php revisited

**URL:** <https://forum.virtualmin.com/t/mod-php-revisited/56737>\
**Category:** News\
**Created:** [September 5, 2017, 6:08am UTC](https://forum.virtualmin.com/t/mod-php-revisited/56737 "2017-09-05T06:08:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 5, 2017, 6:08am UTC](https://forum.virtualmin.com/t/mod-php-revisited/56737/1 "2017-09-05T06:08:51Z")

</div>

Howdy all,

So, removing mod\_php from the default install won the twitter vote and lost the [Virtualmin.com](http://Virtualmin.com) vote; more people voted to remove it than voted to keep it. But, the folks who want to keep it enabled by default were really quite vocal about it. So, I hate to say it, but I think we have to keep enabling mod\_php in a default full install for a while longer.

That said, I realized we have a good way to compromise. In Virtualmin 6, we have the `--minimal` installation target. This one shrinks the default installation, both in terms of disk space (by a little) and memory usage (by a lot) by skipping installation of the ClamAV daemon and the SpamAssassin daemon (clients are still installed, so users with Cloudmin Connect can scan mail remotely). I believe that would be an ideal place to disable mod\_php by default!

One of the reasons I want to kill mod\_php is that it blows up the size of Apache in memory by a huge amount (it nearly doubles the size of every process). And, the `--minimal` installation mode is intended for memory-restricted environments. It’s a match made in heaven, I think.

So, the next version of the yum groups and metapackages will exclude mod\_php from the default installation, making it work on somewhat smaller systems, and providing us a good test pool for the eventual (I hope) removal of mod\_php from all default installations in the future.

I’m posting here to once again get some feedback. Is there any reason even the `--minimal` installation should have mod\_php enabled by default, given that it requires more memory, is slower, and is less secure than either of the other preferred execution modes (fcgid or php-fpm)?

Cheers,

Joe

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:25am UTC](https://forum.virtualmin.com/t/mod-php-revisited/56737/2 "2020-04-30T05:25:20Z")

</div>

Closed on April 30, 2020, 5:25am UTC


