Individual PHP settings per directory
A few PHP settings can already be customized for a domain in the Plesk customer menu. In rare cases, however, a slightly modified PHP setting is required for a subdirectory. In this case, you can create a .user.ini file in the web directory(DocumentRoot). Note the dot at the beginning of the file, which must be included in the file name. Below is an example of what the content of the file could look like:
; Max. Set maximum memory per PHP process
memory_limit=256M
; Max. Execution time of a PHP process
max_execution_time=240
; Enable PHP > 8.0 JIT compiler
pcre.jit=1
In this way, you can also enable the PHP JIT compiler, which is disabled by default in Plesk.
This page contains automatically translated content.
Updated: 17.07.2024