Learn how to handle PHP issues during the installation process.
Most of the time installation problems are due to limited resources, for example on shared hosting servers. Here's an overview of the PHP configuration settings you should check and increase, if needed.
Setting | Description |
---|---|
post_max_size |
Amount of data in a single form submission using the POST method. |
upload_max_filesize |
Size of an individual file uploaded. |
max_execution_time |
Time in seconds a script is allowed to run before it is terminated by the parser. |
memory_limit |
Amount of memory in bytes that a script is allowed to allocate. |
You may need to allocate more resources for PHP by modifying the php.ini
file directly. If this is not possible, you can try setting the PHP settings through a .htaccess
file on your webserver. Though this also depends on your hosting server, if it allows the usage of .htaccess
overrides.
To change the PHP configuration through the php.ini
file, use the following syntax.
# example of recommended settings
post_max_size = 8M
upload_max_filesize = 8M
max_execution_time = 60
memory_limit = 128M
To change the PHP configuration through a .htaccess
file, use the following syntax.
# example of recommended settings
php_value post_max_size 8M
php_value upload_max_filesize 8M
php_value max_execution_time 60
php_value memory_limit 128M