Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8365265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:37:07+00:00 2026-06-09T12:37:07+00:00

After upgrading to Mountain Lion I used this one line bash script to install

  • 0

After upgrading to Mountain Lion I used this one line bash script to install php 5.4 http://php-osx.liip.ch/

It installs 5.4 to /usr/local/php5

If i run which php I get /usr/bin/php

And running php -v returns 5.3.13

How do tell Mountain Lion to use the php in /usr/local/php5

Will I also have to change Apache htttpd.conf to use the new version of php?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:37:09+00:00Added an answer on June 9, 2026 at 12:37 pm

    This is the hard way, you just link to the new php file:

    $ sudo mv /usr/bin/php /usr/bin/php53 && sudo ln -s /usr/local/php5/bin/php /usr/bin/php
    

    Change the php5 bin path according to the real php5 binary path since I have no idea where the correct binary is.

    But I’d rather try to use just php5 on the command line since this is probably using the PHP5.4 version because /usr/local is usually in the $PATH as well.

    You see which paths are checked by just echo $PATH on your command line. You may just add something to that by using export PATH=/usr/local/php5:$PATH or similar. You can add that line to the ~/.bash_profile file as well to store that for any later use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble building MySQLdb on Mac OSX Mountain Lion. After upgrading to OSX
After upgrading OS X from Lion to Mountain Lion, I receive the following warning
Call to undefined method after upgrading to PHP 5.4.0 mentions a few APC bug-reports
We are getting this error after upgrading to NHibernate 2.1. [QueryException: Cannot simultaneously fetch
After upgrading to Lion, and installing XCode 4.3 I can't get Hello, World to
After upgrading from Xcode 4.2 to Xcode 4.3, the instruments command line tool fails
After upgrading to Lion I can still start MySQL via System Preferences -> MySQL
After upgrading the OS X to Lion, i started to receive the following error
After upgrading my Rails install to Rails 3 on OS X, I’ve had problems
After upgrading to PHPUnit v > 3.5 (I forgot) I kept on getting this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.