Skip to content

Instantly share code, notes, and snippets.

@bunnywong
Last active August 29, 2015 14:19
Show Gist options
  • Save bunnywong/f55188114f75c17e54b1 to your computer and use it in GitHub Desktop.
Save bunnywong/f55188114f75c17e54b1 to your computer and use it in GitHub Desktop.
Ubuntu Commond
# 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