PDA

View Full Version : what are you using for a php server?




techound1
Apr 27, 2006, 06:47 PM
I was raised on HTML and have just started mucking about with PHP. I want to set up a local testing server, rather than doing the upload-and-look routine (which is wearing thin:eek: ). What does everyone recommend for a thick-as-a-post (no pun intended) php-wannabe? Thanks! :D



Mitthrawnuruodo
Apr 27, 2006, 06:54 PM
Mac OS X has built-in support for PHP, but you must edit the httpd.conf file to turn on the php modules. There are probably some tools that will do this for you, but I always just open up /etc/httpd/httpd.conf in my favourite text editor and remove the # in front of these two lines a couple of hundred lines down in the file:

LoadModule php4_module libexec/httpd/libphp4.so
...
AddModule mod_php4.c

You then need to (re)start Apache (System preferences -> Sharing -> Services -> Personal Web Sharing), and you should be able to access php content locally on your machine.

Taco HTML Edit (http://tacosw.com/htmledit/) is a nice, free html/php editor that supports php previewing.

php.net (http://www.php.net) is an essential site when learning/developing php pages... :)

techound1
Apr 27, 2006, 07:04 PM
That was a huge help - many thanks!

desenso
Apr 27, 2006, 07:09 PM
Also consider using MAMP from http://www.mamp.info/

It's nice as a little testing area. Plus it just involves installing an app, no more. Certainly I wouldn't use this to host the final version, but like you say - for local testing, it's nice. And you can use mysql with it.

xelterran
Apr 27, 2006, 07:18 PM
I just used the graphical installer on: http://www.entropy.ch/software/macosx/php/

Theres also one for MySQL: http://dev.mysql.com/downloads/mysql/5.0.html

Then you just turn on Personal Web Sharing place your php files in the /sites/ directory and point your browser at localhost/~user/

wrldwzrd89
Apr 28, 2006, 04:25 AM
I just used the graphical installer on: http://www.entropy.ch/software/macosx/php/

Theres also one for MySQL: http://dev.mysql.com/downloads/mysql/5.0.html

Then you just turn on Personal Web Sharing place your php files in the /sites/ directory and point your browser at localhost/~user/
I used this approach too, it works great. The bulk of the work is done for you, you just have to configure MySQL and off you go!

jeremy.king
Apr 28, 2006, 02:28 PM
I currently use XAMPP (http://www.apachefriends.org/en/xampp-macosx.html) - although the versions look a little old

Moria
Apr 28, 2006, 02:48 PM
I just used the graphical installer on: http://www.entropy.ch/software/macosx/php/

Theres also one for MySQL: http://dev.mysql.com/downloads/mysql/5.0.html

Then you just turn on Personal Web Sharing place your php files in the /sites/ directory and point your browser at localhost/~user/

Yep, me too. Install phpmyadmin (http://www.phpmyadmin.com) afterwards to help you use mySQL databases.

techound1
Apr 28, 2006, 07:00 PM
Many, many thanks everybody!! :D