Ayant Symfony3 qui tourne bien, j’ai voulu modifier ma configuration de nginx et non tout refaire. Après de nombreux problèmes et de longues recherches, Continue reading “Configuration de WP avec nginx, php-fpm et une dose de ssl” »
Category: Server Admin
New symfony project: tips and commands
Create a new bundle:
php app/console generate:bundle
And if you want to go faster (i.e. no interactions), dir give the src path, namespace the name of the bundle and structure the need to generate basic directory :
php app/console generate:bundle --dir=/Volumes/Docs/Projects/CV/www/src --namespace=CV/EditorialBundle --structure --no-interaction
Awstats or how to parse your server logs (with NGINX)
I needed a powerfull to provide me with information that Google Analytics doesn’t bring such as bandwith consumption, IP addresses etc.
Continue reading “Awstats or how to parse your server logs (with NGINX)” »
File backup script
We all care of our stuff and need to back it up. I recently set up a system to automatically do it. I use crontab to perform backups as long as I want.
Useful disk commands
I rarely use disk commands that why I often forget them and spend minutes to find the right command that I already used.
Here are some of the most useful disk commands I use:
# List all existing disks fdisk -l # Show mounted partitions, modify them in /etc/fstab, to mount use "-all" argument mount # Build a RAID 1 from 2 disks /dev/sda3 & /dev/sdb3 mdadm -C /dev/md3 --level=raid1 --raid-devices=2 /dev/sda3 /dev/sdb3 # Details about RAID /dev/md3 mdadm --detail /dev/md3 # Update mdadm.conf, delete lines before mdadm --examine --scan >> /etc/mdadm/mdadm.conf # Format /dev/md3 in ext4 mke2fs -t ext4 /dev/md3 |
How to get a free SSL certificate
This website (https://www.startssl.com/) provide free SSL certificates in its basic version.
Thank you 🙂
Install postfix to relay email
Hi,
I wanted to set email aliases like titouan13@mydomain.com to be resent to my personal email address. In order to do so, I installed postfix.
How to tune apache
I am not an apache guru but I can share some of the things I did on my server. The first step is to disable useless modules and the second one is to tune your configuration file.
First, you need to know which module is enable : apachectl -t -D DUMP_MODULES or apache2ctl -M
Continue reading “How to tune apache” »
For the ones who use vi(m)…
Something we all need to save time:
http://www.lagmonster.org/docs/vi.html
And if I sum it up with most useful commands and other tips, here are my favorites: