Pages

Tuesday, July 16, 2019

How to Build Your Own Basic OCS Panel (Debian 9) Part 2

OCS Panel like what we had discussed on the previous post is an essential tool in managing your vpn servers. It provides easy to use button to simplify the task. The issue that arose on the previous tutorial was the OS availabilty and compatibility, as other VPS (Virtual Private Server) providers phased out Debian 8 Operating System. If you'd missed the privious article you may click here to check it out. Thanks to our fellow PHC master Sir Bon-chan in remastering the script for Debian 8 and making it compatible on Debian 9 Operating System. Credits goes as well with M4rshall, daybreakers, shigeno and vps provider hostingmurah. So lets begin.



What are the things needed?

1. VPS Debian 9 x 64 (Stretch x 2) Server and Panel.
2. Putty and/or Bitvise
3. A cup of Coffee


Procedure:
1. Run your SSH Client (Putty or Bitvise), input your login info and run the below script
wget -q https://www.dropbox.com/s/40m4jelxocb0b1a/debianocs-panel?dl=1 && chmod +x debianocs-panel?dl=1 && ./debianocs-panel?dl=1



2. Wait an until onscreen instruction flashes on the screen. Open up browser and type in your VPS ip to launch Database installation. Input your credentials as seen on the terminal screen.




3. Once installation is successful, you will see similar screen below.



4. Login using your admin username and pass to go through the panel.



5. The next thing to do to make it fully functional is to add our servers. 

Server Setup:

6. Go ahead and get another Debian 9 VPS and run below script to set it up.

wget -q http://bon-chan.co.nf/DebianVPS-Installer && chmod +x DebianVPS-Installer && ./DebianVPS-Installer

7. Once done you may now integrate the server to the panel. Input the necessary information and try creating an account.



You may want to refer to the video below for visual tutorial. Credits to sir Yham.



Reminders and Troubleshooting:

XML: Parser Module is not Installed FIX:
Debian/Ubuntu: apt-get install libxml-parser-perl -y -f

SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' FIX:
sudo mysql -u root -e "use mysql;update user set plugin='' where User='root';flush privileges;"

sudo command not found error FIX:
apt-get install sudo -y

Note sa mga Gcloud/AWS/Cloudsigma Users:

sudo su - first bago mag run ng script

Recomendations:

Fresh Debian 9 VPS
Must be with root access or superuser permission(run sudo su - to access root)
Open Firewall Port 80

Minimum 512MB RAM, 1vCPU or Shared 1vCPU

Please stay tune for the next post.


26 comments:

  1. How to fixed this errot
    Internal Server Error

    Connect error: Connection refused (111)

    ReplyDelete
    Replies
    1. gamitin nyo po ung script sa pagsetup ng server

      Delete
  2. bakit po may download tab nsa last pic at iba kesa sa nsa st

    ReplyDelete
  3. Anonymous18.7.19

    Phc ba galing to?

    ReplyDelete
    Replies
    1. stated po sa itaas along with credit to the original author.

      Delete
  4. kaya pala ang biLis maubos ng Credits.
    For Established Member lang yung info
    PUBLIC pala dito. d man lang nagsabi

    ReplyDelete
  5. Pano po adjust validity from 5 days to 30 days??

    ReplyDelete
    Replies
    1. nano /home/panel/html/controller/member/server.php

      CRTL and W, find the word: +7 Days

      15 days: +15 Days
      30 Days: +30 Days

      Delete
  6. panel and server working fine thank you

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Anonymous25.8.19

    Good day wala po bang updated link ng installer nya offline na po ang website. salamat

    ReplyDelete
  9. when i run the below command wget -q http://bon-chan.co.nf/DebianOCS-Panel && chmod +x DebianOCS-Panel && ./DebianOCS-Panel i get nothing

    ReplyDelete
  10. 502 bad gateway anong problema pag ganyan sir pag inaaccess ko panel after installatin

    ReplyDelete
  11. down na ata yung script wala 2 besis ako ng run wala na.

    ReplyDelete
  12. Anonymous15.12.19

    wget -q http://bon-chan.co.nf/DebianVPS-Installer && chmod +x DebianVPS-Installer && ./DebianVPS-Installer

    It doesn't work. File is missing

    ReplyDelete
  13. hanggang step 1 lang ako boss di ko mabuksan yung panel na run ko naman yung

    wget -q https://www.dropbox.com/s/40m4jelxocb0b1a/debianocs-panel?dl=1 && chmod +x debianocs-panel?dl=1 && ./debianocs-panel?dl=1

    ReplyDelete
  14. Gusto kong magdagdag ng pindutan ng USER LIST, para sa mga reseller

    ReplyDelete
  15. When I add new server it shows

    Internal Server Error
    PDOStatement: Field 'limitacc' doesn't have a default value

    ReplyDelete
  16. Very nice article, I suggested the following two websites similar to this article。
    科学上网
    And
    VPN台灣

    ReplyDelete
  17. if they want to charge you for future purchases, you should at least give them the time of day before letting them into your private financial life! Read more about my website: dark web links

    ReplyDelete
  18. Vpnas: How To Build Your Own Basic Ocs Panel (Debian 9) Part 2 >>>>> Download Now

    >>>>> Download Full

    Vpnas: How To Build Your Own Basic Ocs Panel (Debian 9) Part 2 >>>>> Download LINK

    >>>>> Download Now

    Vpnas: How To Build Your Own Basic Ocs Panel (Debian 9) Part 2 >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete