- Ajoutez votre utilisateur (dans ce cas, ec2-user) au groupe apache.
[ec2-user ~]$ sudo usermod -a -G apache ec2-user
- Déconnectez-vous, puis reconnectez-vous pour sélectionner le nouveau groupe, puis vérifiez votre adhésion.
| sudo su | |
| yum groupinstall "Development Tools" -y | |
| yum install nasm -y | |
| cd /tmp | |
| wget https://github.com/mozilla/mozjpeg/archive/v3.3.1.tar.gz | |
| tar -xzf v3.3.1.tar.gz | |
| cd mozjpeg-3.3.1 | |
| autoreconf -fiv |
| nohup watch -n0 "path/to/bin/console rabbitmq:consumer delete -w" & |
| sudo setfacl -R -m u:"apache":rwX -m u:`whoami`:rwX var/cache var/log | |
| sudo setfacl -dR -m u:"apache":rwX -m u:`whoami`:rwX var/cache var/log |
| sudo add-apt-repository ppa:danielrichter2007/grub-customizer | |
| wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
| echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
| export DEBIAN_FRONTEND=noninteractive | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" | |
| sudo apt-get install build-essential git grub-customizer sublime-text vim htop zsh |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "`basename $0` {start|stop}" | |
| exit | |
| fi | |
| case "$1" in | |
| start) | |
| /usr/bin/Xvfb :99 -ac -screen 0 1024x768x8 & | |
| ;; |
| <?php | |
| const SKU_LENGTH = 24; | |
| const PREFIX_SEPARATOR = '-'; | |
| public function createSku($prefix) | |
| { | |
| $prefix .= self::PREFIX_SEPARATOR; | |
| $randLength = self::SKU_LENGTH - count($prefix); | |
| $sku = $prefix . $this->generateRandom($missingLength); |
| <?php | |
| /** | |
| * Created on 3 sept. 2013 | |
| * @author Florian Ajir <[email protected]> | |
| * | |
| * Librairie PHP permettant l'identification de document électronique | |
| * en faisant appel au programme FIDO | |
| * @link <http://www.openplanetsfoundation.org/software/fido> | |
| * basé sur le registre technique PRONOM |