output_buffering = Off output_handler = zlib.output_compression = On viaCompressing PHP Output « Newest Industry.
Tags: compression, gzip, php
Category: Apache, Hebergement | Commentaires fermésMultiple light-weight httpd server In search for a lightweight solution to run some php pages on my Debian diskless shellserver it appears there are several lightweight httpd daemons in Debian that can do php. I created some virtual machines on KVM to do some testing. Here follows a short howto to get the different httpd [...]
Category: Debian, Hebergement, Lighttpd | Commentaires fermésHow To Save Traffic With Apache2′s mod_deflate Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 05/15/2006 In this tutorial I will describe how to install and configure mod_deflate on an Apache2 web server. mod_deflate allows Apache2 to compress files and deliver them to clients (e.g. browsers) that can handle compressed content [...]
Category: Apache, Debian, Hebergement | Commentaires fermés1. Installation des modules Apache Par défaut sous Debian le module deflate est enclenché, le module headers nous serviras dans le cadre d’environnement utilisant un proxy. On enclenche donc ces deux modules au niveau d’Apache, pour cela on lance une console SHH sur notre serveur et on lance les commandes suivantes : a2enmod deflate a2enmod [...]
Category: Apache, Debian, Hebergement | Commentaires fermésCanonical URL is part of a problem for most blogs. Most people who concern about different versions of a URL that display the same content are likely worry about duplicate content issue. As we know, that is not good from the search engine standpoint. The solution is to www redirect — redirecting your blog from [...]
Tags: apache-nginx-lighttpd, canonical, lighttpd-redirection-www, llglttd-6, rewrite, www
Category: Apache, Hebergement, Lighttpd | Commentaires fermésChange the default Apache character set By default, Red Hat Enterprise Linux 4 sets the default character set in Apache to UTF-8. Your specific web application may need for the character set to be set to a different value, and the change can be made fairly easily. Here’s an example where the character set is [...]
Tags: apache, apache-adddefaultcharset, charset-dfaut-linux-redhat, how-to-know-default-charset-linux, latin 1, set-charset, set-gmt1-apache, utf8
Category: Apache, Hebergement | Commentaires ferméslighttpd + PHP-FPM on Debian Squeeze I’m not a super-BOFH but I do like to host my own blog (not this on, though) and play with stuff. In the past I used to use Apache, but I never liked the VirtualHosts configuration, specially when it gets big. Don’t get me wrong, I’m not saying its [...]
Tags: debian-squeeze, fpm, lighttpd, php
Category: Debian, Hebergement, Lighttpd | Commentaires fermésun tiot php pour les virer <?php /** * Nettoire les fichiers * * @param string $name */ function nettoieFichier($name){ //ouvre le fichier $data = file_get_contents($name); $count = 0; $data = str_replace('eval(base64_decode(\'<——EDIT——>\'));','',$data,$count); if($count!=0){ echo ' Patched '; file_put_contents($name,$data);//ecrit le fichier } } /** * Parcours un repertoire * * @param string $repname */ function parcoursRep($repname){ $dir = opendir($repname); //lit le repertoire while (($file = readdir($dir)) !== false) { //Si c'est unfichier if(!is_dir($repname .'/'. $file)){ $extension1 = substr($file, -3, 3); $extension2 = substr(strrchr($file,'.'),1); //verifien si c'est une extension php if($extension1==$extension2){ if($extension1=='php'){ echo "Traitement du fichier : $repname/$file"; nettoieFichier($repname.'/'.$file); echo "\n<br>"; } } }else{//Si c'est un dossier if($file!=".." && $file!='.'){ echo "Dir : $repname/$file \n<br>"; parcoursRep($repname .'/'. $file); } } } } $dir = '.';//répertoire courant parcoursRep($dir); ?> un [...]
Tags: base64 and co, base64_decode, base64_decodestr_replace, creer-dpt-yum-sur-debian, eval-base64_decode-wordpress, evalbase64_decode, fgrep-base-64-decode, function-nettoiefichiername, function-parcoursreprepname-dir-opendirrepname-lit-le-repertoire-while-file-readdirdir-false-si-cest-unfichier-ifis_dirrepname, infogerance-linux, kogitae, linux-echo-base64_decode
Category: Hebergement | Commentaires fermésJe suis amené à réaliser régulièrement des audits de serveurs MySQL.Voici le premier volet d’une série d’articles où je vais essayer de vous donner quelques points clés pour mieux comprendre le fonctionnement de MySQL. La configuration du serveur est un des points que je regarde, et l’une des erreurs les plus courantes concerne le paramétrage [...]
Tags: asterisk-debian-francais, check_raid-hpacucli, hpacucli-rebuild-logical-drive, kogitae, limite-tables-mysql-debian-64, max_heap_table_size, max_heap_table_size-mysql, max_heap_table_size-syntaxe, mysql-debian-max_heap_table_size, mysql-max_heap_table_size, mysql-tmp_table_size, optimisation-tmp_table_size, taille-max-table-linux-5-mysql, tmp_table_size, tmp_table_size-max_heap_table_size, tmp_table_size-mysql, tmp_table_size-optimisation, tmp_table_size-quelle-valeur, valeur-de-tmp_table_size, valeur-par-defaut-de-tmp_table_size
Category: Hebergement, mysql | Commentaires fermésSetting up a simple SSL configuration¶ Setting up a simple SSL configuration with Lighttpd is quite easy. Though this method should be used with care because this setup will only provide proper encryption, not authentication! The user will be presented with a query whether to accept the certificate or not! First, go into your SSL [...]
Tags: administrateur-systeme-freelance, certificat, debian-lamp-lighttpd, debian-lenny-lighttpd-certificate, httpd, kogitae, lamp-or-linux-or-developpement-web-and-apache-or-php-or-mysql-or-adobe-or-eclipse-or-zend-or-mozilla-or-firefox, lightto-pem, lighttpd, lighttpd-root-ca-config, pem, ssl, ssl-pem-file-lighttpd, zend-lighttpd-redirect-https, zend-ssl-pemfile
Category: Hebergement, Lighttpd | Commentaires fermés