Control Web Panel
WebPanel => Installation => Topic started by: its_me_rbk 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.
-
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.
-
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?
-
I'm running CWP on AlmaLinux 9. It is CWP Free. I'm changing the IP at CWP Settings --> Edit Settings.
-
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?
-
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.
-
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.
-
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.
-
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.
-
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.
-
When ISPs blocked port 25, I've used Dynu as a queueing mail server: https://www.dynu.com/en-US/Email/StoreForward (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.
-
Where are the user panel login attempts and logs stored?
-
/var/log/cwp_client_login.log especially. Other ones to take note of:
/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
-
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.
-
grep 2083 /usr/local/cwpsrv/logs/access_log | less
-
I guess I need to create a script to review this /usr/local/cwpsrv/logs/access_log and filter the login POST messages to produce a similar log file, such as /var/log/cwp_client_login.log. I'll create a new thread and share it, so users who need it can take it from there.