New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

HTTP Test page on IP Change

Started by nauman, March 16, 2019, 10:42:17 AM

Previous topic - Next topic

nauman

Hello,

My websites were working fine, before I installed PHP-FPM and forced APACHE to use PHP-FPM 7.2.1. Now almost all of the websites are working fine. But yesterday I found out one of the website is showing HTTP Test Page. And today another website showing Test Page. Now, What I did was, I changed the IP address of the websites (that was: XX.XX.XX.220) to the Shared IP address(XX.XX.XX.218) defined in CWP and it worked fine.

before doing that, I checked all my DNS zones for the affected sites, rebuilt them, rebuit vhosts file. Created Domains configuration for those affected sites but it never worked.

Now I wanted these sites to stay on XX.XX.XX.220, not on the Shared IP given in CWP XX.XX.XX.218.

Please help

Thanks,

Netino

I have never been through this situation, but instead I would first try to see if any IP has been left to change, with the following command:

# find /var/named -type f -exec grep -l "XX.XX.XX.218" {} +
# find /usr/local/apache/conf* -type f -exec grep -l "XX.XX.XX.218" {} +


If you find a file in the list, you would give it a look at the file, and if you really needed to change the IP, you would use the following command:

# find /var/named -type f -exec grep -l "XX.XX.XX.218" {} + | xargs -i perl -pi -e "s/XX.XX.XX.218/XX.XX.XX.220/g" {}
# find /usr/local/apache/conf* -type f -exec grep -l "XX.XX.XX.218" {} + | xargs -i perl -pi -e "s/XX.XX.XX.218/XX.XX.XX.220/g" {}


Regards,
Netino

nauman

#2
Thanks Netino, I really appreciate your prompt and useful replies...

Actually I do not want to change the IP of that user right now back to XX.XX.XX.220 because I want that web to keep running :-)
So what I did was, another dummy user was there with the IP XX.XX.XX.218 I changed it to XX.XX.XX.220 and so far everything seems working well.


I have executed the following commands:

# find /var/named -type f -exec grep -l "XX.XX.XX.218" {} +
# find /usr/local/apache/conf* -type f -exec grep -l "XX.XX.XX.218" {} +

and zone and conf files regarding the dummy user were not shown.

I would like to wait for about an hour or so to make sure that the change of IP is fully applied on that dummy user and I ll update this thread. But I suspect that this problem is related to that specific user.