вторник, 11 октября 2016 г.

Go Daddy Certificate Install

SOURCE : http://serverfault.com/a/478048


So when you generated your CSR you would have specified a CN (Common Name) that corresponds to the specific hostname that you want to use the certificate for.1 Where ever this hostname lives is where you want to install the certificate. For the sake of sane examples let's use www.example.com as the hostname for your certificate.
When you generated the CSR you would have created two files,
  1. A cryptographic key
  2. The CSR you shipped off to GoDaddy
So now that you have the signed certificate back from them you'll need to place the following three pieces of information on the webserver that hosts www.example.com
  1. The cryptographic key generated when you made the CSR
  2. The mysite.crt file provided by GoDaddy
  3. The sf_bundle.crt file provided by GoDaddy
Now go to the Apache config file for the www.example.com host. You'll want to add these lines
SSLEngine on
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

SSLCertificateFile /etc/httpd/ssl/mysite.crt
SSLCertificateKeyFile /etc/httpd/ssl/mysite.key
SSLCertificateChainFile /etc/httpd/ssl/sf_bundle.cer
Replace the paths as necessary, but just make sure you put them someplace safe with root only permissions. Restart httpd and, so long as you did everything right, it should work.
1: Not 100% accurate but let's ignore wildcards for the moment.

вторник, 4 октября 2016 г.

Global Composer Installation

SOURCE: https://akrabat.com/global-installation-of-php-tools-with-composer/

To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:


$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
$ composer global require phploc/phploc
$ composer global require phpmd/phpmd
$ composer global require squizlabs/php_codesniffer

Or for ORO Projects
C:\Users\{CURRENT USER}\AppData\Roaming\Composer\composer.json
    "require": {
        "phpunit/phpunit": "4.8.*",
        "phpmd/phpmd": "2.4.*",
        "squizlabs/php_codesniffer": "2.7.*"
    }

and
composer global install