Show Posts

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.


Messages - Gogo

Pages: 1 ... 4 5 [6] 7 8
76
I can build it / Re: OpenVZ with CWP
« on: October 26, 2017, 06:25:01 PM »
Unknown host can be problem with resolver, but also it can be related to something else with network. :/

What do you get by executing this?
Code: [Select]
cat /etc/sysconfig/network-scripts/ifcfg-venet0
Code: [Select]
cat /etc/sysconfig/network-scripts/ifcfg-venet0:0

77
I can build it / Re: OpenVZ with CWP
« on: October 26, 2017, 02:42:48 PM »
You probably found this, if not try it. That was the only thing i found about 1006. If I understand that on github it is firewall related, like service exists on that port but it is unreachable.
GitHub - Server disconnected (code: 1006)

Code: [Select]
iptables -I INPUT -p tcp --dport 6080 -j ACCEPT; iptables -I OUTPUT -p tcp --dport 6080 -j ACCEPT; service iptables save
Did you get any more specific output from
Code: [Select]
websockify -D --web=/usr/share/novnc/ --cert=/etc/pki/tls/certs/novnc.pem 6080 $ipaddr:$inportAnd did you check these 2 vars $ipaddr and $inport if they returns valid values?

78
I can build it / Re: OpenVZ with CWP
« on: October 25, 2017, 09:14:06 PM »
What's the problem with noVNC?

79
New Modules / Re: How to add custom built module to left menu?
« on: October 24, 2017, 03:29:28 PM »
Much easier and faster way to add custom menu to the left mainnav using jQuery.
Just paste that js code in 3rdparty.php and it will be activated once whole page is completely loaded.

Example 1 (with submenus, number of sub menus as many as you want):
Code: (javascript) [Select]
<script type="text/javascript">
$(document).ready(function() {
var newButtons = ''
+' <li>'
+' <a href="#" class="hasUl"><span aria-hidden="true" class="icon16 icomoon-icon-question"></span>Custom Menu<span class="hasDrop icon16 icomoon-icon-arrow-down-2"></span></a>'
+' <ul class="sub">'
+' <li><a href="#1"><span class="icon16 icomoon-icon-arrow-right-3"></span>Sub 1</a></li>'
+' <li><a href="#2"><span class="icon16 icomoon-icon-arrow-right-3"></span>Sub 2</a></li>'
+' <li><a href="#3"><span class="icon16 icomoon-icon-arrow-right-3"></span>Sub 3</a></li>'
+' </ul>'
+'</li>';
$(".mainnav > ul").append(newButtons);
});
</script>

Example 2 (without submenus, direct link):
Code: (javascript) [Select]
<script type="text/javascript">
$(document).ready(function() {
var newButtons = ''
+'<li><a href="#your_link_here"><span aria-hidden="true" class="icon16 icomoon-icon-question"></span>Custom Menu 2</a></li>'
+'<li><a href="#your_link_here"><span aria-hidden="true" class="icon16 icomoon-icon-question"></span>Custom Menu 3</a></li>'
+'<li><a href="#your_link_here"><span aria-hidden="true" class="icon16 icomoon-icon-question"></span>Custom Menu 4</a></li>'
;
$(".mainnav > ul").append(newButtons);
});
</script>

80
I can build it / Re: OpenVZ with CWP
« on: October 24, 2017, 02:10:16 PM »
First I want to say nice job done here mate.

And second I notice in your first post here that you are reading .my.cnf file directly but you don't have to do that.
You probably know that, but I just want to tip you an a much faster way to do that.

Got some strange problem on the admin panel:
Code: [Select]
$root_file = "/root/.my.cnf"; -> From which file to get mysql password

Just use this vars from CWP itself
Code: [Select]
$db_host , $db_user , $db_pass , $db_name
But if you still want to read cnf file you can use parse_ini_file() function instead of explode and bypass problems with line breaks and spaces that can happen while exploding lines from files:
Code: [Select]
$dbFile = parse_ini_file('/root/.my.cnf');
$sql = new mysqli('localhost', $dbFile['user'], $dbFile['password'], 'root_cwp');

Just a small tip. :) Keep going mate.

81
Addons / Re: Team Speak 3 - Manager
« on: October 22, 2017, 07:08:16 PM »

82
Addons / Re: How to use TeamSpeak server
« on: October 22, 2017, 04:47:39 AM »
I can't edit my old post. I'll create basic Teamspeak manager module for multiple servers (virtual servers).
Coming soon, stay tuned.

83
Addons / Re: How to use TeamSpeak server
« on: October 22, 2017, 12:13:50 AM »
I don't think they gonna do that because it's just a plugin/addon, it's not important for CWP itself.

84
Addons / Re: How to use TeamSpeak server
« on: October 19, 2017, 01:07:19 AM »
Use YaTQA, it's easier to use it then telnet.
http://yat.qa/

85
Simply create subdomain on that main hosting hosting and as IP (A record) set your cwp's ip address, then create account on cwp and as domain enter subdomain you've created on your main hosting.
If you have CPanel use one of zone editor modules to create subdomain that can be manually re/directed to different ip address.
It is important that the domain/subdomain is re/directed to cwp's ip address, then you can do what ever you want on cwp with it.

That should work.

86
CentOS 6 Problems / Re: CentOS6 Upgrade
« on: April 07, 2017, 01:34:56 AM »
After running CWP Upgrade script I got this error:
Code: [Select]
Starting cwpsrv: cwpsrv: [emerg] SL_CTX_use_PrivateKey_file("/etc/pki/tls/private/hostname.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) [FAILED]

87
Installation / 502
« on: February 09, 2017, 07:50:42 PM »
Error 502 on cwp url, doesn't work even after server restart.

All other pages works except CWP.

88
PHP / Re: setup php to run in chroot/jail
« on: January 30, 2017, 01:03:57 PM »
Login as root to CWP and select FTP Management under the File Management category that should fix choot problem. Just open that and thats it, nothing else to do, it should automatically fix problem.

89
SSL / Re: Error Restarting cwpsrv Service for Servername SSL
« on: January 23, 2017, 06:46:06 PM »
This is cwp public directory: /usr/local/cwpsrv/htdocs/admin

90
MySQL / Re: 413 Request Entity Too Large by phpmyadmin
« on: January 22, 2017, 03:04:54 PM »
Try to use mysql dumpers to import/export large databases and any kind of large entities. eg. mysqldumper.net
Or if you are familiar with shell you can simply use
Code: [Select]
mysql -uUSER -pPASSWORD database_name < file_name.sql
I had same problem but I didn't even try to find solution to fix that because I used shell cmd to import fajl, it's easier than searching for a solution.

Pages: 1 ... 4 5 [6] 7 8