Run PHP client side on Mac
- Started
- Last post
- 6 Responses
- Luckypp
Hey, I know the PHP and Apache are pre-installed in OSX, but what I have a question about, is what do you I need to do to set-up an offline server remotely, so that I can test client side PHP without being online?
- acescence0
are you saying you want to run PHP locally on your mac?
go to system prefs > sharing > turn on personal web sharing. that starts apache.
now, use terminal and find your /etc/httpd/httpd.conf file and uncomment the lines that load and add the PHP module. this will enable php4 (you'll need to restart apache for it to start working)
i would, however, suggest you go to http://www.entropy.ch/ and download his PHP5 package instead of using the pre-installed PHP4. make sure to turn 4 off first though, if you've enabled it.
now drop your site files in ~user/sites/ directory and you're off!
- SirG0
MAMP rocks! I love their widget to quickly turn on/off the server...
- Luckypp0
Awesome!! Thanks so much!
- Luckypp0
Only last question is, I have only really used Terminal for ftp'ing, how do I find the file (/etc/httpd/httpd.con f) using terminal to make sure that PHP4 is off?
- Luckypp0
Got it all installed, thanks again!