Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum update
- 1. Install php
- yum install php
- yum search php
- yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
- yum install php-pecl-apc
- /etc/init.d/httpd restart
- if installed skip to step 3, if not continue from here
- 2. Install ioncube
- cd /var/www/html
- wget https://www.ioncube.com/loader-wizard/loader-wizard.tgz (x64 bit)
- tar xvzf loader-wizard.tgz
- Open browser and go to [your-ip]/ioncube/loader-wizard - follow instructions
- cd /var/www/html/ioncube/
- wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- tar xvzf ioncube_loaders_lin_x86-64.tar.gz
- mv ioncube_loader_lin_5.3.so /usr/lib64/php/modules
- /etc/init.d/httpd restart
- cd ~
- 3. Install SSH2
- yum install automake
- yum install php-devel
- yum install libtool
- yum install openssl-devel
- yum install gcc++
- cd ~
- 4. Install libssh2
- cd /usr/src
- wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz
- tar xvzf libssh2-1.7.0.tar.gz
- cd libssh2-1.7.0
- yum install gcc php-devel php-pear libssh2 libssh2-devel
- ./configure
- make all install
- cd /usr/src
- rm -rf libssh2-1.7.0
- rm -f libssh2-1.7.0.tar.gz
- cd ~
- 5. Install ssh2
- cd /usr/lib64/php
- wget http://pecl.php.net/get/ssh2-0.13.tgz
- tar xvzf ssh2-0.13.tgz
- cd ssh2-0.13
- phpize && ./configure --with-ssh2 && make
- cd modules
- mv ssh2.so /usr/lib64/php/modules
- cd /usr/lib64/php
- rm -Rf ssh2-0.13
- rm -Rf ssh2-0.13.tgz
- cd ~
- 6. Edit php settings
- touch /etc/php.d/ssh2.ini
- echo extension=ssh2.so > /etc/php.d/ssh2.ini
- /etc/init.d/httpd restart
- php -m | grep ssh2
- cd ~
- 7. Install FTP for clients and Web FTPS
- yum install vsftpd
- (if you use vi editor use commands below otherwise use WinSCP or FileZilla)
- sudo vi /etc/vsftpd/vsftpd.conf
- *Press ESC
- enter :
- type: wq! -> and press enter
- (when finished)
- sudo service vsftpd restart
- cd ~
- 8. Install database (if not installed skip removing)
- If alredy installed:
- yum remove mysql
- yum -rf /var/lib/mysql
- if not installed continue from below
- yum install mysql-server
- /sbin/chkconfig --levels 235 mysqld on
- service mysqld start
- mysql_secure_installation
- mysql -u root -p
- CREATE DATABASE gpanel;
- CREATE USER 'gpanel'@localhost IDENTIFIED BY 'gamepanel';
- GRANT ALL PRIVILEGES ON gpanel.* TO 'gpanel'@localhost;
- use gpanel;
- After installing go to filezilla or winscp, login and go to /var/www/html/[your-link-for-panel]
- and edit file configuration-dist.php for database connection
- host: localhost
- db_name: gpanel
- user: gpanel
- pass: gamepanel
- save the file, exit and rename to configuration.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement