hi every one now I deploy laravel project on Ubuntu 16 lemp stake and this message return to me when I try upload video so I change php.ini in /erc/php/7.0/fpm and restart nginx server but not working what is solution
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello,
You can create a php info file in order to check the current values and check which is the php.ini file in use. Create the following file in your public_hmtl folder - phpinfo.php and put the following code inside it:
You can also use the following command in order to find the location of the php.ini file:
php -i | grep php.ini
The output will be:
Then check for the current value of uploadmaxfilesize you can also check which is the configuration file - php.ini that is currently used and apply the changes there (if the site using the global php.ini file and you change the values for these settings this will make the changes globally for all sites). Ideally you would like to have the following values:
upload_max_filesize = 64M
You also need to restart your web server in order the changes to take effect.
Hope that this helps! Regards, Alex
restart: unrecognized service this return to me when restart service
After making your change, when using php-fpm you’ll need to restart the fpm service
service restart php-fpm
before your ini file changes will take effect.