moshe.gorin Posted May 30, 2010 Share Posted May 30, 2010 When I type "which php" it gives: /usr/local/bin/php I can navigate to "/usr/local/bin/" and then when I type "ls" it gives "php*" I can't run "cd php" (FYI I'm trying to reconfigure PHP) I know this is silly, but please advise. Quote Link to comment Share on other sites More sharing options...
moshe.gorin Posted May 31, 2010 Author Share Posted May 31, 2010 I know that the "php*" file is a bin file, but how do I navigate to the root php directory to run "./configure" ? Thank you again. Quote Link to comment Share on other sites More sharing options...
trq Posted May 31, 2010 Share Posted May 31, 2010 As you have just said /usr/local/bin/php points to the binary. You need to find the source tree. Maybe you put it within /usr/src ? Quote Link to comment Share on other sites More sharing options...
moshe.gorin Posted June 1, 2010 Author Share Posted June 1, 2010 Thank you so much for your reply. I didn't install PHP myself; I'm running cPanel/WHM 11 on a Linux server. When I go to "/usr/local/lib" I see a directory for "php" and I see the php.ini file. However I can't run "./configure" in this directory either. when I navigate to the "php/" directory, I also can't run "./configure" Where do you think my PHP root directory is? Or let me know if there's an easier way to enable GD on a linux server. thank you Quote Link to comment Share on other sites More sharing options...
trq Posted June 2, 2010 Share Posted June 2, 2010 Where do you think my PHP root directory is? Its the source directory your looking for and it could literally be anywhere. Or let me know if there's an easier way to enable GD on a linux server. Your best off using your distributions package manager. What distro are you using and do you have shell access? There may even be a way of enabling this through cPanel, Ive not used it however. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.