Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php location ?

Status
Not open for further replies.

roeiboot

Technical User
Joined
Feb 10, 2002
Messages
241
Location
US
oi~

how and where can i change the path of php (i'm using version 4.1.2 on Linux RedHat 7.1), here's my test.php: , i have a 'php 4.2.3' directory on /var/www/ but i need to clear some space on that 'drive'.

thanks in advance.
 
I doubt that PHP is actually installed in /var/www.

On my LAMP (RH9/1.3.27/4.0.14/4.3.4) box, PHP in installed in two places: the Apache module is located in /usr/lib/apache/ and the PHP standalone interpreter is in /usr/local/bin/

But your installation can be different. To find the Apache PHP module, from httpd.conf take the ServerRoot value and combint it with any path specified in the LoadModule statement appropriate to PHP.

To find the PHP standalone interpreter, try whereis or find.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
thanks.. i'm just going to move that directory and see/test if everything is still working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top