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

Pages: [1] 2
1
E-Mail / Re: SpamAssassin High CPU Usage
« on: September 18, 2020, 06:14:26 PM »
Can you try to execute this command? Sometimes it solves it.

Code: [Select]
sh /scripts/clamd_fix_100_cpu_usage
The problem continues

2
E-Mail / Re: SpamAssassin High CPU Usage
« on: September 17, 2020, 07:56:12 PM »

Today we have had problems with the use of CPU with the process clamd/amavis, if it serves you I pass this link where I put 3 commands that have solved it and eliminated the use of 100% CPU.

https://www.coriaweb.hosting/clientes/index.php/knowledgebase/33/Amavis-orClamd-esta-utilizando-el-100-de-CPU.html

I am still having this problem.
I did try the solutions but it doesn't work. It's starting again after a while.
Any solution?

https://prnt.sc/uj47u6

3
PHP / Re: PHP Rebuild/Update Problem
« on: May 10, 2020, 02:54:20 AM »
Hello guys,

As a result of my own efforts, I solved the problem.

First of all, I reinstalled "openssl-devel".
Code: [Select]
yum reinstall openssl-devel
Then I entered the command to find out which PHP versions are installed:
Code: [Select]
yum list installed | grep php
Code: [Select]
[root @ srv ~] # yum list installed | grep php
cwp-suphp.x86_64                    0.7.2-3                          @cwp
cwpphp.x86_64                       7.2.30-3                         @cwp
php-cli.x86_64                      7.3.17-1.el7.remi                @remi-php73
php-common.x86_64                   7.3.17-1.el7.remi                @remi-php73
php-gd.x86_64                       7.3.17-1.el7.remi                @remi-php73
php-json.x86_64                     7.3.17-1.el7.remi                @remi-php73
php-mbstring.x86_64                 7.3.17-1.el7.remi                @remi-php73
php-pecl-mcrypt.x86_64              1.0.3-1.el7.remi.7.3             @remi-php73
php-soap.x86_64                     7.3.17-1.el7.remi                @remi-php73
php-xml.x86_64                      7.3.17-1.el7.remi                @remi-php73
php-xmlrpc.x86_64                   7.3.17-1.el7.remi                @remi-php73

And I saw that "PHP 7.3.17" seems to be already installed.

So I took the package names and deleted them with the command
Code: [Select]
rpm -qa | grep php
Code: [Select]
[root @ srv ~] # rpm -qa | grep php
php-common-7.3.17-1.el7.remi.x86_64
php-soap-7.3.17-1.el7.remi.x86_64
php-xml-7.3.17-1.el7.remi.x86_64
cwpphp-7.2.30-3.x86_64
php-cli-7.3.17-1.el7.remi.x86_64
php-mbstring-7.3.17-1.el7.remi.x86_64
php-gd-7.3.17-1.el7.remi.x86_64
php-xmlrpc-7.3.17-1.el7.remi.x86_64
CWP-suPHP-0.7.2-3.x86_64
php-json-7.3.17-1.el7.remi.x86_64
php-PECL-mcrypt-1.0.3-1.el7.remi.7.3.x86_64
[root @ srv ~] # yum remove 7.3.17

Code: [Select]
yum remove -y php-cli-7.3.17-1.el7.remi.x86_64 php-common-7.3.17-1.el7.remi.x86_64 php-soap-7.3.17-1.el7.remi.x86_64 php-xml-7.3.17-1.el7.remi.x86_64 php-mbstring-7.3.17-1.el7.remi.x86_64 php-gd-7.3.17-1.el7.re mi.x86_64 php-xmlrpc- 7.3.17-1.el7.remi.x86_64 php-json-7.3.17-1.el7.remi.x86_64
https://prnt.sc/sdziaq

That's it.
Happy ending.

4
PHP / Re: PHP Rebuild/Update Problem
« on: May 09, 2020, 12:49:46 AM »
Start by clearing some space by deleting those .zip and .tar gz files
Done.
What should I do next?

5
PHP / Re: PHP Rebuild/Update Problem
« on: May 08, 2020, 08:57:42 AM »
because it failed once, it may be causing more harm than good.

You should try
cd /usr/local/src/php-build/php-7.3.17
\rm -rf *

And see if rebuilding works.
I noticed a major issue with tar and tar.gz files labeled tar.gz.(1,2,3...)
Code: [Select]
-bash: cd: /usr/local/src/php-build/php-7.3.17: No such file or directory

