This BrandYourself profile is automatically optimized to show up high in Google

Damiano Ferrari

I am a geek at heart and a web developer by trade. I started tinkering with HTML, CSS and Javascript in 1997, later learning ASP and PHP. For over a decade, I have been developing web sites and applications in PHP, using a number of frameworks (Zend Framework, CodeIgniter, symfony) and CMS (Joomla and WordPress). I love learning new things and I am currently picking up Python.


Set up Apache and PHP on OS X 10.8 Mountain Lion In OS X 10.8 Mountain Lion, Apple made several changes to the built-in Apache server: the Web Sharing option was eliminated from the Sharing panel in System Preferences and PHP is now disabled by default. Thankfully, it is quite easy to undo the changes and get Apache to run with support for PHP. 1. Enable Apache OS X 10.8 Mountain Lion ships with Apache 2.2.22. With the Web Sharing option eliminated, Apache can still be managed from the Terminal. To start it: sudo apachectl start To stop it: sudo apachectl stop To restart it: sudo apachectl restart Once Apache is running, http://localhost should display the default “It works!” page. The document root of the default site is found in /Library/WebServer/Documents/. 2. Enable PHP OS X 10.8 Mountain Lion ships with PHP 5.3.10, but the line loading the Apache module is commented out in /etc/apache2/httpd.conf. From the Terminal, I edited the configuration file with nano: sudo nano /etc/apache2/httpd.conf I found the line loading php5_module at line 117: #LoadModule php5_module libexec/apache2/libphp5.so I uncommented the line by removing the leading #, then saved the file (Ctrl+O) and quit Nano (Ctrl+X). I restarted Apache to load the new configuration: sudo apachectl restart To test that everything was working, I renamed index.html as index.php in /Library/WebServer/Documents/, then changed its content to: <?php phpinfo(); ?>

Damiano Ferrari's Background

Damiano Ferrari's Interests & Activities

php, javascript, mac os x

© 2024 BrandYourself - Manage your online reputation