Results 1 to 8 of 8
-
05-25-2005, 05:40 PM #1Junior Guru
- Join Date
- Oct 2001
- Posts
- 193
Problems with path to PHP after upgrading
I recently upgraded PHP to 4.3.11 on my FreeBSD box and am now having problems with the path to PHP on the server. All regular PHP scripts run without any problems. I updated PHP through the ports collection after updating everything. I had '--prefix=/usr/local' set in the config when compiling and now my scripts are having problems that require the path to the PHP binary on the server. I checked php_info(); and it said include_path .: then when I run which php in SSH it says php: command not found.
Can someone tell me what I did wrong and what I need to do to fix this? Thanks!
-
05-25-2005, 06:57 PM #2Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
try doing
rehashSteven Ciaburri | Industry's Best Server Management - Rack911.com
Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance
-
05-25-2005, 07:14 PM #3Junior Guru
- Join Date
- Oct 2001
- Posts
- 193
Do you mean in the /usr/ports/www/mod_php4 directory? If so, I ran rehash but it doesn't appear to have worked after stopping and starting Apache. This is still showing up in phpinfo():
include_path .:
Any other ideas?
-
05-26-2005, 01:34 AM #4Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 772
HI Jim,
If you have a previous php.ini configuration file, be sure to comment.
out the extension_dir parameter, since the correct path is statically.
compiled into the PHP binary.Bright Info Solutions
-
05-26-2005, 01:38 AM #5Junior Guru
- Join Date
- Oct 2001
- Posts
- 193
Thanks for your help. I checked the php.ini file and it looks as though it was already commented out:
; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./"
-
06-01-2005, 02:30 PM #6Junior Guru
- Join Date
- Oct 2001
- Posts
- 193
Anybody???
-
06-02-2005, 02:20 PM #7Junior Guru Wannabe
- Join Date
- May 2005
- Posts
- 67
Dumb question but do you have /usr/local/bin in your PATH environment variable?
Game control panels - control your game world your way. Server-Genie.com
http://www.server-genie.com
-
06-02-2005, 02:41 PM #8Junior Guru
- Join Date
- Oct 2001
- Posts
- 193
Yep. It's there!