https://prnt.sc/sd2c0o

6
PHP / Re: PHP Rebuild/Update Problem
« on: May 08, 2020, 06:45:06 AM »
Try replace "make" with "cmake" and see what happens.
I think I can't do that with "CWP Version Switcher"
I tried to do it manually according to the guide, but "cmake" doesn't work on "libzip" stage.
https://www.mysterydata.com/how-to-install-build-php-7-3-manually-on-cwp-centos-web-panel/
What exactly should I type?

7
if the service is already running, and you try to start it again, of course you are going to get bind errors.   try "nginx -s reload" if you want to reload config files, other than that, leave it alone.

Your only issue is apache failing to start due to trying to bind to port 80 as well.  That should have been resolved.  If your saying the systemctl doesn't list an httpd service:

nano /usr/lib/systemd/system/httpd.service

Code: [Select]
[Unit]
Description=Web server Apache
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/apache/bin/apachectl start
ExecReload=/usr/local/apache/bin/apachectl graceful
ExecStop=/usr/local/apache/bin/apachectl graceful-stop

[Install]
WantedBy=multi-user.target
systemctl enable httpd
systemctl start httpd

I thought there was a problem. Thank you.

My PHP problems are still not resolved. I can't install in any way.
Do you have any idea about this?
http://forum.centos-webpanel.com/index.php?topic=8836.0


8
PHP / Re: PHP Rebuild/Update Problem
« on: May 08, 2020, 06:14:43 AM »
I can't find any solution.
I tried to update openssl but it didn't happen because of nginx.
What else can I do? I didn't touch anything until this problem.

9
seems some other httpd version installed do this :
yum remove httpd* cwp-httpd -y
yum install cwp-httpd -y

after that rebuild webserver config.
"httpd" command doesn't work anymore.

"nginx" problem continues.
Code: [Select]
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:443 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:443 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
It also works.

10
seems some other httpd version installed do this :
yum remove httpd* cwp-httpd -y
yum install cwp-httpd -y

after that rebuild webserver config.
Code: [Select]
[root@srv ~]# yum remove httpd* cwp-httpd -y
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package cwp-httpd.x86_64 0:2.4.39-3 will be erased
---> Package httpd.x86_64 0:2.4.6-93.el7.centos will be erased
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-7.3.17-1.el7.remi.x86_64
---> Package httpd-tools.x86_64 0:2.4.6-93.el7.centos will be erased
--> Running transaction check
---> Package php.x86_64 0:7.3.17-1.el7.remi will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch        Version                    Repository        Size
================================================================================
Removing:
 cwp-httpd        x86_64      2.4.39-3                   @cwp              27 M
 httpd            x86_64      2.4.6-93.el7.centos        @base            9.4 M
 httpd-tools      x86_64      2.4.6-93.el7.centos        @base            168 k
Removing for dependencies:
 php              x86_64      7.3.17-1.el7.remi          @remi-php73       10 M

Transaction Summary
================================================================================
Remove  3 Packages (+1 Dependent package)

Installed size: 46 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : php-7.3.17-1.el7.remi.x86_64                                 1/4
  Erasing    : httpd-2.4.6-93.el7.centos.x86_64                             2/4
  Erasing    : httpd-tools-2.4.6-93.el7.centos.x86_64                       3/4
Failed to stop httpd.service: Unit httpd.service not loaded.
  Erasing    : cwp-httpd-2.4.39-3.x86_64                                    4/4
warning: /usr/local/apache/conf/httpd.conf saved as /usr/local/apache/conf/httpd.conf.rpmsave
  Verifying  : httpd-tools-2.4.6-93.el7.centos.x86_64                       1/4
  Verifying  : php-7.3.17-1.el7.remi.x86_64                                 2/4
  Verifying  : httpd-2.4.6-93.el7.centos.x86_64                             3/4
  Verifying  : cwp-httpd-2.4.39-3.x86_64                                    4/4

Removed:
  cwp-httpd.x86_64 0:2.4.39-3               httpd.x86_64 0:2.4.6-93.el7.centos
  httpd-tools.x86_64 0:2.4.6-93.el7.centos

Dependency Removed:
  php.x86_64 0:7.3.17-1.el7.remi

Complete!
[root@srv ~]#

Code: [Select]
[root@srv ~]# yum install cwp-httpd -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     |  33 kB     00:00
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: centosmirror.netcup.net
 * remi-safe: mirror.23media.com
 * updates: mirror.plustech.de
base                                                     | 3.6 kB     00:00
cwp                                                      | 2.9 kB     00:00
extras                                                   | 2.9 kB     00:00
mariadb                                                  | 2.9 kB     00:00
remi-safe                                                | 3.0 kB     00:00
updates                                                  | 2.9 kB     00:00
varnishcache_varnish5/x86_64/signature                   |  836 B     00:00
varnishcache_varnish5/x86_64/signature                   | 1.0 kB     00:00 !!!
varnishcache_varnish5-source/signature                   |  836 B     00:00
varnishcache_varnish5-source/signature                   | 1.0 kB     00:00 !!!
Resolving Dependencies
--> Running transaction check
---> Package cwp-httpd.x86_64 0:2.4.39-3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch             Version               Repository     Size
================================================================================
Installing:
 cwp-httpd           x86_64           2.4.39-3              cwp           5.5 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 5.5 M
Installed size: 27 M
Downloading packages:
cwp-httpd-2.4.39-3.x86_64.rpm                              | 5.5 MB   00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Failed to stop httpd.service: Unit httpd.service not loaded.
  Installing : cwp-httpd-2.4.39-3.x86_64                                    1/1
  Verifying  : cwp-httpd-2.4.39-3.x86_64                                    1/1

Installed:
  cwp-httpd.x86_64 0:2.4.39-3

Complete!

I did "Save & Rebuild Configuration" from Select Webservers.

and I checked with "yum list httpd" but showing "v2.4.6" again.
Code: [Select]
[root@srv ~]# yum list httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: centosmirror.netcup.net
 * remi-safe: mirror.23media.com
 * updates: mirror.plustech.de
Available Packages
httpd.x86_64                      2.4.6-93.el7.centos                       base
[root@srv ~]#

11
can you provide the output :
Code: [Select]
yum list httpd

Code: [Select]
[root@srv ~]# yum list httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: centosmirror.netcup.net
 * remi-safe: mirror.23media.com
 * updates: mirror.plustech.de
Installed Packages
httpd.x86_64                      2.4.6-93.el7.centos                      @base
[root@srv ~]#

12
Make sure your vhosts aren't trying to bind to 80
I checked and i couldn't find port 80.

systemctl stop nginx
Systemctl stop httpd
Killall httpd
Killall nginx
Systemctl start nginx
Systemctl start httpd

Post any errors
No change.
Nginx and httpd are already running.
When I write "nginx" or "httpd" in terminal, it gives errors. But as i said, nginx is also working.
What else could be a reason?

13
Apa he needs to listen on 8181, not 80
Contents of File: /usr/local/apache/conf/httpd.conf
Code: [Select]
#Listen 12.34.56.78:80
Listen 8181

14
Try yum install openssl-dev or devel, not sure which.  Then try again
Package 1:openssl-devel-1.0.2k-19.el7.x86_64 already installed and latest version
Nothing to do
OpenSSL 1.0.2k  26 Jan 2017

15
Hello,

I get errors in nginx and httpd.

I used "fuser -k 80/tcp",
nginx worked, my web site is running but it keeps giving errors in the background.

How can i solve this?

nginx
Code: [Select]
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:443 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:443 failed (98: Address already in use)
nginx: [emerg] bind() to 78.47.239.123:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

httpd
Code: [Select]
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Netstat info
Code: [Select]
tcp        0      0 0.0.0.0:82              0.0.0.0:*               LISTEN      7209/varnishd       
tcp        0      0 78.47.239.123:443       0.0.0.0:*               LISTEN      10314/nginx: master
tcp        0      0 127.0.0.1:6082          0.0.0.0:*               LISTEN      7209/varnishd       
tcp        0      0 78.47.239.123:80        0.0.0.0:*               LISTEN      10314/nginx: master
tcp6       0      0 :::82                   :::*                    LISTEN      7209/varnishd       
tcp6       0      0 :::8181                 :::*                    LISTEN      10168/httpd         
tcp6       0      0 :::8443                 :::*                    LISTEN      10168/httpd         

System is up to date.
Web Servers: nginx-varnish-apache
Apache version: Apache/2.4.39

Pages: [1] 2