gogusan Posted March 4, 2014 Report Posted March 4, 2014 (edited) 1. Se instaleaza Centos 6.5 64bit ca Basic Server2. Dezactivam selinux si dam restartnano /etc/selinux/configSELINUX=disabledreboot3. Personal eu dezactivez si firewallulsystem-config-firewall-tuidebifati> OK si YES4. Adaugam Remi-repo(mai intai adaugam EPEL)cd /usr/local/srcrpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm activam remirepo (remi si remi-php55; puteti sa dati skip la asta daca scrieti yum --enablerepo=remi respectiv remi-php55)nano /etc/yum.repos.d/remi.repoenabled=1 (la ambele> remi si remi-php55)5. Facem update la sistem si instalam cateva utilitareyum update -yyum groupinstall 'Development Tools' -yyum install zlib-devel pcre-devel openssl-devel -yyum install autoconf automake libtool -y 6. Instalare MariaDB mysql serverAdaugam repo pt MariaDB: nano /etc/yum.repos.d/MariaDB.repo# MariaDB 5.5 CentOS repository list - created 2014-02-26 10:44 UTC# http://mariadb.org/mariadb/repositories/[mariadb]name = MariaDBbaseurl = http://yum.mariadb.org/5.5/centos6-amd64gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDBgpgcheck=1yum install MariaDB-server MariaDB-client -ychkconfig --levels 235 mysql onservice mysql startmysql_secure_installationenteryparolameaparolameayyyyservice mysql restart7. Nginx serverwget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmrpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpmyum install nginx -ychkconfig --levels 235 nginx onusermod -a -G apache nginxservice nginx starttestati daca functioneaza intr-un browser: http://ip (daca nu ati dezactivat firewallul, faceti setarile necesare pt portul 80)8. Php 5.5 - fpm server (cu zend opache inclus - nu mai este necesar instalarea APC)daca nu ati dat enable la remi-repo (remi si remi-php55) ori editati enabled ori adaugati --enablerepo=remi,remi-php55yum install php php-fpm php-mysql php-opcache php-commonpt ca nginx ruleaza sub userul nginx vom face modificarea userului si pt php-fpmnano /etc/php-fpm.d/www.confsi modificati user = apache in user = nginxchkconfig --levels 235 php-fpm onservice php-fpm startservice nginx restartfacem un fisier php cu phpinfo in directorul web default al nginxecho "<?php phpinfo();?>" > /usr/share/nginx/html/info.phpinainte de a testa trebuie sa setam nginx sa foloseasca php-fpmnano /etc/nginx/conf.d/default.confstergem # din fata liniilor si adaugam pathul corect la root si la fastcgi_param inlocuim /scripts cu $document_root location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; include fastcgi_params; }service nginx restarttestam phpinfo http://ip/info.php9. Froxlor panel --- OPTIONAL daca vreti un control panel simplu si la obiect.wget http://files.froxlor.org/releases/froxlor-latest.tar.gztar -xzvf froxlor-latest.tar.gzmv froxlor/* /usr/share/nginx/html/adaugam index.php in default.conf la nginxnano /etc/nginx/conf.d/default.conf location / { root /usr/share/nginx/html; index index.php index.html index.htm; #aici adaugam index.php }instalam Froxlor: http://ip"Welcome to FroxlorIt seems that Froxlor has not been installed yet.Click on the link below to start the installation."Click pe Start InstallPHP bcmath-extension... not installedTraffic-calculation related functions will not work correctly!"yum install php-bcmathil va instala din remi-php55 (nu uitati ca daca nu ati dat enable la remi repo sa folosit --enablerepo=remi,remi-php55 la comanda yum)service php-fpm restartservice nginx restartaccesati iar instalarea Froxlordupa ce completati toate campurile acolo (userul si db le creaza el, voi doar introduceti parola de mysql root)Checking MySQL-root access... OKPreparing database... OKCreating database and username... OKTesting if database and user have been created correctly... OKImporting data... OKAdjusting settings... OKInserting new values... OKCreating admin-account... OKCreating configfile... File was saved in /tmp/userdata.inc.php, please move to lib/.mv /tmp/userdata.inc.php /usr/share/nginx/html/lib/ATENTIE: in acest fisier sunt stocate parolele deci modificatii drepturile de citire (exemplu: doar userul root are dreptul de a citi fisierul)chown root.apache /usr/share/nginx/html/lib/userdata.inc.phpmergeti inapoi pe pagina si dati click pe Click here to login.accesati Settings si modificati ce va intereseaza (de exemplu la webserver la php-fpm by default e pus 127.0.0.1:8888 si noi avem pe portul 9000)daca accesati Configuration va va indica modele de configurare( NU EXISTA CFG PENTRU CENTOS dar puteti adapta de la ubuntu 12.04 de exemplu)LE: mutati va rog topicul ca am gresit sectiunea:)// edit: done Edited March 4, 2014 by aelius 2 Quote
006julieno Posted September 6, 2016 Report Posted September 6, 2016 Cel mai bun tutorial. Tot respectul de la mine, ma ajutat foarte mult . 1 Quote