Uncategorized

Send email local OSX

Add some lines to /etc/postfix/main.cf, just under where a bunch of #relayhost commented lines are (as always, make a backup, just in case) myhostname = smtp.gmail.com relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_use_tls = yes smtp_sasl_mechanism_filter = plain # this was specifically necessary for yosemite Modify (create if missing)… Continue reading Send email local OSX

Uncategorized

IMAGEMAGICK INSTALLATION WITH OS X AND PHP

To install the imagick PHP extension we need to: Install ghostscript Install imagemagick Install imagick Update php.ini Install Ghostscript I am using ghostscript version 9.14, which is the latest stable release available at the time of this post. $ wget http://downloads.ghostscript.com/public/ghostscript-9.14.tar.gz $ tar zxvf ghostscript-9.14.tar.gz $ cd ghostscript-9.14 $ ./configure $ make $ sudo make… Continue reading IMAGEMAGICK INSTALLATION WITH OS X AND PHP

Uncategorized

Laravel 5 summary

Step by step laravel 5 php artisan make:controller GalleryController php artisan make:controller PhotoController After create database from phpmyadmin and config .env Create table php artisan make:migration create_galleries_table –create=galleries php artisan make:migration create_photos_table –create=photos After add fields to table run: php artisan migrate Add laravelcollective to composer.json “require”: { “php”: “>=5.5.9”, “laravel/framework”: “5.2.*”, “laravelcollective/html”:”~5.0″ }, after… Continue reading Laravel 5 summary