This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
136
New Modules / Re: Documentation for development
« on: July 07, 2017, 05:03:12 AM »
thefantas if you secure good your $_GET/$_POST vars to skip the MySQL Inject you should be ok. One of the ideas of ionCube is this. You encrypt your source code, so nobody see it and than he can`t find errors/holes for hacking. This is how I see it.
137
I can build it / Re: OpenVZ with CWP
« on: July 06, 2017, 10:31:13 PM »
Some pictures for Creating New Virtual Machine:
http://imgur.com/uoMR3kz
http://imgur.com/foTVzqY
http://imgur.com/CBbTclv
http://imgur.com/QhFN7ki
http://imgur.com/bOrkRC9
May be I will remove the option for the Root Password and the Root Password will be the same as the User Password. What do you think? Is it going to be better? To login to CWP and VM with the same password?
http://imgur.com/uoMR3kz
http://imgur.com/foTVzqY
http://imgur.com/CBbTclv
http://imgur.com/QhFN7ki
http://imgur.com/bOrkRC9
May be I will remove the option for the Root Password and the Root Password will be the same as the User Password. What do you think? Is it going to be better? To login to CWP and VM with the same password?
138
I can build it / Re: OpenVZ with CWP
« on: July 06, 2017, 10:21:31 PM »
SMF allows this in the Configuration. CWP doesn`t. If there was option "Upload Your Logo" I don`t mind, but since there`s not I mind it. May be in the next release of CWP there will be an option to upload your own logo under the logo of CWP, who knows ..
139
New Modules / Re: Reseller Account
« on: July 06, 2017, 10:02:16 PM »
Did you try $_SESSION['username'] ? I will be happy if you share this with us.
141
New Modules / Re: WHMCS integration with CWP
« on: July 06, 2017, 09:52:14 PM »
I`m sorry. It was my bad. During the tests of the OpenVZ web panel I did some changes to my named.conf and I forgot to reverse them. Now it`s working. At least google says so:
Code: [Select]
[root@born2host named]# nslookup born2host.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: born2host.com
Address: 77.236.172.141
[root@born2host named]#
142
I can build it / Re: OpenVZ with CWP
« on: July 04, 2017, 08:16:27 AM »
As I`m not familiar with iptables (got xp with pf, not iptables) I would request help from administrators and users.
The situation:
As we are going to have multiple virtual machines on one host and may be 80% of them will be with local IP we need to set port forwarding for every single VM so the user can log directly to his VM.
Ex:
SERVER_PUBLIC_IP:PORT -> SERVER_LOCAL_IP:PORT
So if the user try to connect to SERVER_PUBLIC_IP on PORT to be redirected to SERVER_LOCAL_IP on PORT.
I don`t know how is in other countries, but in my country to get an A, B, C class network of IP addresses costs thousands. Even if you have a C class network of IP addresses you will need to forward ports for SSH, HTTP, POSTFIX, ...
So again my question is:
How to setup iptables to forward SERVER_PUBLIC_IP:PORT for SSH to SERVER_LOCAL_IP:PORT
How to setup iptables to forward 88.254.168.171:2951 for SSH to 192.168.1.105:2951
I beg you for a quick response. Thanks in advance.
The situation:
As we are going to have multiple virtual machines on one host and may be 80% of them will be with local IP we need to set port forwarding for every single VM so the user can log directly to his VM.
Ex:
SERVER_PUBLIC_IP:PORT -> SERVER_LOCAL_IP:PORT
So if the user try to connect to SERVER_PUBLIC_IP on PORT to be redirected to SERVER_LOCAL_IP on PORT.
I don`t know how is in other countries, but in my country to get an A, B, C class network of IP addresses costs thousands. Even if you have a C class network of IP addresses you will need to forward ports for SSH, HTTP, POSTFIX, ...
So again my question is:
How to setup iptables to forward SERVER_PUBLIC_IP:PORT for SSH to SERVER_LOCAL_IP:PORT
How to setup iptables to forward 88.254.168.171:2951 for SSH to 192.168.1.105:2951
I beg you for a quick response. Thanks in advance.
143
I can build it / Re: OpenVZ with CWP
« on: July 03, 2017, 10:18:21 PM »
Hello again guys,
I just wanted to prepare you mentally that you will need around 8-9 GB free space to download all the templates for the VMs. Depending on your download speed it can take from 30min to a lot of time(if you have such a sh*t internet, don`t play with hosting and VMs ). I`ve did a very big research on google to find as much as possible templates. Also I checked all free web panels who offer VPS option and I want CWP to be able to offer the best! By the way the admin panel is 95% ready! Just to add the IP Pool option to it and the Downloader for the templates which is 1h job. After it comes the testing and the start of the client panel. See you soon!
I just wanted to prepare you mentally that you will need around 8-9 GB free space to download all the templates for the VMs. Depending on your download speed it can take from 30min to a lot of time(if you have such a sh*t internet, don`t play with hosting and VMs ). I`ve did a very big research on google to find as much as possible templates. Also I checked all free web panels who offer VPS option and I want CWP to be able to offer the best! By the way the admin panel is 95% ready! Just to add the IP Pool option to it and the Downloader for the templates which is 1h job. After it comes the testing and the start of the client panel. See you soon!
144
New Modules / Re: WHMCS integration with CWP
« on: July 02, 2017, 07:44:45 PM »
Sorry, my bad.
Download this tar archive: CentOSWebPanel
If again is not working let me know. But I extracted it and the file is inside.
Download this tar archive: CentOSWebPanel
If again is not working let me know. But I extracted it and the file is inside.
145
I can build it / Re: OpenVZ with CWP
« on: July 01, 2017, 08:20:35 AM »
After thinking few hours I decided to use the CWP Packages info for the creation of the VM. Just the disk quota from them and the bandwidth. So now I will rewrite the "Create New Virtual Machine" and you don`t have to include every time disk space when creating new.
146
I can build it / Re: OpenVZ with CWP
« on: July 01, 2017, 04:42:37 AM »
Hello again people,
http://imgur.com/a/RkZao <- Image
This is kind of sample of the form for creating new VM. One more thing is gonna go inside 100% just wondering how to make it. Dropdown menu to give you to choose from all CWP Packages or you will need to create VPS* packages and to show only them in a dropdown menu. Also we will need to create a new user in CWP, so the extra things became two ... for now If I spend here 5 more minutes the things will become so much that nothing will be left for version 0.2/2.0
See you after few lines of code
http://imgur.com/a/RkZao <- Image
This is kind of sample of the form for creating new VM. One more thing is gonna go inside 100% just wondering how to make it. Dropdown menu to give you to choose from all CWP Packages or you will need to create VPS* packages and to show only them in a dropdown menu. Also we will need to create a new user in CWP, so the extra things became two ... for now If I spend here 5 more minutes the things will become so much that nothing will be left for version 0.2/2.0
See you after few lines of code
147
New Modules / Re: [module] Wordpress Installer / Uninstaller
« on: June 30, 2017, 08:21:02 PM »
Sorry, I didn`t had time to check it earlier, but now I check it and it works perfect. Good job!
148
New Modules / Re: [module] Wordpress Installer / Uninstaller
« on: June 30, 2017, 06:07:11 AM »
It`s working. Just it`s not showing the instalations.
Error showing the installations <- Image
Wordpress Blog is there and working <- Image
It`s not a big problem. Just mention it to know.
Error showing the installations <- Image
Wordpress Blog is there and working <- Image
It`s not a big problem. Just mention it to know.
149
Installation / Re: CWP account API error in creation a new account in WHMCS
« on: June 30, 2017, 05:58:45 AM »
Please check this -> page <- . I hope it will help you.
150
New Modules / WHMCS integration with CWP
« on: June 29, 2017, 08:03:02 PM »
Hello guys,
After having so much problems with integration of WHMCS and CWP I rewrote the WHMCS module almost from zero. Ok, mine also has errors which I will fix and then I will provide it encoded free of charge with all the improvements. For the moment I will provide you a fixed copy from http://wiki.centos-webpanel.com/cwp-account-api which was the original. In the original one it`s supposed that you have option in WHMCS to register/transfer domain. In the fixed version you don`t need it. If you don`t have option for register/transfer domain then the user domain will become automatic user.your-server-domain-name.tld(ex. johndoe.server.com). If you have the option for registering/transfering domains then the domain will be what the user register/transfer (ex. my-domain-with-you.com).
How to install the script:
1. Download -> here <- the script in your /path/to/whmcs/modules/servers/ (ex. /home/hosting/public_html/modules/servers/)
2. Unzip it (unzip centoswebpanel.zip)
3. Login to your WHMCS Admin panel
4. Go to Setup -> Product/Services -> Servers
5. Press 'Create New Group' and name it how you want
6. Press 'Add New Server'
7. Scroll down to 'Server Details'
8. On 'Type' choose 'Centoswebpanel'
9. Open in your browser -> Random.org <- and choose a random generated password
10. Paste this password in the 'Access Hash' field and press 'Save Changes'
11. Paste this password in /usr/local/cwp/.conf/api_key.conf
12. Open /usr/local/cwp/.conf/api_allowed.conf with your favourite editor and enter inside the IP address of the WHMCS (if the WHMCS and CWP are on the same server than enter 127.0.0.1)
13. Go to Setup -> Product/Services -> Product/Services
14. Press 'Create a New Product'
15. Choose and write name of your product
16. Go to 'Module Settings' tab and choose 'Module Name: Centoswebpanel
17. In the settings shown below edit only Package Number (Package Number 1 is package with name 'default' in CWP, if you add new package it will be Package Number 2)
18. Choose 'Do not automatically setup this product' and press 'Save Changes'
Hooray! You are ready!!!
Don`t forget to fix the Pricing of the Product/Service that you offer
If you have any questions or problems please PM me or ask on root@born2host.com
The script is opensource. Tested on WHMCS 6.3.1 and 7.1.2. Have fun!
Please, if you download and use the script, leave a comment how is it working and on what version of WHMCS you tested it. It will be useful for me to fix errors and for other users to know on which versions of WHMCS is tested and working. Thank you.
After having so much problems with integration of WHMCS and CWP I rewrote the WHMCS module almost from zero. Ok, mine also has errors which I will fix and then I will provide it encoded free of charge with all the improvements. For the moment I will provide you a fixed copy from http://wiki.centos-webpanel.com/cwp-account-api which was the original. In the original one it`s supposed that you have option in WHMCS to register/transfer domain. In the fixed version you don`t need it. If you don`t have option for register/transfer domain then the user domain will become automatic user.your-server-domain-name.tld(ex. johndoe.server.com). If you have the option for registering/transfering domains then the domain will be what the user register/transfer (ex. my-domain-with-you.com).
How to install the script:
1. Download -> here <- the script in your /path/to/whmcs/modules/servers/ (ex. /home/hosting/public_html/modules/servers/)
2. Unzip it (unzip centoswebpanel.zip)
3. Login to your WHMCS Admin panel
4. Go to Setup -> Product/Services -> Servers
5. Press 'Create New Group' and name it how you want
6. Press 'Add New Server'
7. Scroll down to 'Server Details'
8. On 'Type' choose 'Centoswebpanel'
9. Open in your browser -> Random.org <- and choose a random generated password
10. Paste this password in the 'Access Hash' field and press 'Save Changes'
11. Paste this password in /usr/local/cwp/.conf/api_key.conf
12. Open /usr/local/cwp/.conf/api_allowed.conf with your favourite editor and enter inside the IP address of the WHMCS (if the WHMCS and CWP are on the same server than enter 127.0.0.1)
13. Go to Setup -> Product/Services -> Product/Services
14. Press 'Create a New Product'
15. Choose and write name of your product
16. Go to 'Module Settings' tab and choose 'Module Name: Centoswebpanel
17. In the settings shown below edit only Package Number (Package Number 1 is package with name 'default' in CWP, if you add new package it will be Package Number 2)
18. Choose 'Do not automatically setup this product' and press 'Save Changes'
Hooray! You are ready!!!
Don`t forget to fix the Pricing of the Product/Service that you offer
If you have any questions or problems please PM me or ask on root@born2host.com
The script is opensource. Tested on WHMCS 6.3.1 and 7.1.2. Have fun!
Please, if you download and use the script, leave a comment how is it working and on what version of WHMCS you tested it. It will be useful for me to fix errors and for other users to know on which versions of WHMCS is tested and working. Thank you.