Updating PHP on Snow Leopard

I have a fresh Snow Leopard installation boosted all the way to 10.6.8.


I want to use it as a test server with Apache and PHP. That is all I want to do with it!


I do not want to install a WAMP-like application on this box!


Anyone who is tempted to say, "Why would you want to do that, just install, WAMP, XAMPP or some such."


I do not want to have MYSQL around nor do I want all the other overhead stuff that comes along with most of this ilk.


I do want to have the option of using the PHP webserver. I am given to understand that version 5.4+ is needed.


That said, I want to be able to push PHP to 5.4 or higher. If this can be done without a concomitant upgrade to Apache, that's fine, but if both are required to reach my goal that will work for my needs.


Possible? All it takes is yes or no. Sorry for being so brusk; I've been trolled a lot and I am Near 70 yo. I don't have to abide that treatment.

Mac mini, Mac OS X (10.6.8)

Posted on Jun 17, 2015 9:10 AM

Reply
3 replies

Jun 17, 2015 7:48 PM in response to snoozeburg

That setup should allow access form anywhere in the local network using the IP address for the Mac. It will not allow access from outside the network i.e the internet, since that requires port forwarding on the router level and as such is not in the realm of the Mac.


Also for more than one local website i the network you would need to modify either routing tables in you network router to set specific local urls to the IP and ports on your web server, or the HOST files in every Mac you want to access such sites. Again this is outside the scope of PHP and Apache. This si networking configuration, and a little of Apache setup for the websites.


With that said, you still need to have the web server setup as above before updating to 5.4 updating to PHP 5.4 on its own will not magically grant access to the web server from outside the local network.


To update to 5.4 the easiest way is tu use CURL in terminal:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.4


http://coolestguidesontheplanet.com/upgrade-to-php-5-4-or-5-5-mac-osx-10-8-mount ain-lion/.


Works for Snow Leopard as well.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Updating PHP on Snow Leopard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.