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.


Topics - Syxguns

Pages: [1]
1
CentOS 7 Problems / Problems setting up GSuite mail
« on: January 28, 2020, 01:07:15 PM »
Hello all,
I was trying to follow these directions:  Set up MX records for G Suite Gmail and hit a brick wall.

All MX records are recorded and I went to mail routing.  When I select the "Domain" I'm greeted with the following:

Quote
Warning: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_mysql.php on line 0

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_mysql.php on line 0

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_mysql.php on line 0

func_mysql.php reads:
Code: [Select]
<?php //00423
// Copyright CentOS WebPanel, Decoding is FORBIDDEN
// All Rights Reserved. www.centos-webpanel.com
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('No Loader is installed, please try to run this command or contact support: sh /scripts/update_ioncube');exit(199);
?>

The remainder of the file looks like encoded text.  Now if I select "Mail Exchanger" the error goes away, but I don't have an option to input anything.

I have the Pro Version of CWP: 0.9.8.932
Apache version: Apache/2.4.39
PHP version: 7.3.13 PHP-FPM is forced
MySQL version: 10.1.43-MariaDB
FTP version: 1.0.47
SSH Port: 2022
MySql Port: 3306
Web Servers: apache-only

I am running apache only because I had so many issues getting Nginx and Varnish to work for me.  I'm not a terminal kind of guy although I'm learning.  I am using PHP-FPM and I haven't noticed any speed issues as of yet.  Any help would be appreciated in this department.  Google, is just not cutting it for me.

Thank you!

2
CentOS 7 Problems / 502 User Error
« on: January 06, 2020, 01:01:27 AM »
Hello all,
I'm hoping you can help me solve my issue.  I have several so I'll number them.

1) Trying to set up DNS but was having a number of issues.
  • Register my DNS name with the owner of my domain name.  Cloudflare is the owner and to register a NS through them you have to upgrade to a business account at a cost of $200 a month!  I don't have that kind of cash right now.
  • So I decided to go with using the ns1.centos-webpanel.com with the DNS manager.  I made all changes but then for some reason I got an error on
Code: [Select]
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
and the error code is as follows (Note this is just the end of the long log): 
Code: [Select]
Jan 05 18:25:47 server-01.idwph.com nm-dispatcher[27691]: req:1 'dhcp6-change' [enp3s6]: new request (4 scripts)
Jan 05 18:25:47 server-01.idwph.com nm-dispatcher[27691]: req:1 'dhcp6-change' [enp3s6]: start running ordered scripts...
Jan 05 18:25:52 server-01.idwph.com kernel: Firewall: *UDP_OUT Blocked* IN= OUT=virbr0 SRC=192.168.122.1 DST=224.0.0.251 LEN=67 TOS=0x00 PREC=0x00 TTL=255 ID=17218 DF PROTO=UDP SPT=5353 DPT=5353 LEN=47 UID=70 GID=70
Jan 05 18:25:52 server-01.idwph.com kernel: Firewall: *UDP_OUT Blocked* IN= OUT=enp3s6 SRC=104.11.115.249 DST=224.0.0.251 LEN=67 TOS=0x00 PREC=0x00 TTL=255 ID=41381 DF PROTO=UDP SPT=5353 DPT=5353 LEN=47 UID=70 GID=70
Jan 05 18:26:01 server-01.idwph.com kernel: Firewall: *TCP_IN Blocked* IN=enp3s6 OUT= MAC=00:20:78:01:b6:ed:18:9c:27:16:e4:f0:08:00 SRC=92.118.37.83 DST=104.11.115.249 LEN=40 TOS=0x00 PREC=0x00 TTL=237 ID=33960 PROTO=TCP SPT=55135 DPT=19682 WINDOW=1024 RES=0x00 SYN URGP=0
Jan 05 18:26:51 server-01.idwph.com dhclient[1132]: XMT: Solicit on enp3s6, interval 119320ms.
Jan 05 18:26:51 server-01.idwph.com kernel: Firewall: *UDP6OUT Blocked* IN= OUT=enp3s6 SRC=fe80:0000:0000:0000:7f0b:eb67:4339:8737 DST=ff02:0000:0000:0000:0000:0000:0001:0002 LEN=136 TC=0 HOPLIMIT=1 FLOWLBL=0 PROTO=UDP SPT=546 DPT=547 LEN=96 UID=0 GID=0
Jan 05 18:26:51 server-01.idwph.com dhclient[1132]: send_packet6: Operation not permitted
Jan 05 18:26:51 server-01.idwph.com dhclient[1132]: dhc6: send_packet6() sent -1 of 88 bytes
Jan 05 18:27:21 server-01.idwph.com clamd[1927]: SelfCheck: Database status OK.
Jan 05 18:27:21 server-01.idwph.com clamd[1927]: SelfCheck: Database status OK.
Jan 05 18:27:52 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=01:00:5e:00:00:fb:3c:37:86:1c:a1:1f:08:00 SRC=192.168.1.130 DST=224.0.0.251 LEN=91 TOS=0x00 PREC=0x00 TTL=1 ID=61685 DF PROTO=UDP SPT=5353 DPT=5353 LEN=71
Jan 05 18:27:52 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=01:00:5e:00:00:fb:3c:37:86:1c:a1:1f:08:00 SRC=192.168.1.128 DST=224.0.0.251 LEN=91 TOS=0x00 PREC=0x00 TTL=1 ID=47581 DF PROTO=UDP SPT=5353 DPT=5353 LEN=71
Jan 05 18:27:52 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=01:00:5e:00:00:fb:3c:37:86:1c:a1:1f:08:00 SRC=192.168.1.130 DST=224.0.0.251 LEN=91 TOS=0x00 PREC=0x00 TTL=1 ID=61686 DF PROTO=UDP SPT=5353 DPT=5353 LEN=71
Jan 05 18:27:52 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=01:00:5e:00:00:fb:3c:37:86:1c:a1:1f:08:00 SRC=192.168.1.128 DST=224.0.0.251 LEN=91 TOS=0x00 PREC=0x00 TTL=1 ID=47582 DF PROTO=UDP SPT=5353 DPT=5353 LEN=71
Jan 05 18:27:52 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=01:00:5e:00:00:fb:3c:37:86:1c:a1:1f:08:00 SRC=192.168.1.128 DST=224.0.0.251 LEN=91 TOS=0x00 PREC=0x00 TTL=1 ID=47583 DF PROTO=UDP SPT=5353 DPT=5353 LEN=71
Jan 05 18:28:16 server-01.idwph.com kernel: Firewall: *UDP_IN Blocked* IN=enp3s6 OUT= MAC=00:20:78:01:b6:ed:18:9c:27:16:e4:f0:08:00 SRC=88.202.190.155 DST=104.11.115.249 LEN=40 TOS=0x00 PREC=0x00 TTL=238 ID=54321 PROTO=UDP SPT=123 DPT=123 LEN=20
×
    [/li]
  • So I decided to just use Cloudflare for it all, and left the DNS blank
  • So my BIND DNS server has failed, and I'm not sure if I need it if I'm going to use CF.  Please tell me if I'm wrong.

Edit: I created a new account and I have access to the user panel?  So I will remove the old user and start from scratch.

2) I logged into my user account and get a 502 error. Now how did making changes to the DNS cause this, I'm not sure?  Now I'm NOT a Linux expert by any means, in fact far from it.  I need my own server for hosting multiple sub-domains without running out of space.  Plus after some time and I become more comfortable I may expand with a second server, most likely a cloud server, for my own hosting platform.  Now what I have tried:
  • sh /scripts/restart_cwpsrv with a response that no directory exists.  I double-checked the scripts directory and that is 100% accurate.
  • systemctl status cwp-phpfpm now errors everything operational as it should be.
  • I have access to the admin login and did a cwp restart.
  • I then rebooted the server, just to see if some services would come back up, to no avail it did not work.

So currently I have possibly a fresh install os CentOS 7 and CentOS 7 Web Panel, which I really do not want to do.  I am hoping that someone here can walk me through some possibilities for me both gaining access to the user panel, as well as any tips I may need to follow to have my server host sub-domains using CF.

Thank you,
Syxguns

Pages: [1]