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 - ring_c

Pages: [1] 2 3
1
CentOS-WebPanel GUI / cron_notificate_user
« on: July 03, 2020, 04:30:36 AM »
Hello,


I didn't really know where to post this question. I hope I'm in the right forum.
Anyway, every day I'm getting a few emails with errors from cron jobs. One of them is the following:



Email subject:
Cron <root@cwp> /usr/local/cwp/php71/bin/php /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php


Email content:
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_notificate_user.php on line 0


The funny thing is that I'm not actually running php 7.1 and I can't figure out why cron/CWP are using it.
In php version switcher v2 the version used it 7.3.18.
In php selector v2 version 7.1 is not even installed. Version 7.2 is installed.
In php-fpm selector it is installed, but there are many other php version installed too.


To make a long story short - how can I get rid of these errors, and how can I make sure cron/cwp are using the latest php version installed/defined?


TIA.


2
CentOS-WebPanel Bugs / IONCUBE LOADER PHP 7.3
« on: June 08, 2020, 01:49:04 AM »
I've just compiled PHP 7.3.18 (after long time on 7.2.9). Once finished, one of my site refused to load as it was missing ioncube loader.
So I went back to the compiler and ticked the ioncube module to be installed. When finished I saw it ended with an error for 7.3:


Code: [Select]
'ioncube_loader_lin_7.1.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1.so'
'ioncube_loader_lin_7.1_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.1_ts.                                                                                                                                                             so'
'ioncube_loader_lin_7.2.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2.so'
'ioncube_loader_lin_7.2_ts.so' -> '/usr/local/ioncube/ioncube_loader_lin_7.2_ts.                                                                                                                                                             so'
'loader-wizard.php' -> '/usr/local/ioncube/loader-wizard.php'
yes: standard output: Broken pipe
yes: write error


Checking the /use/local/incube folder indeed shows that there's no ioncube_loader_lin_7.3_ts.so and ioncube_loader_lin_7.3.so files.
So I had to set this domain to 7.2 again.


How can this be fixed please?

3
E-Mail / Huge amount of emails under "new email accounts"
« on: May 22, 2020, 07:57:30 AM »
Hi there,


First of all - I'm not using CWP for email.
Thus, when I check this morning for large files on my server, I was shocked to see the following:

Code: [Select]
/var/log/messages: 892M
So I went to CWP's email panel and under Mail Explorer I've found hundreds if not thousands of email (see attached 1st screenshot). Clicking on each doesn't give much (see 2nd screenshot). Seems to me like empty emails with no details whatsoever.
A. Why is this happening?
B. What should I do with them?
C. Can I delete them and how?





TIA.

4
CentOS-WebPanel Bugs / Default page changed to index.html on all sites!
« on: November 21, 2019, 10:16:20 AM »
CWP falks, I assume you've made some kind of update that caused all my wordpres' hosted sites to show CWP's default index.html instead of using index.php to load wordpress.


I've fixed it by moving index.php before index.html in httpd.conf.


I don't really know how it was configured before, but I guess you've changed the httpd.conf with a wrong order of index pages.
BUT! I can I make sure this won't happen again in the future? Please advise what was the change you've made to the panel.


By the way, I didn't access the panel for at least a week, so it's not something I did.
I wonder if others had the same issue...

5
CentOS-WebPanel Bugs / Anacron errors in daily email
« on: October 23, 2019, 06:14:25 AM »

Are you aware of this?

Code: [Select]

######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
curl: (6) Could not resolve host: static.cdn-cwp.com; Unknown error
--2019-10-22 03:10:15--  http://static.cdn-cwp.com/files/mysql/phpMyAdmin--all-languages.zip
Resolving static.cdn-cwp.com (static.cdn-cwp.com)... failed: Name or service not known.
wget: unable to resolve host address ‘static.cdn-cwp.com’
unzip:  cannot find or open phpMyAdmin--all-languages.zip, phpMyAdmin--all-languages.zip.zip or phpMyAdmin--all-languages.zip.ZIP.
mv: cannot stat ‘phpMyAdmin--all-languages’: No such file or directory
chown: cannot access ‘pma’: No such file or directory
mv: cannot stat ‘/usr/local/cwpsrv/var/services/pma/config.sample.inc.php’: No such file or directory
tr: write error: Broken pipe
tr: write error
sed: can't read /usr/local/cwpsrv/var/services/pma/config.inc.php: No such file or directory
cat: /usr/local/cwpsrv/var/services/pma/README: No such file or directory

6

Hi,


I'm receiving an error from cron daemon (received daily by email the last since last update) as follows:

From:
(Cron Daemon)


Topic:
Cron <root@cwp> /usr/local/cwp/php71/bin/php /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_renew_all_domains.php

Message:

PHP Notice:  Undefined index: domain in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_renew_all_domains.php on line 0
PHP Notice:  Undefined variable: autoSslResult in /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_renew_all_domains.php on line 0


CWP version: 0.9.8.907


Looking into the file mentioned, it looks like this (I have no idea if this is how it should be) [I didn't include the whole encoded text as it's long]:


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);
?>

HR+cPsfvdZuTys8ng9yB7L3/WWtj2VtDsoYsrz0HNXGo5SH0kqiEuSq73QX80M6vjax1ivhaKYxE
1AXwY7c7bt6cFbrnZzyXqFLnGE7I0NvgnGe90rSuGkhBSCQhuuJoZdIzi75ZlxDmkE2zMTCK+s5a
Kket5Opq0P2HKOAZ1dFMCIql3CfE2ju7xrbjXPQze8BjFyl2kQnDsiwbxJkr1BgFd3Z/GmYM9n8S
NuGtdrBTy2gqW/vv9nuSNusLUHQLY22eivE1KswXYMwS0eI3y4S68J2g9wNAX8tPNRNx+yo39Sft
0wjWQ6+IGmTJ8LvlFVfADwVrGsOw/M9Mq6i2uaXLw1MVlcAXrdnxAbcibPL6FizV++SoAE/hJhjc
/Xhmbefja+t+OVFZbulbcYyzhQkBeeRxOCG9kAKsTqmuHWkXY1kVHYr0NLifFe5PyqqK8ZcRi0KT
ZWcToVjQLJHty3T3byxa6XJ0NNbBsiB95VPCcnmhibgrZUqQfrnznhdONsk8cYlUfI4G6QDDiNpf
t8qkSOUdKX5r59F3NLoBFvzKZ7Kk6uqec+MhlQm+pIOkfeAwGWHLPrK89IC3HUagVsgfmViqlArO
5AU18XFSyOxBSRZuzxLCNwC1IFb8ezcfYhIq3kRJdcWPqNq+UyHGes42uyXQPZQ003P+M1Y/46Xj

7
Nginx / Old version of Nginx?
« on: September 24, 2019, 02:19:06 PM »
I ran sucuri scan on one of my sites, and got a critical error about nginx version being too old (1.14.2, while it wants 1.17.3).
But I have not yum updates.


Checking the nginx website, it seems 1.14.2 is the most recent legacy version, while the mainline version is 1.17.3.
When will we get the newest nginx version?


Screenshot of Sucuri:


https://ibb.co/M6VVknQ

8
MySQL / Why do I have 6 users for each DB?
« on: September 23, 2019, 12:41:28 PM »
Hi,


I've just noticed that I have a few DBs with 6 users. I believe the common thing between them all is that they were imported from a different hosting company.
So I have something like that:

Code: [Select]
db_name [O] [C] [R] [B]      db_user1 [xx.xx.xx.xx] [P]
                                          db_user1 [localhost] [P]
                                          db_user1 [old.hosting.com] [P]
                                          db_user2 [xx.xx.xx.xx] [P]
                                          db_user2 [localhost] [P]
                                          db_user2 [old.hosting.com] [P]

Any idea if this is normal? Should I remove the users which are not localhost?

9
CentOS-WebPanel GUI / Cpanel migration stuck in the process
« on: August 29, 2019, 02:38:52 AM »

I was using today the new cpanel migration tool, now called cpanel account restore, and the process is stuck for the last hour in the db creation. This site is very small, so it can't be that it is really working on something.
Also, couldn't find any log showing any info on the process.


How can I fix this?

PS: using cwp pro 0.9.8.873


10
MySQL / PhpMyAdmin 404 error
« on: August 29, 2019, 02:32:11 AM »
I'm using cwp pro latest version (0.9.8.873) and trying to use PMA either from the admin or user panel results in 404 error.
[/size]The URL I'm being sent to is my.domain.com:2031/pma for the user panel or my.domain.com:2087/pma from the admin panel.[/color]
[/size][/color]
[/size]Is that a known bug? Is there a way to fix this?[/color]

11
PHP / How to compile PHP with support for webp in gd?
« on: June 03, 2019, 08:18:26 PM »
I'v already installed it using:
Code: [Select]
yum install libwebp-develBut how can I compile php-fpm with it?

12
CSF Firewall / UDP out port 67
« on: June 03, 2019, 05:38:57 AM »
Checking /var/log/messages, I've found the following notification about blocking UDP port 67 out.
I actually went to CSF's configuration and allowed this port and the message was gone.

After 5 minutes I thought I might have risking my system without properly checking (though sounds like my server is the one which is blocked from sending data out), so I've removed the port from CSF, but would appreciate if anyone has any idea what this might be.


Code: [Select]
Jun  3 08:11:32 cwp dhclient[3102]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0x216d4be)
Jun  3 08:11:35 cwp kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=159.69.16.218 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=12990 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jun  3 08:11:35 cwp dhclient[3102]: send_packet: Operation not permitted
Jun  3 08:11:35 cwp dhclient[3102]: dhclient.c:2697: Failed to send 300 byte long packet over fallback interface.

13
PHP / error while compiling php-fpm v5.3.3
« on: June 01, 2019, 10:58:03 PM »
I was trying to compile php v5.3.3 (the oldest currently available on CWP) under php-fpm menu, in order to host an old site of mine.
Using the trail command after it took too long, I found this error:

Code: [Select]

[root@cwp ~]# tail -f /var/log/php-selector-rebuild.log
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
exe:/opt/alt/php-fpm53/usr/sbin/php-fpm
Redirecting to /bin/systemctl restart httpd.service


Build Completed
###################




Error:Can't add notification!


Any idea what's the issue?


Also, ever since, whenever I get into php-fpm menu again, I get this in the bottom:
Code: [Select]
Task already running in the background, please wait a few minutes and then check again!!!How can I remove that?

14
Nginx / Nginx failed and can't be restarted
« on: May 29, 2019, 03:55:49 AM »
This morning I woke up to see my server's nginx failed and couldn't restart (CWP tried to restart it every 15 minutes).

This is my error.log for nginx:
Code: [Select]
2019/05/29 04:00:02 [emerg] 13297#13297: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:15:03 [emerg] 14094#14094: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:30:02 [emerg] 14820#14820: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:45:02 [emerg] 15579#15579: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:00:02 [emerg] 16292#16292: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:15:02 [emerg] 17021#17021: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:30:02 [emerg] 17778#17778: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:45:02 [emerg] 18567#18567: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:00:02 [emerg] 19346#19346: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:06:23 [emerg] 20056#20056: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:08:23 [emerg] 4086#4086: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:09:12 [emerg] 4022#4022: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:09:37 [emerg] 4691#4691: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:15:02 [emerg] 6426#6426: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:41 [emerg] 7303#7303: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:53 [emerg] 7517#7517: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:21:14 [emerg] 7882#7882: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:30:02 [emerg] 10127#10127: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:40:43 [emerg] 3837#3837: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17

So I went into /etc/nginx/conf.d/cwp.hostname.com_ssl.conf and found the following on line 17:
Code: [Select]
ssl_session_cache   shared:SSL:20m;
So according to the error, i changed it to (from 20m to 10m):

Code: [Select]
ssl_session_cache   shared:SSL:10m;


Any idea why did this happened suddenly? And what does this line actually mean (I understand it's some kind of cache size for SSL). Can it be that some update of CWP made this overnight?
Oh, and where is this "already declared size" stored?




15
Varnish / Varnish won't work
« on: May 12, 2019, 05:45:53 AM »

Hi there,


I'm hosting quite a few websites on my server. I have only one site which is approved to be using varnish with https://isvarnishworking.uk/ - all other won't, although I've set them the same as the one which is working, as per the attached screenshot.

Any idea what might be wrong?


https://pasteboard.co/Iejmr6c.png

Pages: [1] 2 3