Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.15 KB | None | 0 0
  1.     Login as root!
  2.     Update your System by the following code:
  3.     Code:
  4.     yum update
  5.     Then disable Selinux and Firewall by this command:
  6.     Code:
  7.     sed -i 's|SELINUX=enforcing|SELINUX=disabled|' /etc/selinux/config
  8.     then this,
  9.     Code:
  10.     setenforce 0
  11.     and then this,
  12.     Code:
  13.     service iptables stop
  14.     and finally this.
  15.     Code:
  16.     chkconfig iptables off
  17.     Install EPEL Repository:
  18.     If you are using centos 5, Then use these commands.
  19.     Code:
  20.     wget http://dl.fedoraproj...-5-4.noarch.rpm
  21.     Code:
  22.     rpm -Uvh epel-release-5-4.noarch.rpm
  23.     Code:
  24.     rm -f epel-release-5-4.noarch.rpm
  25.     Code:
  26.     sed -i "s/gpgcheck=./gpgcheck=0/g" /etc/yum.conf
  27.     ^^(Disable the gpg key check is only needed at CentOS 5)
  28.  
  29.     For Centos 6, Use these commands.
  30.     Code:
  31.     wget http://dl.fedoraproj...-6-8.noarch.rpm
  32.     Code:
  33.     rpm -Uvh epel-release-6-8.noarch.rpm
  34.     Code:
  35.     rm -f epel-release-6-8.noarch.rpm
  36.     Download ogp_panel-2756-1.noarch.rpm:
  37.     Code:
  38.     wget http://master.dl.sou...56-1.noarch.rpm
  39.     Install the package and dependencies:
  40.     Code:
  41.     yum -y install ogp_panel-2756-1.noarch.rpm
  42.     Then start both services, httpd and mysqld, and add them to the system startup:
  43.     Code:
  44.     service httpd restart
  45.     Code:
  46.     chkconfig --levels 235 httpd on
  47.     Code:
  48.     service mysqld restart
  49.     Code:
  50.     chkconfig --levels 235 mysqld on
  51.     Now, Setup Mysql:
  52.     Code:
  53.     mysql_secure_installation
  54.     Now,Open your web browser and load phpmyadmin :
  55.     Code:
  56.     http://[Your VPS IP]/phpmyadmin
  57.     Once you loged in to PHPMyAdmin with your mysql's root login, click on privilegies and create an user and a database, and give privilegies on this database to the created user.
  58.    Now open the main page for your VPS server:
  59.    Code:
  60.    http://[Your server IP]/
  61.  
  62.    Complete the installation process by using the user and database created on PHPMyAdmin, the host for MySQL is "localhost".
  63.    Once your panel has been installed successfully, for security reasons, you must remove the installation script:
  64.    Code:
  65.    rm -f /var/www/html/install.php
  66.  
  67. Good luck friends!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement