kogitae-com

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 http://museum.php.net/php5/php-5.2.17.tar.bz2 wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz https://bugs.php.net/patch-display.php?bug_id=54736&patch=debian_patches_disable_SSLv2_for_openssl_1_0_0.patch&revision=1305414559&download=1 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/libc-client.so /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 …

php 5.2.17 en php-fpm Lire la suite »

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 ») …

Splitter un dump mysql avec Bash, en 1 dump par table Lire la suite »

Retour en haut