Thursday, January 16, 2014

Si te istalojm swiftpanel ne root

1: setenforce 0
2: selinuxenabled 0
3: yum install httpd php php-mysql php-curl mysql mysql-server wget unzip
4: This is temporary; you should set this rule permanently in /etc/sysconfig/iptables.
iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
5: service mysqld restart

6: mysql_secure_installation
Komanda e pare qe vjen e shenojm enter , kurse komandat tjera qe vijne rradhazi shenojme : N

7 : mysql -uroot -p [Passi i rotit]

9 : create database gpanel;

10 : grant all on gpanel.* to 'gpanel'@'localhost' identified by 'Pasi i rotit';

11 : flush privileges;

12 :SET PASSWORD FOR 'gpanel'@'localhost' = PASSWORD('gpanel');

--------------------------------------------------------------------------
instal shsh2


1) yum install automake
2) yum install php-devel 
3) yum install libtool
4) yum install openssl-devel
5) yum install gcc++
============================================================
istalojm libshsh2
Hapi 3 : cd /usr/src
Hapi 4 : wget http://www.libssh2.org/download/libssh2-1.3.0.tar.gz
Hapi 5 : tar -zxf libssh2-1.3.0.tar.gz
Hapi 6 : cd libssh2-1.3.0
Hapi 7 : yum install gcc php-devel php-pear libssh2 libssh2-devel
Hapi 8 : ./configure
Hapi 9 : make all install
Hapi 10 : cd /usr/src
Hapi 11 : rm -Rf libssh2-1.0
Hapi 12 : rm -f libssh2-1.0.tar.gz
--------------------------------------------------------------------------------
istalojm shsh2 PHP

Hapi 13 : cd /usr/lib64/php
Hapi 14 : wget http://pecl.php.net/get/ssh2-0.11.3.tgz
Hapi 15 : tar -zxf ssh2-0.11.3.tgz
Hapi 16 : cd ssh2-0.11.3
Hapi 17 : phpize && ./configure --with-ssh2 && make
Hapi 18 : cd modules
Hapi 19 : mv ssh2.so /usr/lib64/php/modules
Hapi 20 : cd /usr/lib64/php
Hapi 21 : rm -Rf ssh2-0.11.0
Hapi 22 : rm -f ssh2-0.11.0.tgz
--------------------------------------------------------------------
Edit PHP settings

Hapi 23 : touch /etc/php.d/ssh2.ini
Hapi 24 : echo extension=ssh2.so > /etc/php.d/ssh2.ini
Hapi 25 : /etc/init.d/httpd restart
Hapi 26 : php -m | grep ssh2

No comments:

Post a Comment