When we install a site, we assume that it is going to be run in a shared environment. This means that some important PHP restrictions are added.
First and foremost, we add the open_basedir directive to ensure that PHP will only access the designated folders. These folders are the folders that WordPress is installed in and a TMP folder.
Next we disable a set of sensitive functions to prevent PHP from using them – we provide the list of disabled functions at the end of this document.
We also apply the following restrictions:
In version 3.0.0 and later we apply:
In version 2.9.0 we applied:
These restrictions are located in the /etc/php/7.4/fpm/pool.d/domain.conf file on your server. The items in bold can change – 7.4 can be replaced with the version of php you’re running and domain is replaced with your domain name for the site.
Certain plugins or themes might need some of these restrictions lifted – to do so just edit the pool file for the domain and update them. Just be careful that you don’t inadvertently allow plugins and themes to access other sites if you’re in a shared environment.
The technical support folks at Updraft Plus states the the following restricted functions need to be enabled. Note that we have been able to use this plugin with these functions restricted but if you run into issues yourself you might need to remove these from your restricted list. If you do, you probably should not be running those sites in a shared environment!
In version 3.0.0 and later we disable:
In version 2.9.0 we disabled: