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.
61
Apache / Re: 500 Internel Server Errow For File Upload
« on: October 15, 2017, 02:47:35 AM »
Did you tried to go to User Accounts -> Fix Permissions? A common mistake is that people use root to upload/move files to user directories and then they get 500 error. Try with Fix Permissions and if it`s not helping let me know.
62
DNS / Re: BIND DNS Server problem
« on: October 14, 2017, 05:00:58 AM »
I will rewrite your named.conf, so just copy from here, delete everything in your named.conf and paste this:
Ok. You need to replace "domain, domain2, domain3, domain4, domain5 and service" with real domains like "jeniha.com" or something else which is real. Also you need to rename all the "file "/var/named/domain.db";" to be "file "/var/named/jeniha.com.db";" for example and then to create a proper "jeniha.com.db". I will give you an example "jeniha.com.db" and you will replace "jeniha.com" with your domain.
Code: [Select]
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
allow-transfer { any; };
recursion no;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
// zone domain4
zone "domain4" IN {
type master;
file "/var/named/domain4.db";};
// zone_end domain4
// zone domain4
zone "domain4" IN {
type master;
file "/var/named/domain4.db";};
// zone_end domain4
// zone domain
zone "domain" IN {
type master;
file "/var/named/domain.db";};
// zone_end domain
// zone domain5
zone "domain5" IN {
type master;
file "/var/named/domain5.db";};
// zone_end domain5
// zone domain3
zone "domain3" IN {
type master;
file "/var/named/domain3.db";};
// zone_end domain3
//zone "ns.nsbox.com" IN {type master;file "/var/named/ns.nsbox.com.db";};
//zone "ns12.nsbox.com" IN {type master;file "/var/named/ns12.nsbox.com.db";};
// zone service
zone "service" IN {
type master;
file "/var/named/service.db";};
// zone_end service
// zone domain2
zone "domain2" IN {
type master;
file "/var/named/domain2.db";};
// zone_end domain2
Ok. You need to replace "domain, domain2, domain3, domain4, domain5 and service" with real domains like "jeniha.com" or something else which is real. Also you need to rename all the "file "/var/named/domain.db";" to be "file "/var/named/jeniha.com.db";" for example and then to create a proper "jeniha.com.db". I will give you an example "jeniha.com.db" and you will replace "jeniha.com" with your domain.
Code: [Select]
$TTL 14400
jeniha.com. 86400 IN SOA ns1.jeniha.com. root.jeniha.com. (
2017101401 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
;; NS Records
jeniha.com. IN NS ns1.jeniha.com.
jeniha.com. IN NS ns2.jeniha.com.
jeniha.com. IN NS ns3.jeniha.com.
jeniha.com. IN NS ns4.jeniha.com.
jeniha.com. IN NS ns5.jeniha.com.
;; A Records
jeniha.com. IN A 77.236.161.244
localhost.jeniha.com. IN A 127.0.0.1
;; AAAA Records
jeniha.com. IN AAAA 2001:470:1d1b:e5::11
;; MX Records
jeniha.com. IN MX 0 jeniha.com.
;; CNAME Records
www IN CNAME jeniha.com.
mail IN CNAME jeniha.com.
ftp IN CNAME jeniha.com.
irc IN CNAME jeniha.com.
Leaving "domain, domain2, domain3, domain4, domain5 and service" will not work properly for outside. If it`s for LAN it will be ok. If you are not using IPv6 remove the whole ";; AAAA Records and jeniha.com. IN AAAA 2001:470:1d1b:e5::11". Try like this and tell me what`s going on. Waiting for your reply.
63
DNS / Re: BIND DNS Server problem
« on: October 13, 2017, 03:31:27 PM »
Got root? Type "whoami" and see the output if you are not sure. Than open the file as root and show me, if you want can be on PM.
64
DNS / Re: BIND DNS Server problem
« on: October 12, 2017, 03:42:36 PM »
CentOS 6 or CentOS 7? As I see "Oct 12 12:22:01 cbox.biz bash[28142]: _default/domain/IN: bad zone". Please paste first your /etc/named.conf and later we will see the zones.
65
Installation / Re: Moved server problems
« on: October 12, 2017, 01:13:49 PM »
Go to CWP Settings -> Edit Settings and change the IP address in the "NAT Local IP:" field. Click "Save changes" and then rebuild vhosts. Should be ok. Please confirm.
66
DNS / Re: BIND DNS Server problem
« on: October 12, 2017, 01:11:16 PM »
Try to start it from CWP and paste the error from there, or systemctl status named.service or journalctl -xe
67
E-Mail / Re: Retrieve / Fetch emails from other accounts
« on: October 12, 2017, 01:09:50 PM »
Didn`t check the RoundCube options. I don`t use RC because I don`t like the UI, but I use RainLoop and I can tell you for sure that RL have the option you want.
68
CentOS 7 Problems / Re: Job for cwpsrv.service failed because a configured resource limit was exceeded.
« on: October 12, 2017, 01:08:04 PM »69
Information / Re: Error while chaning the host name
« on: October 12, 2017, 09:41:04 AM »
This is happening because you made too many queryes for SSL Certificate (it`s automatic). Limit is 5 per day. Now you have to wait 1 (one) week the cache to flush (as per official information). Try again tomorrow. If happens the same - wait 7 days and then try again.
70
CentOS 7 Problems / Re: Nameserver is unreachable.
« on: October 11, 2017, 02:12:47 PM »
ns1.mazehost.ga
NS1 still didn`t get the A record. Maybe you made a mistake with it or it still didn`t refreshed. Wait a bit more and double check your configuration.
Code: [Select]
[root@server ~]# dig A ns1.mazehost.ga +short @8.8.8.8
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.4 <<>> A ns1.mazehost.ga +short @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached
[root@server ~]#
ns2.mazehost.gaCode: [Select]
[root@server ~]# dig A ns2.mazehost.ga +short @8.8.8.8
164.132.17.197
[root@server ~]#
NS1 still didn`t get the A record. Maybe you made a mistake with it or it still didn`t refreshed. Wait a bit more and double check your configuration.
71
Apache / Re: HELP APACHE.
« on: October 11, 2017, 04:49:08 AM »
You don`t need to rebuild vhosts all the time. Just when you rebuild apache or something similar. Anyway you have a vhost template where you can edit the port. The bad side of this is that if you set port 7823 for example in the vhost template any newly added domain will go on that port. If you want every domain to be on different port, just add the domain, edit apache vhosts, change the port of that domain, save and restart apache.
72
CentOS 7 Problems / Fresh install of CWP7 and no user directory for Apache
« on: October 10, 2017, 06:10:40 PM »
I reinstalled the CentOS 7 and now I have full httpd.conf. I created 2 users - 1 for web hosting, 1 for online shop. I pointed the domains like I was doing in CWP6, did vhosts-ssl.conf, vhosts.conf, created SSL Certificates, ... All I was doing in CWP6 and there my pages was working. Now I see:
Please fast advice how to fix this.
Code: [Select]
Are you the Administrator?
You should add your website content to the directory /var/www/html/.
To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.
Which points me to this that Apache is not working correctly. I have enabled LoadModule userdir_module modules/mod_userdir.so in httpd.conf and all other necessary files for it, but /home/USER/public_html/ is not shown. It`s asking me to put the files in /var/www/html. Am I doing something wrong?Please fast advice how to fix this.
73
CentOS 7 Problems / Re: Can`t install CentOS7
« on: October 10, 2017, 05:25:20 PM »
The info you gave me did the job with one little note from me. Nowhere is said that if you use the Minimal install CD this will not work. I downloaded Everything DVD and like this I could install it. If someone wants to try to download Everything DVD and there to select Minimal Install.
74
CentOS 7 Problems / After clean install of CWP, Apache conf is almost empty ...
« on: October 10, 2017, 04:53:55 PM »
I figured out to install CentOS 7 on my old rig HP ProLiant DL380 G5, installed CWP and the only lines I have in Apache Configuration are:
Code: [Select]
ExtendedStatus On
Include /usr/local/apache/conf/sharedip.conf
Include /usr/local/apache/conf.d/*.conf
I will try to rebuild apache. Hope it helps, but if not I hope somebody to paste as an answer httpd.conf from Apache 2.4.27. Strange but the rebuild was fast. The config file is still 3 lines. Please share a working config.
75
New Modules / Re: WHMCS integration with CWP
« on: October 09, 2017, 10:29:31 PM »
Sorry for the missing files. I was working on them and forgot to re-upload them. I was looking for a way to fix the error when the domain is not resolved to an IP but still no success. I will re-upload the files in few minutes. You can download it now at CentOS Web Panel link.