Categories
Uncategorized

Create a self signed certificate using mkcert

brew install mkcert
#Now create your cert, run it as a regular user
mkdir certs
cd certs
mkcert -CAROOT
mkcert -install
# Make the cert files
mkcert drupal89.local

The above commands will create two files

/home/username/certs/drupal89.local.pem
/home/username/certs/drupal89.local-key.pem

Install the SSL module


yum install mod_ssl

Configure your virtual host with the cert

emacs /etc/httpd/conf.d/drupal89.conf

Add the new certs

<VirtualHost drupal89.local:80>
Redirect "/" "https://drupal83.local/"
</VirtualHost>

<VirtualHost drupal89.local:443>
ServerName drupal89.local:443
ServerAlias www.drupal89.local:443
DocumentRoot /var/www/html/drupal89
ErrorLog /var/log/httpd/drupal89_error_log
CustomLog /var/log/httpd/drupal89_access_log combined
SSLCertificateFile /home/username/certs/drupal89.local.pem
SSLCertificateKeyFile /home/username/certs/drupal89.local-key.pem
<Directory /var/www/html/drupal89>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
     </Directory>
</VirtualHost>

Restart apache

systemctl restart httpd

Categories
Uncategorized

Compile git 2.9.5 on Centos 7

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
tar -xzf git-2.9.5.tar.gz
cd git-2.9.5
yum install curl-devel expat-devel gettext-devel openssl-
devel zlib-devel autoconf cpio curl-devel  gcc make  perl-ExtUtils-MakeMaker
make configure
./configure --prefix=/usr/local/git
make
make install
ln -sf /usr/local/git/bin/* /usr/bin/
Categories
Uncategorized

Compile curl on Centos 7

yum install wget gcc openssl-devel -y
wget https://curl.se/download/curl-7.77.0.tar.gz
tar -xzf curl-7.77.0.tar.gz
cd curl-7.77.0
./configure --with-ssl
make install
Categories
Uncategorized

Install homebrew on centos 7

yum groupinstall 'Development Tools'
yum install curl file git
yum install nss-tools

#run the following as a regular user, not as root
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
#