53GB

PHP Configuration – Locating and Editing php.ini (Apache, Nginx, PHP FPM)



PHP Configuration – Locating and Editing php.ini (Apache, Nginx, PHP FPM)

NOTES THAT ACCOMPANY THIS VIDEO:
https://codewithsusan.com/notes/php-configs-with-php-ini

=== DESCRIPTION ===
PHP’s initialization file, called php.ini, is responsible for configuring many of the aspects of PHP’s behavior.

In this video I’ll show you how to identify which php.ini file your system is using so you can make setting changes. This is done via an invocation of the phpinfo function.

Then, we’ll learn how to get your system to recognize any changes to your php.ini file by either restarting your server or reloading your PHP Handler.

Server types covered include:
+ A local server running Apache via XAMPP
+ A live server running Apache
+ A live server running Nginx with the FPM / FastCGI PHP handler

The specific settings we’ll update in the php.ini file include upload_max_filesize and post_max_size. Both of these settings are often updated when you build a site that allows file uploads.

=== CHAPTERS ===
00:00 Introduction
00:15 Locate php.ini file with phpinfo()
01:45 Opening php.ini and working within it
03:00 Examples: upload_max_filesize and post_max_size
04:00 Making changes take effect on Apache server
05:05 Example with Nginx server with PHP FPM FastCGI handler
09:00 Recap

Exit mobile version