Write a page to output the phpinfo
Make a file named phpinfo.php and place it in the document root. The contents of the file is below.
<?php phpinfo(); >
Display phpinfo
Visit
http://192.168.10.108/phpinfo.php
IP address should be modified to yours.
Find out the item “Loaded Configuration File”. In this section, you can find the path of php.ini that is loaded on the system.
Edit php.ini
$ sudo vi /etc/php/7.4/fpm/php.ini
memory_limit = 1024M
upload_max_filesize = 128M
post_max_size = 1024M
max_execution_time = 3600
Restart php-fpm
$ sudo systemctl restart php7.4-fpm
Last Updated on July 15, 2021 by lama-admin
Leave a Reply