Admin
Moderating
Donor Member
Master Member
Elite Member
Active Member
- May 31, 2020
- 2,980
- 1,693
When installing themes from the PrestaShop admin backend, upload failures or timeouts are almost always caused by restrictive PHP server configuration. You can adjust the parameters below in php.ini.
Key PHP parameters to modify:
Ways to apply these settings:
Important notes:These values are temporary for theme installation. After finishing the theme setup, you can lower the PHP values back for normal site security.Always backup files and database before theme installation, and test first on staging.
Key PHP parameters to modify:
- upload_max_filesizeThis sets the maximum size for a single uploaded file. It needs to be larger than your theme ZIP file.
- post_max_sizeDefines the total size of POST data. This value must be bigger than upload_max_filesize.
- max_execution_timeControls how long a PHP script can run. Increase it to prevent timeout during theme archive extraction.
- memory_limitRaise this value to avoid out-of-memory crashes when unpacking large theme packages.
Ways to apply these settings:
- Edit the main php.ini file if you have full server root access.
- Use .user.ini placed inside your web root folder for shared hosting.
- Some hosts allow changing these values directly inside cPanel hosting PHP selector.After changing php settings, restart PHP-FPM or Apache service, then verify new values take effect via phpinfo().
Important notes:These values are temporary for theme installation. After finishing the theme setup, you can lower the PHP values back for normal site security.Always backup files and database before theme installation, and test first on staging.