Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ercw

macrumors regular
Original poster
May 4, 2006
104
0
Let's say that I start developing a site on my local machine server (OSX 10.3.9) with PHP and MySQL.
What happens when I'm ready to upload my files to another unix server equipped with PHP and MySQL?
Do I have to make sure that they have the same versions than I have on my local Machine? what is involved in this migration?

Thanks so much
:) :)
Eric
 
If its possible for you, I would match (install) the version of php/mysql on your machine to the one on the server. that way there are no surprises when it goes live. apache, php, and mysql make older releases available, so its just a matter of reading their documentation to find out how to set them up.

however, in general, you would probably try to make sure the version of php/mysql is the same major version number as what you are developing with. (ie. php 4 development to php 4 server). minor releases are not *usually* problematic. and, of course, you wouldnt want to develop with a newer version of php than is on your server.
 
Thank you

I have installed PHP 5 from a package at:
http://www.entropy.ch/software/macosx/php/
just because I'm a total dork when it comes to mess with UNIX commands yet.
What do you this of this kind of installations?
Guess I have a long ways to go.

Thanks for your help

Eric
 
packages are ok for getting up and running quickly, so you are ok. but for me, i like total control over everything so i compile my own version of apache and php. plus, if you compile it yourself you get the benefit of compiling in features that are not always present in the pre-built packages.

if you like the sound of this, check out http://www.php.net/manual/en/install.unix.php#install.unix.apache or http://www.php.net/manual/en/install.macosx.php for details on compiling php against the apache 1.3 source/apxs yourself. youll also need the apache source with the first link, since it doesnt come with os x. just check out the php install manual in general if you havent already done so; its very complete and describes everything youll need to know even if you arent familiar with the command line:
http://www.php.net/manual/en/install.php
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.