sleed Posted January 24, 2014 Report Posted January 24, 2014 Buna seara tuturor.Am sa va arat cum sa instalati modulul mod_spdy care e folosit pentru requesturi , adica transmisiunea server-client sa se realizeze mai repedeBun.Gata cu vorba, sa trecem la : TREABA ; Ce avem nevoie ? :1.PHP,APACHE,Mysql sa avem instalat : Open consola : apt-get install mysql-server mysql-client Adaugi parola pentru ROOT2.apt-get install apache2 Sa instalezi apache.3.Bun. Tastezi in web-browser , 127.0.0.1 , si iti arata ca merge. Ca sa adaugi continut , te duci in /var/www , si ca sa configurezi apache , /etc/apache2/apache2.conf [cu editor nano sau pico]4.Acum uite te ce varianta ai : 32 biti & 64 prin urmatoarea comanda : uname -a , sa vezi daca ai i686 = 32 biti , x86_64 = 64 biti.Pentru 32 biti deschizi consola si downloadezi mod spdy : wget https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_i386.debPentru 64 : wget https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_amd64.debTastezi urmatoarea comanda : dpkg -i mod-spdy-*.deb ->Asta este sa instalezi mod spdy.Tot in consola scrii : apt-get -f install ca sa te asiguri ca totul e instalat corect.Apoi restart apache , service apache2 restartFast CGI este un modul ce conlucreaza cu PHP , asa ca inainte sa linstalezi, adauga asta in sursa ta /etc/apt/sources.list : deb http://ftp.us.debian.org/debian wheezy main non-freedeb Debian -- Security Information wheezy/updates main non-freeApoi tastezi : apt-get updateInstalezi modulul fastcgi cu urmatoarea comanda : apt-get install apache2-mpm-worker libapache2-mod-fastcgi php5-fpm php-apcDaca nu iti merge , in loc de apt-get , dai aptitude install...Apoi activezi modulele : a2enmod actions alias fastcgi rewriteDeschizi nano /etc/apache2/apache2.conf , adaugi tot acest continut la sfarsit de tot: <IfModule mod_fastcgi.c>FastCgiExternalServer /var/www/php5.external -socket /var/run/php5-fpm.sockAddHandler php5-fcgi .phpAction php5-fcgi /usr/lib/cgi-bin/php5.externalAlias /usr/lib/cgi-bin/ /var/www/</IfModule> Dai disable la mod php : a2dismod php5Si restart apache2 : /etc/init.d/apache2 restart sau service apache2 restartSper sa va fie de folos! Sursa :SOURCE , testata de mine , working perfect , se incarca cu cep putin 2,500 secunde Despre cum functioneaza modulul spdy : TImpul de raspuns Apache vs NGINXVa multumesc Quote
aelius Posted January 24, 2014 Report Posted January 24, 2014 (edited) Ai uitat ceva:1. Am vazut ca folosesti FastCgi dar ai instalat si php-fpm. De ce nu-l folosesti?2. Ai uitat ceva "Normally SPDY is only ever used for SSL connections (https URLs)."3. By default, Spdy este disabled. Trebuie sa adaugi SpdyEnabled on. Cum ai avut tu castig in timpul de raspuns ?3. Timpul de raspuns intre nginx si apache nu are nicio treaba aici.Mod spdy config options: https://code.google.com/p/mod-spdy/wiki/ConfigOptions Edited January 24, 2014 by aelius Quote
sleed Posted January 24, 2014 Author Report Posted January 24, 2014 II Multumesc lui Aelius pentru completari Quote
kp112 Posted January 25, 2014 Report Posted January 25, 2014 (edited) multi am vazut ca au inceput sa foloseasca NGINX sau lighttpdam gasit o comparatie intre ele Lighttpd vs nginx - WikiVS Edited January 25, 2014 by kp112 Quote
sleed Posted January 25, 2014 Author Report Posted January 25, 2014 E diferenta mare intre nginx , lighttpd , si apache2.Eu as utiliza apache2. Quote
gogusan Posted February 13, 2014 Report Posted February 13, 2014 (edited) personal va recomand nginx daca nu aveti multe domenii hostate (bataie de cap cu rewriteul) si fata de lightspeed e MOCA (LS moca = no cache)LE: si daca vreti si un cpanel destul de simplu si u-friendly va recomand: froxlor Edited February 13, 2014 by gogusan Quote