Web Programming in OS X

delsoljb32

Dark Archon
I am going to begin web programming in OS X soon. Is there anything I need to install or set before beginning? I am running Jaguar 10.3.5, do I need to install MySQL and PHP or are they already integrated into Jaguar? What should my first steps be before jumping into this? I also will be backing up and partitioning the hard drive prior to beginning this. I intend on installing linux on the other partition, I am fairly confident that it will work and that it will be relatively painless (fingers crossed).

I appreciate any help offered, thanks!
 
oops, mistyped, meant panther, duh.
thanks. I've read that MySQL and apache can be somewhat tricky to install, I've read a few threads here pertaining to it on this site.
 
mysql was not easy, but i have installed worse. I just think that it is clumbsy to use in the command line. I hate having to follow everything with a ; what a pain. once you get it installed i would highly recommend to use phpmyadmin. I like the command line, i just dont like it for dealing with mysql. phpmyadmin is easy to install, but make sure you put it behind a password protected directory (like with ACLs or something). If you are going to install Linux on the other partition i would suggest to look at yellowdog. I heard that they were going to be releasing version 4 soon too.
 
yeah, ive also been questioning around for ideas/suggestions about the linux install. many people suggested yellowdog. ill be searching around before i make the big move
 
Just get the official MySQL binaries from mysql.com, they come in a .dmg file, that has two installer packages, one with the server and one with a startup item that automatically starts the server every time you start your computer. Install both packages and restart your computer and you're away.

You should fix the root password for MySQL, it's empty from the start, but that's pretty simple (section 2.4.3 in the online manual).

Watch out when you choose versions: 4.1 and beyond needs a different login procedure than 4.0, and PHP doesn't cope with that to well. In version 5 of PHP there is a new library called mysqli, but I haven't gotten that to work on my installs (though others have). Check out the forums at www.entropy.ch, where you can also get the latest binaries for PHP 5.

My recommendation: use MySQL 4.0 and the built-in version of PHP, and the Apache server you already have. If you really need to do sub-selects you might want o try MySQL 4.1, but remember the warning above...

To get the built-in version of PHP working you need to change two lines in /etc/httpd/httpd.conf. One in the "LoadModule" section and one in the "AddModule" section. The lines that need changing are the ones mentioning ".php". Just remove the hash mark at the beginning of each and turn web sharing off and on again. That's it.

Get "YourSQL" from http://www.mludi.net to fiddle with databases, and "HyperEdit" from http://www.tumultco.com/HyperEdit/ to mess around with PHP. It'll straighten your learning curve, since you get live preview of what your php code is doing. IF you want to spend some cash, get Navicat from http://www.navicat.com, then you can do all your db-administration from there. A lot easier than phpmyadmin (which sucks) or webmin (that doesn't suck, and also lets you control both the Apache server and MySQL in the same interface).
 
That HyperEdit looks nice i am gonna give it a shot. I normally dont like or use wysiwyg editors but this one is more like what i would like. thanks for the tip on it.
 
Back
Top