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 ›

can't load mod_proxy

Started by teknohan, September 23, 2014, 08:28:32 AM

Previous topic - Next topic

teknohan


LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so

i enable proxy_mod but getting this error

/etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_proxy.so into server: /etc/httpd/modules/mod_proxy.so: cannot open shared object file: No such file or directory

How can i enable proxy_mod

teknohan

#1
/user/local/apache/modules only i can see httpd.exp  and mod_suphph.so   
i guess i supposed to have mod_proxy.so but i can find any source to download as well

teknohan

#2
i will do a clean installation

wget -q http://dl1.centos-webpanel.com/files/c_scripts/apache-2.2.27.sh   

please update your package and include all modules thank you

teknohan

solution for my first question is  compiling modules 


/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c

/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_ajp.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c /tmp/apache-build/httpd-2.2.27/modules/proxy/ajp_utils.c /tmp/apache-build/httpd-2.2.27/modules/proxy/ajp_header.c /tmp/apache-build/httpd-2.2.27/modules/proxy/ajp_msg.c /tmp/apache-build/httpd-2.2.27/modules/proxy/ajp_link.c
/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_http.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c
/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_balancer.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c
/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_connect.c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_ftp.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c
/usr/local/apache/bin/apxs -a -i -c /tmp/apache-build/httpd-2.2.27/modules/proxy/mod_proxy_scgi.c /tmp/apache-build/httpd-2.2.27/modules/proxy/proxy_util.c

just make sure file location it might be different for other version my apache version was 2.2.7

calivent

#4
after compilation
path /usr/local/apache/modules
Quote[root@server modules]# ll
total 3324
-rw-r--r-- 1 root root    9201 Mar 25 09:24 httpd.exp
-rwxr-xr-x 1 root root  228001 Mar 30 10:10 mod_proxy_ajp.so
-rwxr-xr-x 1 root root  169881 Mar 30 10:10 mod_proxy_balancer.so
-rwxr-xr-x 1 root root  209528 Mar 30 10:11 mod_proxy_connect.so
-rwxr-xr-x 1 root root  193525 Mar 30 10:10 mod_proxy_http.so
-rwxr-xr-x 1 root root  151233 Mar 30 10:11 mod_proxy_scgi.so
-rwxr-xr-x 1 root root  226341 Mar 30 10:09 mod_proxy.so
-r--r--r-- 1 root root 2131493 Mar 26 20:11 mod_security2.so
-rwxr-xr-x 1 root root   62864 Mar 25 09:25 mod_suphp.so
[root@server modules]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: module proxy_module is built-in and can't be loaded
                                                           [FAILED]

in file httpd.conf

Quote# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule proxy_module       modules/mod_proxy.so
LoadModule proxy_ajp_module   modules/mod_proxy_ajp.so
LoadModule proxy_http_module  modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_scgi_module  modules/mod_proxy_scgi.so
#

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#


  • PHP 5.6.14 (cli) (built: Mar 25 2016 12:20:37)
  • Apache httpd 2.2.27

I'm still unresolved.

Igor S.

Hello.

You should recompile your Apache with the module.
Please note, you should not add LoadModule, because it will be not a shared module.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services