Understanding PHP Memory Limit

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2
Theme version 21.09.5
Package updates All installed packages are up to date

I have been asked to setup an app on a client’s webserver.

The app is (by all info I have a pretty straightforward PHP one → LimeSurvey

The VS has been setup with a large enough chunk of memory (Quota)

The download and install seemed to work as expected yet the precheck fails on several points.


Now why does it say Too Low: 64MB when the Quota is set as 5GiB ?

And it is complaining about these PHP Modules not being installed.

Did you set the php memory (ram) instance size ? For my cli php apps I tend to give it more than 64mb . Try setting this to 128mb or 240mb and of course install the modules the app needs . Btw what modules are missing ?

1 Like

Thanks for the response.
No I did not set specific php memory (just left as is) so no idea where?

I think I may have found this in Webmin -> PHP Configuration -> /etc/php/8.1/fpm/php.ini and set it to 240M, but that didn’t seem to alter anything on the precheck

As for the PHP modules: they are

  • PHP GD library
  • PHP LDAP library
  • PHP imap library

You did restart fpm ? If not restart it. The missing modules are really useful in a php environment but are not installed by virtualmin by default, but there is nothing nasty there

1 Like

you can set per Virtual Server here

For the libraries try
apt-get install php8.1-{gd,ldap,imap}

1 Like

Oops! silly me! :blush: Done now and install passes that memory check.

@stefan1959 Thanks that fixed the rest. ticks all round now

1 Like

I’ve re-titled your post, as the problem is unrelated to quotas. (Just to enable future searches by others with similar problems, not trying to be pedantic.)

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.