The php.ini file is responsible for all the PHP settings in Apache server. So you can modify the PHP settings by modifying the php.ini file
When you want to change PHH configuration in Ubuntu 16.04, please follow the below steps
1) Open terminal in your Ubuntu 16.04
sudo nano /etc/php/7.1/apache2/php.ini
2) Change your PHP configuration whichever you want to change. For example change the upload_max_filesize to 64M, higher values are better.
upload_max_filesize = 64M
3) Now save the text editor and restart the apache to get the changes takes palce.
sudo service apache2 restart
Did this post help you?
Tutsplanet brings in-depth and easy tutorials to understand even for beginners. This takes a considerable amount of work. If this post helps you, please consider supporting us as a token of appreciation:
- Just want to thank us? Buy us a Coffee
- May be another day? Shop on Amazon using our links.
Your prices won't change but we get a small commission.
Leave a Reply