Results 1 to 8 of 8
  1. #1
    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!

  2. #2
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    try doing

    rehash
    and then trying to use php again.
    Steven 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

  3. #3
    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?

  4. #4
    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

  5. #5
    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 = "./"

  6. #6
    Join Date
    Oct 2001
    Posts
    193
    Anybody???

  7. #7
    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

  8. #8
    Join Date
    Oct 2001
    Posts
    193
    Yep. It's there!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •