Author Topic: can't load mod_proxy  (Read 17230 times)

0 Members and 3 Guests are viewing this topic.

Offline
*
can't load mod_proxy
« on: September 23, 2014, 08:28:32 AM »

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

Offline
*
Re: can't load mod_proxy
« Reply #1 on: September 23, 2014, 08:45:31 AM »
/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
« Last Edit: September 23, 2014, 09:04:39 AM by teknohan »

Offline
*
Re: can't load mod_proxy
« Reply #2 on: September 24, 2014, 02:48:51 AM »
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
« Last Edit: September 24, 2014, 08:09:57 AM by teknohan »

Offline
*
Re: can't load mod_proxy
« Reply #3 on: September 26, 2014, 02:40:50 AM »
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

Offline
*
Re: can't load mod_proxy
« Reply #4 on: March 30, 2016, 02:22:00 PM »
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.
« Last Edit: March 30, 2016, 02:23:53 PM by calivent »

Offline
*****
Re: can't load mod_proxy
« Reply #5 on: April 06, 2016, 11:51:22 AM »
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