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

Pages: 1 [2] 3 4 ... 6
16
Apache / Re: Apache won't start after upgrading to php 8+ (httpd failed)
« on: September 06, 2023, 08:23:45 AM »
I asked our data-center if there was a command to fix directories owner & group for each domain under /home/

For example

cd /home/domain-user
chown -R domain:domain public_html/

I have mentioned to CWP several times that the fix permissions option sets all directories owner & group to nobody.

I'm sure it's not suppose to do that so why does it?

Anyway, thank god the sites are back.

17
Apache / Re: Apache won't start after upgrading to php 8+ (httpd failed)
« on: September 05, 2023, 08:30:14 PM »
I did go for one time support, they switched it to nginx, apache, vanish, php-fpm
But Apache won't start if I switch web servers back to Apache Only, not that I want to switch it back.
The sites were running fine on Apache Only and PHP 7.4, now they won't run with that version or any.

I have a few WordPress sites that were kicking up that they needed PHP 8.0 or 8.1 so I upgraded.
PHP 8.0 is no good because they skipped past PHP 8.0 with the new Ioncube.

I'd be happy to pay CWPto check it out, it's probably not a serious bug, I can't fix it quick enough.
Every time I upgrade php, or change web servers this happens.

I've only a couple of websites on the server and audio streaming application, with proxy to get secure https urls.
The streaming server is running fine independently, but I can't use the domain names for the https stream url's.
I have a few broadcasters using one of the streams, we do regular shows from my website, well we did until this.

My sites are down since last week, since I switched to ngnix, apache, vanish, php-fpm, Access Denied on websites.

That ioncube is a pain too, it's not compatible with newer PHP versions,
Then I saw they did a release for PHP 8.1 and installed PHP 8.1, no luck with the sites.

I'll try fix that SSL issues, as far as I know, it says I'm missing an A record
But I don't think the domains are missing any A records, not 100% sure.

I'm getting to oconfused, I have logs that are like 500mb, had to clear them just to open them.

I love CWP, it's just a bit stressful when things go wrong, i'll be up for the night again.

18
Apache / Re: Apache won't start after upgrading to php 8+ (httpd failed)
« on: September 05, 2023, 04:09:13 PM »
I think we'll have to migrate to a new server manager.
I'm 100% sure this is not something I have caused.

19
Apache / Re: Apache won't start after upgrading to php 8+ (httpd failed)
« on: September 04, 2023, 05:13:05 AM »
Hi,

I ran /usr/local/apache/bin/apachectl configtest

Syntax OK

From: /usr/ local/apache/logs/error_log

[Mon Sep 04 05:20:45.445656 2023] [mpm_event:notice] [pid 23752:tid 140413806012288] AH00493: SIGUSR1 received.  Doing graceful restart
Failed loading /usr/local/ioncube/ioncube_loader_lin_8.1.so:  /usr/local/ioncube/ioncube_loader_lin_8.1.so: undefined symbol: file_globals
Failed loading /usr/local/ioncube/ioncube_loader_lin_8.1.so:  /usr/local/ioncube/ioncube_loader_lin_8.1.so: undefined symbol: file_globals
Failed loading /usr/local/ioncube/ioncube_loader_lin_8.1.so:  /usr/local/ioncube/ioncube_loader_lin_8.1.so: undefined symbol: file_globals
Failed loading /usr/local/ioncube/ioncube_loader_lin_8.1.so:  /usr/local/ioncube/ioncube_loader_lin_8.1.so: undefined symbol: file_globals
Failed loading /usr/local/ioncube/ioncube_loader_lin_8.1.so:  /usr/local/ioncube/ioncube_loader_lin_8.1.so: undefined symbol: file_globals
[Mon Sep 04 05:20:45.654488 2023] [ssl:warn] [pid 23752:tid 140413806012288] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

[Mon Sep 04 05:20:45.665045 2023] [ssl:warn] [pid 23752:tid 140413806012288] AH01909: cpanel.site.biz:443:0 server certificate does NOT include an ID which matches the server name
[Mon Sep 04 05:20:45.665451 2023] [ssl:warn] [pid 23752:tid 140413806012288] AH01909: mail.site.biz:443:0 server certificate does NOT include an ID which matches the server name

From: /var/ log/httpd/error_log

[Thu Aug 31 20:49:05.761282 2023] [ssl:emerg] [pid 25913] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
[Thu Aug 31 20:49:09.660173 2023] [suexec:notice] [pid 26142] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Aug 31 20:49:09.660434 2023] [core:emerg] [pid 26142] (28)No space left on device: AH00023: Couldn't create the ssl-cache mutex
AH00016: Configuration Failed

--

So, I'm looking for /etc/httpd/logs/ssl_error_log
But all I can find is: etc/httpd_bak/logs, there's no /etc/httpd/

Is that another issue?

From: /etc/httpd_bak/logs/ssl_error_log

[Thu Aug 31 20:33:33.700527 2023] [ssl:emerg] [pid 20549] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
[Thu Aug 31 20:49:05.761231 2023] [ssl:warn] [pid 25913] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Aug 31 20:49:05.761243 2023] [ssl:warn] [pid 25913] AH01909: RSA certificate configured for svr1.site.it:443 does NOT include an ID which matches the server name
[Thu Aug 31 20:49:05.761254 2023] [ssl:emerg] [pid 25913] AH02238: Unable to configure RSA server private key
[Thu Aug 31 20:49:05.761273 2023] [ssl:emerg] [pid 25913] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


Have Web Server set to Nging, Apache, Vanish, PHP-FPM.
They all seem to be running fine from looking at the dashboard.

Have the server updated to latest version.
PHP version: 8.1.22 Forced PHP-FPM: 8.1

All websites are down.

Error 503 Backend fetch failed
Backend fetch failed

Guru Meditation:
XID: 196794

Varnish cache server

Also, I tried Fix Permissions under User Accounts,
Now all websites Owner & group are set to "nobody"
Do I need to fix those back to the right owners.

20
Apache / Re: Apache won't start after upgrading to php 8+ (httpd failed)
« on: September 03, 2023, 07:37:47 AM »
This is a nightmare to fix, several issues, dunno where to start.

CWP support checked the Apache issue, got nginx, vanish, apache, php-fpm running,
Unfortunately websites (wordpress) were still unreachable.

I tried switching php-fpm selector back to a version of php that all sites worked with (7.4)
Nothing worked, Apache was still down.

Now the server has nginx, apache, vanish, php-fpm selected.
When I visit any website I get Access Denied.

So I went back to the main CWP dashboard and set the web server back to Apache Only.

Apache appears offline so I click Start Apache but it doesn't restart.


I switched back to nginx, apache, vanish, php-fpm for now,
They all seem to be running in the dashboard, but none of the sites are accessible. Access Denied.

I'm trying everything, I even hit that Fix Permissions option,
But now every domain has Owner & Group set to nobody, for all files and folders.

Any advice appreciated.

21
Apache / Apache won't start after upgrading to php 8+ (httpd failed)
« on: August 30, 2023, 05:05:28 PM »
Hi,

I am having this issue again, after updating the server PHP version to PHP 8.0.2
Any version of PHP 8+ is causing Apache not to start up, so websites are unreachable.

Tried switching back to 7.4.3 which all the sites usually work with, but not this time.
This has to be a bug, because I had the same issue when upgrading to php 7+

I forget how we resolved it last time.

The data-center also checked and couldn't resolve the issue,
They said the issue is in CWP

user@svr1.web.it ~$ systemctl status httpd -l
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2023-08-30 18:06:37 IST; 1min 53s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 18391 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 18391 (code=exited, status=1/FAILURE)
Aug 30 18:06:37 svr1.web.it systemd[1]: Starting The Apache HTTP Server...
Aug 30 18:06:37 svr1.web.it systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 30 18:06:37 svr1.web.it systemd[1]: Failed to start The Apache HTTP Server.
Aug 30 18:06:37 svr1.web.it systemd[1]: Unit httpd.service entered failed state.
Aug 30 18:06:37 svr1.web.it systemd[1]: httpd.service failed.


user@svr1.web.it ~$ service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.


I ran these commands in the SSH terminal

systemctl status httpd.service

journalctl -xe


--

user@svr1.web.it ~$ systemctl status httpd.service
● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor
preset: disabled)
   Active: failed (Result: exit-code) since Tue 2023-08-29 22:50:58 IST; 7min
ago
  Process: 23749 ExecStart=/usr/local/apache/bin/apachectl start (code=exited,
status=139)
 Main PID: 7129 (code=killed, signal=SEGV)
Aug 29 22:50:58 svr1.web.it systemd[1]: Starting Web server Apache...
Aug 29 22:50:58 svr1.web.it apachectl[23749]:
/usr/local/apache/bin/apachectl: line 79: 23751 Segmentation fault      $HTTPD
-k $ARGV
Aug 29 22:50:58 svr1.web.it systemd[1]: httpd.service: control process
exited, code=exited status=139
Aug 29 22:50:58 svr1.web.it systemd[1]: Failed to start Web server
Apache.
Aug 29 22:50:58 svr1.web.it systemd[1]: Unit httpd.service entered
failed state.
Aug 29 22:50:58 svr1.web.it systemd[1]: httpd.service failed.


The info from journalctl -xe is a bit long to post here.

I'm also unable to update CWP again, it gives Ajax Error

Apaprently, some applications are working fine without Apache,
But all the websites are down.

I also tried switching from Apache Only to Nginx and some of the sites worked, not all.
I can't use any of the other servers in WebServers_manage, because the sites won't work.

I'd like to get everything working again with Nginx & Varnish & Apache, which offers the best performance.

Any advice appreciated.

22
I think this issue has returned,

After running sh /scripts/update_cwp

ERROr Ajax: Error

23
Mod_Security / Re: Mod Security issue? pid 2459:tid 140698774865664
« on: February 10, 2023, 08:45:36 AM »
Thanks I'll try that next

24
@midownload

I uninstalled it because it was changing the proxy on our server and I have other applications that we can't change.

25
I can confirm @daniellopesjp solution just worked for me.

Now I can run sh /scripts/update_cwp without these two warnings:

Code: [Select]
Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

Thanks!

26
Updates / Re: Update CWP getting errors.. Ajax Error / grep: write error
« on: February 01, 2023, 05:06:18 AM »
I fixed some other errors and everything works again.

If you get these two errors when running CWP update command: sh /scripts/update_cwp

Code: [Select]
Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

Solution: https://forum.centos-webpanel.com/index.php?topic=9168.0

27
DNS / Re: Pointing subdomain on CWP to an external server IP
« on: January 20, 2023, 07:29:04 PM »
@phalouvas

All I did was go to DNS Functions, then List DNS Zones

And at the end of the file I added two A records and point the subdomain to the IP of the other server.

service     14400   IN      A       11.111.73.202  ; #subdomain service
www.service     14400   IN      A       11.111.73.202  ; #subdomain service

And wait until it fully propagates across the web, took about 24 hours.

28
I uninstalled Shoutcast Manager in the end, it messed with other services on the server.

29
DNS / Re: Pointing subdomain on CWP to an external server IP
« on: January 18, 2023, 04:24:35 PM »
All good got it sorted

30
DNS / Pointing subdomain on CWP to an external server IP
« on: January 11, 2023, 10:05:13 AM »
Hi,

Just checking,

I have a domain on CWP that I created a subdomain for: service.domain.com
I also have a new web hosting account on a separate server to CWP.

I wanted to point that subdomain to the IP of the new server,
So I went into DNS Functions > List DNS Zone and clicked on Edit File for domain.com.db

In that file I see two records for the subdomain and changed the IP to the new server.

service     14400   IN      A       11.111.73.202  ; #subdomain service
www.service     14400   IN      A       11.111.73.202  ; #subdomain service

Is that all I need to do to point the subdomain to the new server, do I need to add their ns1 & ns2 records also?


Thanks in advance

Pages: 1 [2] 3 4 ... 6