Report this

What is the reason for this report?

How To Find php.ini? (Ubuntu LAMP on 18.04)

Posted on May 21, 2020

I’m trying to upload a large database to phpMyAdmin, and so need to adjust the values of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. However I’m having trouble locating php.ini on my site…

I’ve trued mydomain/etc/php/7.2/cli/php.ini and mydomain/etc/php/7.1/apache2/php.ini both result in 404s. Where should php.ini be for an Ubuntu LAMP droplet on 18.04?

I’ll admit that this is a noob question, and I’m much more comfortable with FTP client GUIs. Any tips on modifying upload_max_filesize, memory_limit and post_max_size would also be appreciated. Right now just finding php.ini is the main obstacle.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.