PHP limits in ISPmanager: max_execution_time, upload_max_filesize, post_max_size
These three PHP settings most often get in the way of database imports, large uploads and long CMS operations. They are set per site, in the .htaccess file in the site folder.
| Setting | What it limits | Example |
|---|---|---|
max_execution_time | how many seconds one script may run | 300 |
upload_max_filesize | the maximum size of one uploaded file | 256M |
post_max_size | the maximum size of all form data; must be at least upload_max_filesize | 256M |
How to change
- Open "File manager" →
www→ the site folder. - If there is no
.htaccess, create it. - Click the three dots on
.htaccessand open the file.


- Add the lines you need:
php_value max_execution_time 300
php_value upload_max_filesize 256M
php_value post_max_size 256M- Save the file.

The new values work at once, no restart needed.
This works in LSAPI and Apache module modes. For FastCGI (Nginx + PHP-FPM) put the same settings in .user.ini in the site folder, as upload_max_filesize = 256M. It applies within 5 minutes.
Common mistakes
- Only
upload_max_filesizewas raised and a large file still fails: raisepost_max_sizetoo. - The
.htaccesslines have no effect: the site runs in FastCGI mode, use.user.ini. - Error 500 after editing: a typo in
.htaccess; remove the added lines and check the spelling.
Site PHP mode: PHP version and mode.