php 5.2.17 en php-fpm

Sous linux debian 7 64bits aptitude install patch make gcc libxml2-dev pkg-config libssl-dev libcurl3-dev libjpeg-dev libpng-dev libc-client-dev libmcrypt-dev libmhash-dev libmysql++-dev libxslt-dev libltdl7-dev wget wget patch php-${version}/ext/openssl/xp_ssl.c debian_patches_disable_SSLv2_for_openssl_1_0_0.patch.patch.txt ln -sf /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/ ln -sf /usr/lib/ /usr/lib/x86_64-linux-gnu/ tar -xvzf php-5.2.17.tar.bz2 gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1 cd php-5.2.17 ./configure –with-libdir=lib/x86_64-linux-gnu –enable-fastcgi –enable-fpm En savoir plus surphp 5.2.17 en php-fpm[…]

Splitter un dump mysql avec Bash, en 1 dump par table

#!/bin/bash file=$1 # the input file directory= »$file-splitted » # the output directory output= »$directory/header » # the first file containing the header GREP= »DROP TABLE » # what we are looking for mkdir $directory # create the output directory while read line do # if the current line contains the wanted statement if [ $(echo « $line » | grep -c « $GREP ») En savoir plus surSplitter un dump mysql avec Bash, en 1 dump par table[…]

Debian – Free up some disk space

Under Debian for most Linux distributions you can free up some disk space, simply by deleting the configuration files resulting unistallation of packages. The commands to be used are: dpkg –purge $dpkg –get-selections | grep deinstall$ | cut -f 1 dpkg –purge $dpkg –get-selections | awk ‘$2 ~ /de/ { print $1 } ‘ aptitude En savoir plus surDebian – Free up some disk space[…]