Thread: mac osx server. (php/mysql)
07-27-2005, 05:21 AM #1design2Guestmac osx server. (php/mysql)
This is what im upto i've created http://www.axiscomm.co.nz
the front-end design however now im looking to integrate php/mysql
and make it database-driven so they can login and edit the site themselves.
Basically i've had problems with dreamweaver wizard accessing the database
even though i setup the tables in phpmyadmin.
So I thought it might be easier to setup the site using a local/network testing server. Im using mac osx 10.3.9 and am not sure how to go about it i know apache server is installed and if i turn on web file sharing i can access my computer via the net. My question is how do i setup a local testing server and create a database/tables.
After all that all i will need to do is upload the site once dreamweaver has written all the php/sql like user authentication and add a connections file with the database details i have.
Thanks in advance.
07-27-2005, 06:05 AM #2
I'm going to assume you've got 10.3.9 client not server, since the server comes with mySQL preinstalled I'm pretty sure. You'll need to download and install the latest version (or maybe not the very latest, depending on what the setup on your webhost is) of mySQL from http://dev.mysql.com/downloads/mysql/4.1.html. Download the installer package and it's got detailed instructions on how to start, stop and configure the mySQL server from Terminal.
PHP is already installed on your machine. You'll find a lot of good articles on how to install/update/activate PHP here: http://www.phpmac.com/
A couple of things to remember once you're done: you'll have to manually start up mySQL (as well as Apache) every time you want to view your local sites that use mySQL. I think there's instructions in the mySQL manual on how to start the daemon every time you log in, but I can't recite them from memory, sorry. Also make sure you give the mySQL root user account a password before you do anything. PHP, once enabled, is on for good.I'm in your forums, writing sentences in a grammatically acceptable manner.
07-27-2005, 06:10 AM #3
Sorry I forgot you asked about creating databases and tables. I could explain it to you but I'd pretty much just be copying and pasting excerpts from the tutorial section in the mySQL manual. So I'll just link to the relevant section: http://dev.mysql.com/doc/mysql/en/database-use.htmlI'm in your forums, writing sentences in a grammatically acceptable manner.
07-28-2005, 10:06 AM #4design2Guest
when i say create tables i dont really want to hand code.
so i will have to install mysql, is this easy for mac?
what do you know about mambo CMS ?
have you used it?
would it be easier to setup a testing server on my comp then upload once i have everything sorted?
i tried turning on web sharing then going to the given address and opening php pages but they dont show up - just code.
thanks for your help so far..
but its important that i get into some sort of CMS to provide clients with
so what ever is the most common or easiest should suit.
07-28-2005, 07:57 PM #5design2Guest
ok im installing the mac mysql package.
i also have found out i have Apache HTTP Server Version 1.3 on my mac.
however when i go to phpmac to update/activate it doesnt seem to have my os 10.3.9
but it does has Building and Installing Apache 2.0.54 and PHP 5.0.4 on Mac OS X 10.3.8
should i follow this?
07-30-2005, 03:02 AM #6
Yes, the package for 10.3.8 should work on your system too.
I'm not sure how far you'll get if you want to avoid doing any command line stuff with mySQL... Chances are you'll have to if you want to install a web-based GUI for it like PHPmyAdmin. You could download a normal application for interfacing with the mySQL server I guess (I think there are a couple out there, check versiontracker).
However, if all you want to do is set up a CMS for your clients, it's probably better to install it directly onto your webserver and not bother installing it on your local machine - that'll just be a hassle. Assuming you have something like CPanel to administrate your server, there should be an option to create databases, add users, and grant users permissions to certain databases, all from a web based control panel. Then all that's usually needed is for you to upload the CMS script to your webserver and start the installation (most large PHP applications will provide you with an automated install script).
To make PHP work, you'll need to name all your files with the .php extension. To make sure whether it's working or not, just create a plain text file with the only contents as:
<? phpinfo(); ?>I'm in your forums, writing sentences in a grammatically acceptable manner.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By fajar3t3 in forum OS X - Apps and GamesReplies: 0Last Post: 12-23-2009, 03:32 AM
By ryanzec in forum OS X - Apps and GamesReplies: 2Last Post: 11-04-2009, 01:50 PM
By StonePatch in forum OS X - Apps and GamesReplies: 2Last Post: 09-10-2006, 11:52 AM
By The Annoyed Man in forum Web Design and HostingReplies: 6Last Post: 11-02-2005, 01:42 PM
By lomokev in forum Web Design and HostingReplies: 2Last Post: 01-27-2005, 03:44 PM