Answer the question
In order to leave comments, you need to log in
How to properly configure the php.ini file?
I ran into a problem that some Wordpress themes and plugins do not want to be installed. It is recommended to change the "limits" in the php.ini file.
upload_max_filesize=2M >>> change to >>> upload_max_filesize=250M
post_max_size=8M >>> change to >>> post_max_size=250M
max_input_vars = 1000 >>> change to >>> max_input_vars = 5000
This is how they do it mostly on the local server like XAMPP, but my hosting does not have a php.ini file in the root folder. Therefore, it is recommended to edit the .htaccess file, where these lines must be added at the end of the file:
php_value max_input_time 60
php_value max_input_vars 5000
php_value upload_max_filesize 20M
php_value post_max_size 20M
I reboot the hosting and wait for the changes to take effect within an hour.
See if I am changing the records correctly and if such changes will lead to a site breakdown?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question