Thursday, November 17, 2011

DirectAdmin php.ini location

Where is php.ini located on a server that runs DirectAdmin?

It's usually located at this path:


  1. where I can acessed this location?

  2. And if the php.ini is not in the file list, that mean I have no right to accessed it?

  3. you can access that file using the 'Admin Tools -> File Editor' function in DirectAdmin (admin level user needed) or using console commands when connected to the server via SSH (shell access needed).

    if php.ini is not present in that folder then it's a good idea to run phpinfo() function in your script as it will show the location of php.ini in use.