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 ›

what is cwp-httpd?

Started by n8v8r, February 12, 2018, 01:59:42 PM

Previous topic - Next topic

n8v8r

yum remove httpd
QuoteRunning transaction
  Erasing    : httpd-2.4.6-67.el7.centos.6.x86_64                                                     1/1
warning: directory /var/www: remove failed: Device or resource busy
  Verifying  : httpd-2.4.6-67.el7.centos.6.x86_64                                                     1/1

Removed:
  httpd.x86_64 0:2.4.6-67.el7.centos.6

Complete!

systemctl restart cwpsrv cwp-phpfpm
yum list installed | grep httpd
Quotecwp-httpd.x86_64                       2.4.29-1
???



Having uninstalled apache there is still apache..  ??? What is this (for)? And why is is displaying an apache version on the CWP when httpd is effectively gone?








bullten

cwp-httpd is responsible for running apache in cwp.

n8v8r

apparently, also needs cwp-suphp.

Just how it is 'responsbile'? shouldn't httpd be running on its own merit? What does cwp-httpd exactly do?

bullten

remove cwp-httpd and your apache will stop working. There is no httpd package is installed by yum.

bullten

also cwp-suphp is installed.

n8v8r

If you run
yum remove httpd

it does remove apache. The info on display, apache version and php version, are not really about the appache server but about cwp-httpd and cwp-php. And that is why this info is still on display even after the removal of httpd.

Which caused the curiosity about cwp-httpd in the first place and what hold it has over httpd. I would like to be in picture about what is happening on the server and thus I am still not clear what the exact role (responsibility) of that module is.

There should be some transparency about this by CWP, like in their wiki.

n8v8r

how to register cwp-httpd in the os/system as default httpd  ???

Apparently cwp-httpd is not registered os/systemwide as httpd. For some reason CWP also installed httpd 2.4.6 (/etc/httpd) which just sits dormant. Any CLI interaction thus is not with cwp-httpd but the dormant httpd instead, e.g. httpd -t -D DUMP_RUN_CFG results in
QuoteServerRoot: "/etc/httpd"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/etc/httpd/logs/error_log"
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48

vs. /usr/local/apache/bin/httpd -t -D DUMP_RUN_CFG

QuoteServerRoot: "/usr/local/apache"
Main DocumentRoot: "/home"
Main ErrorLog: "/usr/local/apache/logs/error_log"
Mutex default: dir="/usr/local/apache/logs/" mechanism=default
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
PidFile: "/usr/local/apache/logs/httpd.pid"
Define: DUMP_RUN_CFG
User: name="nobody" id=99
Group: name="nobody" id=99

Again, this is lacking transparency and is not documented in the wiki. It may also incur lot of confusion, not only for the user but also applications depending on httpd.

In the above described setup provided by CWP no other application is recognising cwp-httpd as httpd only when manually pointed to by (CWP) scripts.

Whilst the dormant httpd 2.4.6 can be safely removed (yum remove httpd) I would like to know how to register cwp-httpd in the os/system as default httpd for other application to recognise (and the user to be able to interact via CLI with the direct httpd command).  ???

n8v8r

2 ways, as the cwp-httpd exec is located in /usr/local/apache/bin

set syslink
cd /usr/sbin
ln /usr/local/apache/bin/httpd httpd


or add the cwp-httpd path to the OS environment path
export PATH=$PATH:/usr/local/apache/bin

The only issue now is to get yum packages to recognize the presence of cwp-httpd as httpd, whilst

rpm -qa | grep httpd* produces
Quotecwp-httpd-2.4.29-2.x86_64

yum list installed httpd comes up short
QuoteError: No matching Packages to list

n8v8r

cwp-httpd seems to the lacking the 'webserver' rpm descriptor in order to be recognized by yum as httpd.

Any idea how to set said descriptor  ???