Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

PHP and Apache in Leopard

Can anyone point me in the right direction to get information on upgrading to Leopard and the effects it might have on my current "Personal Web Sharing" setup in Tiger?

I am trying to figure out if I should do an archive and install, or a clean install and then move my existing php pages and mysql databases over...

Just want to make sure I have a happy upgrade experience.

Dual 2GHz G5

Posted on Oct 20, 2007 10:26 PM

Reply
56 replies

Oct 26, 2007 11:49 PM in response to Brooks Bennett

Guys!

If you are serious about Programming or Using Apache/PHP/MySQL on your Mac...then STOP!!!

Turn OFF "Web Sharing".....

Go to http://www.xampp.org and download the Lamp Stack for Mac OSX.

It will install a complete LAMP stack. Go to the /Applications/XAMPP folder, change the listening port for apache to port 80 (from 8888) and add an Alias for your personal folders or create a "sites" alias that points to your personal directory.

You will get MySQL 5.0 PHP 4 AND PHP 5 (you can switch) and Apache 2.

After you install XAMPP, then run the pearcmd update to get the latest pear (make sure you run pear from /Applications/XAMPP not /usr/bin....

This is a much easier solution than trying to mess around with the Leopard's Apache install...

But I see that Leopard now uses PHP 5.2.4...but guess what....it doesn't contain all the modules I need...but XAMPP does....

Make sure you setup xampp start in the boot scripts!

cheers! Good luck!

Oct 27, 2007 2:32 PM in response to Jason Kerner

Thanks Jason. I did make the changes but I am still not able to view my php pages. I'm getting this message:

Safari can’t open the page “ http://localhost/expressions3Local/index.php” because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later.

Static html pages are ok. I don't know why the server would be busy. The page is pulling from a MySQL database. MySql does show as running.

Oct 27, 2007 4:11 PM in response to medtrac64

medtrac64 is absolutely right.. XAMPP is by far the easiest way to get a dev environment going.

Myself, I recompiled PHP and installed it over the Apple installed version after backing up everything PHP5 into a tarball. I also use the MySQL DMG package from the MySQL website, but I would not recommend this method to anyone who can't recommend it to themselves.

If for some reason XAMPP isn't appropriate for you, I suggest then looking into MacPorts.

Oct 28, 2007 12:11 PM in response to medtrac64

I easily enabled php. My old httpd.conf file is still in the etc/httpd/ location. That setup had the additional AddType lines we use to hand edit into the file way back when.

<IfModule mod_php4.c>
# If php is turned on, we repsect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

These were there by default in Tiger compile of bash. No where to be found this time. Wonder if I should add them again or download the xampp package.

PHP and Apache in Leopard

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