How to find PHP.ini location

One day I was working on a new Drupal site for client. This was on a new server and I had no clue where anything was. I needed to find out what PHP version was running. I could not find this in Plesk for some reason. On Geeklog they had an article with a cool way to track down your PHP version and other information about PHP on a server.

 

You simply drop this single line “<?pOn hp phpinfo(); ?>” in a .php file.

Call it something like getphpinfo.php. Place it on the web-server and pull it up in a browser.

The URL you pull up should be: http://www.MYWEBSITE.com/getphpinfo.php

 

It will give you an output that looks like this:

 

 

 

Geeklog_Link

Print Friendly, PDF & Email

Leave a Comment