Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Removing default PHP and building latest from source
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sneakyimp" data-source="post: 1187586" data-attributes="member: 166822"><p>I have managed to download and build PHP 5.3.3 from source on my 10.5.8 system, but there are still vestiages of the old version of PHP on this system -- mostly command-line stuff.</p><p></p><p>For example, on the command line, instead of just typing "php file.php", it launches an older version of php. To get my latest running, I must type the full path to my new php: "/usr/local/bin/php file.php"</p><p></p><p>I see that my path is this:</p><p>[code]</p><p>My_Mac:mbam_v4 sneakyimp$ echo $PATH</p><p>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin:.</p><p>[/code]</p><p></p><p>And that there's a version of php living in /usr/bin:</p><p>[code]</p><p>My_Mac:mbam_v4 sneakyimp$ ls -l /usr/bin/php</p><p>-r-xr-xr-x 1 root wheel 14869808 Oct 6 16:57 /usr/bin/php</p><p>[/code]</p><p>Note that the item there is a full-blown file and not a symbolic link. I'd like to delete it but I'm a bit afraid to break things -- and I'm also wondering if there might be other pieces to this old PHP somewhere.</p><p></p><p>I'm wondering anyone can give me a comprehensive set of steps to get rid of all OLD versions of php and get my new one hooked in at all the right places. Any help would be much appreciated.</p></blockquote><p></p>
[QUOTE="sneakyimp, post: 1187586, member: 166822"] I have managed to download and build PHP 5.3.3 from source on my 10.5.8 system, but there are still vestiages of the old version of PHP on this system -- mostly command-line stuff. For example, on the command line, instead of just typing "php file.php", it launches an older version of php. To get my latest running, I must type the full path to my new php: "/usr/local/bin/php file.php" I see that my path is this: [code] My_Mac:mbam_v4 sneakyimp$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin:. [/code] And that there's a version of php living in /usr/bin: [code] My_Mac:mbam_v4 sneakyimp$ ls -l /usr/bin/php -r-xr-xr-x 1 root wheel 14869808 Oct 6 16:57 /usr/bin/php [/code] Note that the item there is a full-blown file and not a symbolic link. I'd like to delete it but I'm a bit afraid to break things -- and I'm also wondering if there might be other pieces to this old PHP somewhere. I'm wondering anyone can give me a comprehensive set of steps to get rid of all OLD versions of php and get my new one hooked in at all the right places. Any help would be much appreciated. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Removing default PHP and building latest from source
Top