Author Topic: Error when updating vhosts with an ip change  (Read 352 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error when updating vhosts with an ip change
« on: July 27, 2025, 03:38:07 PM »

Notice: Trying to access array offset on value of type null in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_net.php on line 0
Notice: Trying to access array offset on value of type null in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_net.php on line 0
Notice: Trying to access array offset on value of type null in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_net.php on line 0
Notice: Trying to access array offset on value of type null in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_net.php on line 0
Notice: Trying to access array offset on value of type null in /usr/local/cwpsrv/htdocs/resources/admin/include/functions/func_net.php on line 0


I get this error when updating the server's IP with vhost changes. How to fix this? I get this only when I check the update vhosts option & update ip.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #1 on: July 27, 2025, 08:40:51 PM »
Does it complete the task successfully for you? Note that it is of the "notice" class rather than an error -- more for the devs to fix their code for modern PHP versions rather than using deprecated code constructs.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #2 on: July 27, 2025, 10:15:48 PM »
Could you please advise of the following:

What distro are you are you running CWP on?

CWP Free or CWPpro?

Where and how did you change the new Shared IP at?

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #3 on: July 28, 2025, 02:45:39 AM »
I'm running CWP on AlmaLinux 9. It is CWP Free. I'm changing the IP at CWP Settings --> Edit Settings.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #4 on: July 28, 2025, 09:01:31 PM »
OK, it should work as long at the Rebuild vHosts box was checked and Save Changes.

Did you servers Base IP change, or is this an additional IP on the server?

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #5 on: July 29, 2025, 04:31:53 AM »
It is the base IP. Currently, the server is connected to a dynamic public IP network, and its IP address changes every 24 hours. I am planning to obtain a static public IP from my ISP in a month, so until then, I will need to update my IP daily.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #6 on: July 29, 2025, 07:09:32 AM »
Are you using this as a lab or production?

Find out how much the static IP is, and then compare with getting a VPS somewhere.

If a lab, you could get away with a small VPS 2 CPU, 2GB RAM.
If for productions, then you would have to figure your needs.

NOTE: Most, if not All ISP's have port 25 blocked due to spammers.

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #7 on: July 29, 2025, 07:24:44 AM »
I've told my requirements to the ISP, and they have agreed to unblock the ports for my usage if I get a static IP. I am locked inside a plan right now, and that plan is not eligible for a static IP, so I want that plan to end (which is in a month) so I can upgrade my plan and get a static IP.

This is a production environment, and getting a static IP costs less than getting a VPS of the same computing power.

Right now, outbound on port 25 is blocked (inbound works, but that is of no use without outbound), but they'll unblock it when I get a static IP.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #8 on: July 29, 2025, 07:39:37 AM »
That's good your ISP will unblock those ports.
Hope they offer some type of DoS/DDoS also.

You'll need to setup some type of hardware firewall, and have a good battery backup.

If the ISP doesn't unblock 25, there is SendGrid, Mailjet, etc. that are easily configured with Postfix.

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #9 on: July 29, 2025, 08:50:32 AM »
Yeah, I'm planning to get a firewall. We've a good power backup & there's no power interruption from the grid because we have a separate industrial power connection from the grid.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #10 on: July 29, 2025, 12:30:17 PM »
When ISPs blocked port 25, I've used Dynu as a queueing mail server: https://www.dynu.com/en-US/Email/StoreForward

I've been down this path before and it is worthy as a learning experience but I wouldn't trust it for clients or anything beyond a personal domain. Too much potential for issues: ISP down time or port blocks, power blackouts, or even just environment -- not having the proper HVAC cooling caused a SOHO server I was running to fail its cooling fans, which led to intermittent heat-related lock ups while I was waiting on a replacement fan, drive failures (SSDs DO fail), etc. I am much happier now to have my servers co-located in a professionally managed facility with 24/7 physical support.

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #11 on: July 30, 2025, 08:57:57 AM »
Where are the user panel login attempts and logs stored?

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #12 on: July 30, 2025, 12:08:26 PM »
/var/log/cwp_client_login.log especially. Other ones to take note of:
Code: [Select]
/var/log/cwp_client_login.log
/var/log/cwp/account_transfer.log
/var/log/cwp/accounting.log
/var/log/cwp/accounting_debug.log
/var/log/cwp/activity.log
/var/log/cwp/api.log
/var/log/cwp/autossl.log
/var/log/cwp/cwp_allautossl_sslmod.log
/var/log/cwp/cwp_api.log
/var/log/cwp/cwp_backup.log
/var/log/cwp/cwp_cron.log
/var/log/cwp/cwp_renew_autossl_bulk.log
/var/log/cwp/cwp_sslmod.log
/var/log/cwp/migration_cpanel.log
/var/log/cwp/migration_cwptocwp.log
/var/log/cwp/migration_cwptocwp_mig.log
/var/log/cwp/services_action.log
/var/log/cwp/token.log
/var/log/cwp/webservers.log

Offline
*
Re: Error when updating vhosts with an ip change
« Reply #13 on: July 30, 2025, 12:19:00 PM »
In /var/log/cwp_client_login.log I get only logs of admin panel login attempt logs, and I don't get logs there for client panel login attempts. I've seen this file already.

Offline
*****
Re: Error when updating vhosts with an ip change
« Reply #14 on: July 30, 2025, 03:09:59 PM »
Code: [Select]
grep 2083 /usr/local/cwpsrv/logs/access_log | less