Advertisement
Guest User

VPS - install swift panel

a guest
Jul 19th, 2016
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. yum update
  2.  
  3.  
  4. 1. Install php
  5.  
  6. yum install php
  7. yum search php
  8. yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
  9. yum install php-pecl-apc
  10. /etc/init.d/httpd restart
  11.  
  12.  
  13. if installed skip to step 3, if not continue from here
  14. 2. Install ioncube
  15.  
  16. cd /var/www/html
  17. wget https://www.ioncube.com/loader-wizard/loader-wizard.tgz (x64 bit)
  18. tar xvzf loader-wizard.tgz
  19. Open browser and go to [your-ip]/ioncube/loader-wizard - follow instructions
  20. cd /var/www/html/ioncube/
  21. wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
  22. tar xvzf ioncube_loaders_lin_x86-64.tar.gz
  23. mv ioncube_loader_lin_5.3.so /usr/lib64/php/modules
  24. /etc/init.d/httpd restart
  25.  
  26. cd ~
  27.  
  28.  
  29. 3. Install SSH2
  30.  
  31. yum install automake
  32. yum install php-devel
  33. yum install libtool
  34. yum install openssl-devel
  35. yum install gcc++
  36.  
  37. cd ~
  38.  
  39. 4. Install libssh2
  40.  
  41. cd /usr/src
  42. wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz
  43. tar xvzf libssh2-1.7.0.tar.gz
  44. cd libssh2-1.7.0
  45. yum install gcc php-devel php-pear libssh2 libssh2-devel
  46. ./configure
  47. make all install
  48. cd /usr/src
  49. rm -rf libssh2-1.7.0
  50. rm -f libssh2-1.7.0.tar.gz
  51.  
  52. cd ~
  53.  
  54. 5. Install ssh2
  55.  
  56. cd /usr/lib64/php
  57. wget http://pecl.php.net/get/ssh2-0.13.tgz
  58. tar xvzf ssh2-0.13.tgz
  59. cd ssh2-0.13
  60. phpize && ./configure --with-ssh2 && make
  61. cd modules
  62. mv ssh2.so /usr/lib64/php/modules
  63. cd /usr/lib64/php
  64. rm -Rf ssh2-0.13
  65. rm -Rf ssh2-0.13.tgz
  66.  
  67. cd ~
  68.  
  69. 6. Edit php settings
  70.  
  71. touch /etc/php.d/ssh2.ini
  72. echo extension=ssh2.so > /etc/php.d/ssh2.ini
  73. /etc/init.d/httpd restart
  74. php -m | grep ssh2
  75.  
  76. cd ~
  77.  
  78. 7. Install FTP for clients and Web FTPS
  79. yum install vsftpd
  80. (if you use vi editor use commands below otherwise use WinSCP or FileZilla)
  81. sudo vi /etc/vsftpd/vsftpd.conf
  82. *Press ESC
  83. enter :
  84. type: wq! -> and press enter
  85. (when finished)
  86. sudo service vsftpd restart
  87.  
  88. cd ~
  89.  
  90.  
  91. 8. Install database (if not installed skip removing)
  92.  
  93. If alredy installed:
  94. yum remove mysql
  95. yum -rf /var/lib/mysql
  96.  
  97. if not installed continue from below
  98.  
  99. yum install mysql-server
  100. /sbin/chkconfig --levels 235 mysqld on
  101. service mysqld start
  102. mysql_secure_installation
  103. mysql -u root -p
  104. CREATE DATABASE gpanel;
  105. CREATE USER 'gpanel'@localhost IDENTIFIED BY 'gamepanel';
  106. GRANT ALL PRIVILEGES ON gpanel.* TO 'gpanel'@localhost;
  107. use gpanel;
  108.  
  109. After installing go to filezilla or winscp, login and go to /var/www/html/[your-link-for-panel]
  110. and edit file configuration-dist.php for database connection
  111.  
  112. host: localhost
  113. db_name: gpanel
  114. user: gpanel
  115. pass: gamepanel
  116.  
  117. save the file, exit and rename to configuration.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement