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.
1531
Installation / Re: Install Error
« on: May 24, 2014, 03:55:42 PM »
can you send part before this error message or contact support for testing?
1532
New Modules / How to Build a new module for CentOS Web Panel (CWP)
« on: May 23, 2014, 09:20:00 AM »
How to Build a new module for CentOS Web Panel (CWP)??
It’s very easy to build new module for CentOS-WebPanel
Let’s create file named: test2.php
to open this file in CentOS-WebPanel upload it to modules folder and use this link path:
eg. http://123.123.123.123:2030/index.php?module=test2
How to add this module to CentOS-WebPanel menu?
It’s easy, go to include folder and make new file named 3rdparty.php ,in this file you add links one per line.
eg.
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
All useful modules will be added in CWP installation or additional module installation panel.
Admin panel modules location
/usr/local/cwpsrv/htdocs/resources/admin/modules
Client panel modules location
/usr/local/cwpsrv/htdocs/resources/client/modules
Example module developed by the 3rdParty
https://github.com/boxbillinggit/cwp_modules/blob/master/php_phalcon.php
It’s very easy to build new module for CentOS-WebPanel
Let’s create file named: test2.php
Code: [Select]
<?php
$cpu_info = shell_exec("cat /proc/cpuinfo");
echo "This is example module<br>";
echo "You can edit this file and make new modules based on this file<br>";
echo "Examples and functions are on our website: centos-webpanel.com<br>";
echo "<h3>CPU INFO</h3>";
echo "<pre>".$cpu_info."</pre>";
?>
to open this file in CentOS-WebPanel upload it to modules folder and use this link path:
Code: [Select]
http://SERVER_IP:2030/index.php?module=FILE_NAMEeg. http://123.123.123.123:2030/index.php?module=test2
How to add this module to CentOS-WebPanel menu?
It’s easy, go to include folder and make new file named 3rdparty.php ,in this file you add links one per line.
eg.
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Code: [Select]
<li><a href="index.php?module=test2"><span class="icon16 icomoon-icon-arrow-right-3"></span>Test2 Module</a></li>
<li><a href="index.php?module=test3"><span class="icon16 icomoon-icon-arrow-right-3"></span>Test3 Module</a></li>All useful modules will be added in CWP installation or additional module installation panel.
Admin panel modules location
/usr/local/cwpsrv/htdocs/resources/admin/modules
Client panel modules location
/usr/local/cwpsrv/htdocs/resources/client/modules
Example module developed by the 3rdParty
https://github.com/boxbillinggit/cwp_modules/blob/master/php_phalcon.php
1533
Apache / Re: php wrapper
« on: May 23, 2014, 08:56:26 AM »
why you have recompiled apache when apache already has suexec and suphp set and working, what exactly do you need to have set?
1534
CentOS-WebPanel GUI / Re: how to switch php version?
« on: May 20, 2014, 02:47:02 PM »
yes it's working it will be in 1-2 days with new update released.
1535
Varnish / How to install varnish cache on centos [CWP]
« on: May 18, 2014, 11:30:07 PM »
This is very simple tutorial how to use and install Varnish Cache Server on CentOS using CWP panel.
1. In your CWP menu find Varnish
2. Click on install
3. Setup Config
Default config to use/enable Varnish Cache Server is:
How to check if Varnish Cache Server Works?
- Using CURL command "curl -i SERVER-IP" you will get headers and on beginning of the output try finding "X-Varnish"
- Using this website "http://www.whatismyip.com/server-headers-check/" in Response find "X-Varnish"
Default config to disable Varnish Cache and use Apache only is:
1. In your CWP menu find Varnish
2. Click on install
3. Setup Config
Default config to use/enable Varnish Cache Server is:
Code: [Select]
Apache IP: (Your Shared IP, or 127.0.0.1)
Apache port: 82
Varnish IP: (default all, if you need to change than edit config files manually)
Varnish Port: 80If you are getting default CWP page on your domain index then you can try setting your shared ip to 127.0.0.1How to check if Varnish Cache Server Works?
- Using CURL command "curl -i SERVER-IP" you will get headers and on beginning of the output try finding "X-Varnish"
- Using this website "http://www.whatismyip.com/server-headers-check/" in Response find "X-Varnish"
Default config to disable Varnish Cache and use Apache only is:
Code: [Select]
Apache IP: (Your Shared IP)
Apache port: 80
Varnish IP: (default all, if you need to change than edit config files manually)
Varnish Port: 6081
1536
DNS / Re: securing DNS server BIND (open DNS resolver)
« on: May 18, 2014, 09:34:20 PM »
configure file location is: /etc/named.conf
1537
Installation / Re: How do I create a new domain account in CentOS Web Panel ?
« on: May 18, 2014, 01:44:15 PM »
you need to check your firewall/iptables if panel is not working as this is probably not the panel issue!
to delete iptables rules try this command:
to delete iptables rules try this command:
Code: [Select]
iptables -F
1538
Installation / Re: How to install CentOS Web Panel?
« on: May 17, 2014, 08:22:51 PM »
do not forget to flush iptables rules if you have them set, like in this case
you can use this command:
you can use this command:
Code: [Select]
iptables -F
1539
Installation / Re: Teamspeak 3 Install Problem
« on: May 17, 2014, 07:42:25 PM »
hmmm...looks like something is missing...you will need to try start ts manually to check this issue.
1540
Installation / Re: Teamspeak 3 Install Problem
« on: May 17, 2014, 07:34:33 PM »
what version of CWP and CentOS (el and arch)you are using?
1541
Installation / Re: How to install CentOS Web Panel?
« on: May 17, 2014, 07:32:06 PM »
you can contact support, include your login details for the check
http://centos-webpanel.com/contact
http://centos-webpanel.com/contact
1542
MySQL / Warning: mysql_connect(): No such file or directory
« on: May 16, 2014, 07:25:58 PM »
If you get this error then you will need to find your mysql.sock location, try searching your mysql.sock location with this command:
default location fix (if location is: /var/lib/mysql/mysql.sock):
default location fix (if location is: /var/mysql/mysql.sock):
Code: [Select]
find / -name mysql.sockdefault location fix (if location is: /var/lib/mysql/mysql.sock):
Code: [Select]
/bin/ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sockdefault location fix (if location is: /var/mysql/mysql.sock):
Code: [Select]
ln -s /var/mysql/mysql.sock /tmp/mysql.sock
1543
DNS / Re: how i install dns on vps
« on: May 14, 2014, 03:28:10 PM »
http://forum.centos-webpanel.com/dns/how-to-setup-dns-%28bind%29-on-server/
you will need to point your subdomains which you want to use for nameservers on your server ips and register this nameserver with godaddy.
you will need to point your subdomains which you want to use for nameservers on your server ips and register this nameserver with godaddy.
1544
Addons / Re: Team Speak 3 - Manager
« on: May 14, 2014, 03:25:06 PM »
you need to have centos 6 64bit
1545
Installation / Re: Lost access to CWP
« on: May 05, 2014, 09:19:48 PM »
try service cwp restart
