Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > in Panther. How do I use it's built in PHP and stuff ?

in Panther. How do I use it's built in PHP and stuff ?
Thread Tools
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Mar 27, 2004, 06:46 PM
 
I know this is a question that has been answered lots of times. But I can not find any concreate tutorials.

I have a site that is using PHP and a CMS . It takes alot of time to upload immages an index pages. I heard that panther has PHP and MYSQL and all of that stuff built in . But when I drop pages into my webshare it does not work... Is there a control panel or tutorial that will give me access to all of this so I can do test stuff on my happy mac ?
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Mar 27, 2004, 07:38 PM
 
I don't think that MySQL comes pre-installed. Anyway, go to System Preferences->Sharing->Personal Web Sharing and turn it on. Now, put the files in /Library/WebServer/Documents and then type in your computers address to access them.
Travis Sanderson
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Mar 27, 2004, 10:18 PM
 
I did that and got what I expeccted, errors. I could have sweared that I saw Mysql installed on Panther .. Oh well any tutorilas on how I should go abouts doing this ? Or do I just install it from the site on the net ?
     
Mac Elite
Join Date: Dec 2003
Status: Offline
Reply With Quote
Mar 28, 2004, 01:10 AM
 
You might want to head down to http://www.entropy.ch/software/MacOSx/mysql/
     
Senior User
Join Date: Nov 2003
Location: Middle of the street
Status: Offline
Reply With Quote
Mar 28, 2004, 11:39 PM
 
MySQL doe not come with Panther; you will have to get it from the link which Jaey referred to you in the previous post.

By default, PHP is disabled in Panther, you will have to enable it by uncommenting (sp?) the appropriate lines in the httpd.conf file in the /etc/httpd/ (default for Apache on OS X) folder. A step-by-step guide can be found here.

Once both of these are up and running (and given that you have restarted Apache after updating it's configuration file). All you need to do is put the PHP files in the "sites" folder that is under your user name. Don't put any files in the /Library/WebServer/Documents --

Now you can view to your PHP site from your browser using the following url http://localhost/~username (where the "~username" is your user name)
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Mar 29, 2004, 02:51 PM
 
Oops, forgot about the uncommenting Sorry. Also, serverlogistics.com has some good mac packages as well.
Travis Sanderson
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Mar 29, 2004, 03:52 PM
 
To clarify: MacOS X Server does come with MySQL installed, but client does not. It is rather simple to get MySQL up and running on client though.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2