wtorek, 29 grudnia 2020

How to setup php.ini for PHP develpement server

Php development server is excellent thing for quick development. But seems not very clear how to setup custom php parameters such as upload_max_filesize. Putting php.ini into main folder does not work for me, and even setting with ini_set failed. Desperatly I desided to read manual. Yes, sometimes it is worth do so ;>. But
/usr/local/Cellar/php/7.4.8/bin/php -S localhost:8081 -d upload_max_filesize=12M
And remember phpinfo() function is your friend. alternatively you can always set global value in the vi /usr/local/etc/php/7.4/php.ini file.

Brak komentarzy:

Publikowanie komentarza