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
398 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
5 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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:
ingwa earned 250 total points
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now