It should already be there but will be commented out. extension=redis.soĮnable Xdebug at the bottom of the file by Deleting the. Look for Extensions and Enable Memcached and Redis extensions. short_open_tag = OnĬopy redis.so from the appropriate subdirectory of this repo to /Applications/MAMP/bin/php/php5.x.x/lib/php/extensions/no-debug-non-zts-200xxxxx (Change to your PHP version) While WordPress coding standards won’t allow short tags to be enabled… Who really has time for that. $ brew info redis Setup MAMP 4: Configure PHP $ launchctl unload ~/Library/LaunchAgents/ Stop Redis on autostart on computer start. Start Redis server using a configuration file. If it replies “PONG”, then it’s good to go! $ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Look for Extensions and uncomment extension=memcached.so Install Redis (Optional): Open /Applications/MAMP/bin/php/php7.0.12/conf/php.ini $ ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents Enable Memcached with PHP. Launch Memcached when the computer starts. Look for # Virtual hosts and uncomment the line ( delete the # )Ĭreate an entry in /Applications/MAMP/conf/apache/extra/nf ĭocumentRoot "/Users/yourusername/Sites/mydomain.ca" Open and edit /Applications/MAMP/conf/apache/nf Search for DocumentRoot Change the path to /Users/yourusername/Sites Set the Document Root to ~/Sites Or where ever you keep your PHP projects. In fact, I think it’s the best option going. Most Unix commands won’t work ( Thanks, Apple ).īut as you become more and more familiar with MAMP it’s not all that bad. Sometimes your configs will break, and MAMP is not set up like your Ubuntu VPS, things are not in the same locations. Some MAMP pros include all local sites being accessible at the same time, simple MySQL administration with PHP MyAdmin or Sequal Pro.īut some of the negatives can come once you have made changes to various config files and then go to update MAMP or add newer versions of PHP. But consider being responsible for 40 different sites, all with various changes and updated. If you like Vagrant and Docker then keep at it. In my opinion, things like Vagrant and Docker have their place but tend to overcomplicate and slow down local development. This MAMP development setup is what I have used for years while working on many freelance projects, personal projects, and obviously the day to day work projects. If you work on multiple sites or projects at the same time across different frameworks and or CMS’s then MAMP will make your life simple. This aspect provides great utility as Python is an easy-to-learn language that others already use for many projects.Like it or not, MAMP is an excellent tool for local development. You can also choose to use Ruby, Python, and Perl instead of a popular web development language such as PHP. You can choose to use Nginx in place of Apache, the leading HTTP server. However, the application uses more than just these options for your local server environment. Macintosh, Apache, MySQL, as well as PHP, form this. MAMP’s core components are the ones that make up its abbreviation. The Cloud tool works for both versions of MAMP. However, this is an add-on feature that comes with MAMP Pro, or you can purchase it separately for the free version. The software can back up all of your information with just one click. MAMP Cloud is a useful tool that lets you back up and saves your data and information, allowing you quick access should anything happen to the files. You can start coding after the few short moments needed to install the application. The app readily gives you many useful tools that you can use to run a WordPress server on your Windows computer. You can test your code before the data syncs to your site, and possibly breaking a critical feature. The tool lets you work on your website without saving the changes directly to it. MAMP is a great free local server environment that has many useful features available after its installation.
0 Comments
Leave a Reply. |