Jump to content

Location of php executable?


Arty Ziff

Recommended Posts

Look in /usr/bin

 

It's been a while since I used centos

 

you can make yourself a phpinfo file to see the locations

 

place this code into a php file and name it like myinfo.php , then visit http://mysite.com/myinfo.php to see the locations. Use your server name of course.

 

<?php
phpinfo();
?>

If I'm not mistaken you can use the 'locate' command as well. I think 'which' shows you which one the system is currently using, and 'locate' shows you all the locations it can be found at, but includes all instances of the word being located (like directories, files with the word as part of the name, etc).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.