![]() ![]() Restart apache: sudo apachectl restart and check in the phpinfo that xdebug is now loaded.I like these settings (use with caution…): If you want to configure your xdebug settings, then add an section.Edit /etc/php.ini and add this line to the end: zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so".Edit php.ini and change settings appropriately.Įxtension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20100525"Ĭan’t have a PHP development environment without xdebug! Fortunately, Mavericks ships with it ready to enable:.Sudo launchctl load -w /System/Library/LaunchDaemons/ Ensure that Apache will start after a reboot:.Use Safari to navigate to and check that the PHP version is displayed (5.3.13 at the time of writing).Create a new file called info.php with Create a new folder called “orig” and place all files currently in the Documents folder into it.Open Finder and navigate to /Library/WebServer/Documents/ using shift+cmd+g.sudo chmod g+rw /Library/WebServer/Documents/*.sudo chmod g+rws /Library/WebServer/Documents.sudo chgrp staff /Library/WebServer/Documents.Give yourself permissions to the /Library/WebServer/Documents/ folder using the terminal commands:.Find AllowOverride None within the section and change to AllowOverride All so that.Find #LoadModule php5_module libexec/apache2/libphp5.so and remove the leading #.Give write permission the config file to root: sudo chmod u+w nf.We just have to use the command line now to start and stop it. sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sockĪpple have removed the “Web Sharing” feature from System Preferences, but Apache is still installed.Now ensure that the mysql.sock file can be found by PHP:.type d -exec chmod g+rws isn’t in plain text on the disk. PHP 5.3/5.4/5.5 for OS X 10.6/10.7/10.8/10.9 as binary package by LiipĮnsure that the following directories exist and have the right permissions: sudo mkdir /usr/local/includeįind.Note: If you don’t want to use the built-in PHP or want to use version 5.5, then these are some alternatives: This is how to set it up from a clean install of Mavericks. With OS X 10.9 Mavericks, Apple chose to ship PHP 5.4.17.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |