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