Edit php.ini file using DirectAdmin

user5356315 picture user5356315 · Jan 3, 2016 · Viewed 9.8k times · Source

I want to edit my php.ini file to allow file uploads. Running phpinfo() tells me that it is located at /usr/local/lib/php.ini. However, I am paying for hosting and can only make these changes via DirectAdmin.

How can I make the change I need to make to my PHP config using DirectAdmin?

Answer

Chris Campbell picture Chris Campbell · Jan 3, 2016

Alternatively if the php.ini file is located on a shared host and the administrator is not willing to make changes (which often is the case) you can create a ".user.ini" file with the following settings to allow uploading of files. Just adjust the values to your requirements.

max_execution_time = value
max_input_time = value
post_max_size = value
upload_max_filesize = value
memory_limit = value