Skip to content

Instantly share code, notes, and snippets.

@MnMTech
MnMTech / Create symlink to PHPMyAdmin in Ubuntu 14.04.sh
Last active January 20, 2023 12:51
Create symlink to PHPMyAdmin in Ubuntu 14.04
@MnMTech
MnMTech / Install PHPMyAdmin in Ubuntu 14.04.sh
Last active August 29, 2015 14:22
Install PHPMyAdmin in Ubuntu 14.04
apt-get install phpmyadmin
@MnMTech
MnMTech / Install Composer.sh
Last active August 29, 2015 14:22
Install Composer
curl -sS https://getcomposer.org/installer | php
@MnMTech
MnMTech / Alias php composer.phar.sh
Last active August 29, 2015 14:22
Alias php composer.phar
alias composer="php /var/www/html/composer.phar"
@MnMTech
MnMTech / Install Laravel Installer using Composer.sh
Last active August 29, 2015 14:22
Install Laravel Installer using Composer
composer global require "laravel/installer=~1.1"
@MnMTech
MnMTech / Create a new Laravel 5 skeleton project in the current directory.sh
Last active August 29, 2015 14:22
Create a new Laravel 5 skeleton project in the current directory
laravel new projectname
@MnMTech
MnMTech / Update the $PATH in Ubuntu 14.04 to make Laravel executable available.sh
Last active August 29, 2015 14:22
Update the $PATH in Ubuntu 14.04 to make Laravel executable available
export PATH=$PATH:~/.composer/vendor/bin
@MnMTech
MnMTech / .htaccess file to redirect traffic from web root into Laravel project sub directory.sh
Last active August 29, 2015 14:22
.htaccess file to redirect traffic from web root into Laravel project sub directory
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# remove www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [NE,R=301,L]
@MnMTech
MnMTech / Install & enable PHP Mcrypt on Ubuntu 14.04.sh
Last active August 29, 2015 14:22
Install & enable PHP Mcrypt on Ubuntu 14.04
apt-get install php5-mcrypt
php5enmod mcrypt
service apache2 restart
@MnMTech
MnMTech / Update package dependencies in composer.json.sh
Last active August 29, 2015 14:22
Update package dependencies in composer.json
#edit composer.json first
composer update