{"id":140,"date":"2010-06-28T09:03:11","date_gmt":"2010-06-28T14:03:11","guid":{"rendered":"http:\/\/signaturewebmedia.com\/blog\/?p=140"},"modified":"2010-06-28T09:03:11","modified_gmt":"2010-06-28T14:03:11","slug":"enabling-apache-and-php-in-osx-snow-leopard","status":"publish","type":"post","link":"http:\/\/signaturewebmedia.com\/blog\/140\/enabling-apache-and-php-in-osx-snow-leopard\/","title":{"rendered":"Enabling apache and PHP in OSX (Snow Leopard)"},"content":{"rendered":"<p><a href=\"http:\/\/getfreeipad.us\/info\/offer1\/\" target=\"_blank\" rel=\"nofollow\"><img src=\"http:\/\/getfreeipad.us\/images\/ipad-tester-wanted.jpg\" border=\"0\"><\/a><\/p><p>OS X Snow Leopard (10.6.x) comes with local apache server with lots of extensions\/modules. You just need to configure (very easy) them in order to use it.<\/p>\n<p>If apache is already configured (it should be), you can run it by:<br \/>\n<code><br \/>\nsudo apachectl start<br \/>\n<\/code><\/p>\n<p>To check, if it is running, do this:<br \/>\n<code><br \/>\nps -aux|grep httpd<br \/>\n<\/code><br \/>\nThen the typical output would be:<br \/>\n<code><br \/>\nbgates 50737   0.0  0.0  2426844    328 s003  R+    9:52AM   0:00.00 grep httpd<br \/>\n_www     50702   0.0  0.0  2451752    656   ??  S     9:43AM   0:00.00 \/usr\/sbin\/httpd -D FOREGROUND<br \/>\nroot     50701   0.0  0.2  2451752   9768   ??  Ss    9:43AM   0:00.51 \/usr\/sbin\/httpd -D FOREGROUND<br \/>\n<\/code><\/p>\n<p>To enable php, you have to modify some configuration files:<\/p>\n<p>find \/etc\/apache2\/http.conf and uncomment it (remove the &#8220;#&#8221;)<br \/>\n<code><br \/>\n#LoadModule php5_module        libexec\/apache2\/libphp5.so<br \/>\n<\/code><\/p>\n<p>Then start\/restart the apache instance by:<\/p>\n<p><code><br \/>\nsudo apachectl start<br \/>\n<\/code><br \/>\nor<br \/>\n<code><br \/>\nsudo apachectl restart<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OS X Snow Leopard (10.6.x) comes with local apache server with lots of extensions\/modules. You just need to configure (very easy) them in order to use it.<br \/>\nIf apache is already configured (it should be), you can run it by:<\/p>\n<p>sudo apachectl start<\/p>\n<p>To check, if it is running, do this:<\/p>\n<p>ps -aux|grep httpd<\/p>\n<p>Then the typical output would be:<\/p>\n<p>bgates 50737   0.0  0.0  2426844    328 s003  R+    9:52AM   0:00.00 grep httpd<br \/>\n_www     50702   0.0  0.0  2451752    656   ??  S     9:43AM   0:00.00 \/usr\/sbin\/httpd -D FOREGROUND<br \/>\nroot     50701   0.0  0.2  2451752   9768   ??  Ss    9:43AM   0:00.51 \/usr\/sbin\/httpd -D FOREGROUND<\/p>\n<p>To enable php, you have to modify some configuration files:<\/p>\n<p>find \/etc\/apache2\/http.conf and uncomment it (remove the &#8220;#&#8221;)<\/p>\n<p>#LoadModule php5_module        libexec\/apache2\/libphp5.so<\/p>\n<p>Then start\/restart the apache instance by:<\/p>\n<p>sudo apachectl start<\/p>\n<p>or<\/p>\n<p>sudo apachectl restart<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/getfreeipad.us\/info\/offer2\/\" target=\"_blank\" rel=\"nofollow\">\r\n<IMG SRC=\"http:\/\/www.mb01.com\/getimage.asp?m=1753&o=2883&i=39158.dat\" width=300 height=250 border=0>\r\n<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[82,38],"tags":[87,85,88,89,201,86,83,198,84],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/posts\/140"}],"collection":[{"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":1,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":141,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions\/141"}],"wp:attachment":[{"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/signaturewebmedia.com\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}