Nomvula Sithole

PHP itself: settings, errors, types, dates and the parts of the manual people skip.
Where is php.ini? Finding the file PHP actually loads
Run php --ini for the command line, and call php_ini_loaded_file() through the browser for the website. They are often two different files, and both count.
PHP error reporting and the PHP error log: where the errors go
PHP decides three things about an error: whether to report it, whether to show it, and where to log it. Print those settings first, then read the file.
The uploaded file exceeds the upload_max_filesize directive in php.ini: fix
Set upload_max_filesize, a larger post_max_size and the web server's body limit, then restart PHP-FPM. The full chain, with a script that shows what applies.
PHPSolvedThe fix first, then the reason