Solved

Need help understanding a part of a link that explains how to upgrade native PHP on Mountain Lion!

Posted on 2013-01-22
5
404 Views
Last Modified: 2013-01-26
So I'm following everything here step by step:

http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/

And the one part I don't understand is at the Installing header where it begins as:

First, while in PHP’s unarchived source folder, execute the following configure command:
Then it has 1-57 commands and then at the end it has

Once done, execute
1
$ make test

So how do I really execute the commands shown there 1-57?  Do I create a text file?  Do I have to copy and paste each individual command into Terminal and then press <ENTER>?  Not sure on how to accomplish one of these last tasks to complete my upgrade?

Thank you in advance!
0
Comment
Question by:stephenlecomptejr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38808074
I have never done any of that.  I am a fairly expert PHP user but I have never compiled a new version and installed it.  Can't help you with that.  I wouldn't install Homebrew either.

What is your end goal with all of this?  You're putting in a lot of work.  What's it for?
0
 
LVL 1

Author Comment

by:stephenlecomptejr
ID: 38808104
Just do not want to be limited by Mountain Lion's version of PHP.
Will eventually create web pages that talk to MySQL database.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38808232
PHP 5.4.5 is still very new, it will not be a limit.  I have only heard of one web hosting company that has upgraded to PHP 5.4 and it's causing quite a few problems.  PHP 5.5 is not ready for production use yet so you should not install it.

You should use the 'mysqli' extension http://us3.php.net/manual/en/book.mysqli.php instead of the older 'mysql' extension for you database operations.  'mysqli' has been available ever since PHP 5.0 and has not changed in any way that you would notice.  I am going to start using it on any new projects but all the old projects including ones started on PHP 4.4 still work fine with the old 'mysql' driver on PHP 5.3 and 5.4.  PHP and MySQL doesn't change that much or that fast.

To put it more simply and directly, installing the 'newest' version of PHP and Homebrew will gain you nothing and use up a lot time doing it.
0
 
LVL 18

Accepted Solution

by:
Mark Gilbert earned 250 total points
ID: 38808493
if it says "$ make test" I think it's safe to assume that $ in this instance is their command prompt instead of say #, so at the terminal type in make test but do it within the folder you initially ran the setup from. 'make test' will then compile the test, and then you should be good to go. Perhaps test does more than just compile a test...but perhaps it tests for values and then on existence of those values it runs other installs.

The best way I've found to run php without battling with OS's like windows or mac is to start up a vm with everything you need to run php and if you ever need to start again it's a simple matter to start a new vm. Turnkey Linux has some very nice free vm's that have all you need to get started, along with Oracles VirtualBox, also free to load and run the vm. PHP was best designed for linux pure and simple. Mac is *nix based and php will work in it but I've had some sporadic issues with MAMP...although they have been far less frequent than wamp, and then porting to a live linux box just goes horribly wrong and causes even more work just to troubleshoot.

Develop naturally and easily and keep your work down, use a vm. It's almost the same (i would say identical...just semantics on what's different) as using a live server.

Hope this helps.
0
 
LVL 11

Assisted Solution

by:mcnute
mcnute earned 250 total points
ID: 38809537
Just copy them out fo the tutorial, paste them into your terminal and press enter. The configure will tell the make command how to compile your php.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question