curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
I recently moved from MediaTemple's Legacy (dv) 4.0 VPS server to their new Self Managed DV server. You get to save up some money at the expense of all the software that comes pre installed on a server. All you get when you rent one of these badboys is an empty box with your choice of OS. Sounds exciting!? You bet your ass it does! It can also be a bitch if you're not as familiar with how things work in a web server. Getting this setup helped me understand servers unlike never before and having full control over everything that happens in your box does feel kinda nice.
The best free application I found for managing websites is Webmin + VirtualMin. Though I would like to mention Ajenti, which looks pretty badass and seems to be in active development.
I come from Plesk which was definitely a superior tool but so far I envy noth
# add user to www-data
gpasswd -a user www-data
# change ownership
chown -R user:www-data /var/www/
# find all files, set permissions to rw-r-----
find /var/www -type f -exec chmod 0640 {} \;
Use it like ncdu -x -q
if you're invoking it remotely (e.g. via ssh) and ncdu -x
otherwise.
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help
--- / --------------------------------------------------------
6.2GiB [##########] /home
1.9GiB [## ] /var
1.0GiB [# ] /usr
\s(id|class)="[^"]+"
https://regexper.com/#%5Cs(id%7Cclass)%3D%22%5B%5E%22%5D%2B%22
- Put in
~/tmp/
folder and don't forget to erase afterwards - Download URL: http://download.buildwithcraft.com/craft/{version}/{version}.{build}/Craft-{version}.{build}.zip
- Download
wget DOWNLOAD_URL
and unzip
- Craft usually backsup the database on update but I've found that if you have a large database, this can cause the update script to timeout.
- Craft should be set to
'backupDbOnUpdate' => false
- This means that you'll be responsible for updating previous to updating
https://gist.github.com/jerry-gdd/d3ccbf01b4d5cde3db54a1b502d04b36 | |
https://github.com/johanneslamers/craft-workflow/blob/master/install.sh | |
https://askubuntu.com/questions/866985/phpenmod-mcrypt-and-phpenmod-mbstring-return-errors | |
http://stackoverflow.com/questions/23921117/disable-only-full-group-by/31058962#31058962 |
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Source: Craft Cook Book
#!/usr/bin/env bash | |
# --------------------------------------- | |
# Virtual Machine Setup | |
# --------------------------------------- | |
# Adding multiverse sources. | |
cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |