Last active
August 29, 2015 14:19
-
-
Save bunnywong/f55188114f75c17e54b1 to your computer and use it in GitHub Desktop.
Ubuntu Commond
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache | |
sudo chown -R $USER:$USER /var/www/lunch-together.xxx/public_html | |
sudo chmod -R 755 /var/www | |
a2ensite lunch-together.xxx | |
a2dissite lunch-together.xxx | |
service apache2 reload | |
service apache2 restart | |
chmod -R 777 app/storage | |
-------------------------------------------------- | |
# PHP - Clean cache | |
php artisan cache:clear | |
php artisan dump-autoload | |
# PHP - Composer | |
curl -sS https://getcomposer.org/installer | php | |
php composer.phar | |
php composer.phar install | |
php composer.phar update | |
-------------------------------------------------- | |
# VNC | |
ssh -L 5901:127.0.0.1:5901 -N -f -l user server_ip_address | |
# Network | |
netstat -anltp | grep LISTEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment