9. Apache Virtual Hosting With Different Users
페이지 정보
작성자 관리자 댓글 0건 조회 6,482회 작성일 19-05-18 07:33본문
9. Apache Virtual Hosting With Different Users
root@leelab:~# apt install apache2-dev
root@leelab:~# wget http://mpm-itk.sesse.net/mpm-itk-2.4.7-04.tar.gz
root@leelab:~# tar xvfz mpm-itk-2.4.7-04.tar.gz
root@leelab:~# cd mpm-itk-2.4.7-04/
root@leelab:~/mpm-itk-2.4.7-04# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for cap_init in -lcap... no
checking for --with-apxs... no
checking for apxs... /usr/bin/apxs
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
root@leelab:~/mpm-itk-2.4.7-04# make
/usr/bin/apxs -c mpm_itk.c seccomp.c
/usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c -o mpm_itk.lo mpm_itk.c && touch mpm_itk.slo
libtool: compile: x86_64-linux-gnu-gcc -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c mpm_itk.c -fPIC -DPIC -o .libs/mpm_itk.o
In file included from /usr/include/apache2/ap_config.h:138:0,
from mpm_itk.c:51:
/usr/include/apache2/ap_config_auto.h:237:0: warning: "PACKAGE_NAME" redefined
#define PACKAGE_NAME ""
In file included from mpm_itk.c:25:0:
config.h:11:0: note: this is the location of the previous definition
#define PACKAGE_NAME "mpm-itk"
In file included from /usr/include/apache2/ap_config.h:138:0,
from mpm_itk.c:51:
/usr/include/apache2/ap_config_auto.h:240:0: warning: "PACKAGE_STRING" redefined
#define PACKAGE_STRING ""
In file included from mpm_itk.c:25:0:
config.h:14:0: note: this is the location of the previous definition
#define PACKAGE_STRING "mpm-itk 2.4.7-04"
In file included from /usr/include/apache2/ap_config.h:138:0,
from mpm_itk.c:51:
/usr/include/apache2/ap_config_auto.h:243:0: warning: "PACKAGE_TARNAME" redefined
#define PACKAGE_TARNAME ""
In file included from mpm_itk.c:25:0:
config.h:17:0: note: this is the location of the previous definition
#define PACKAGE_TARNAME "mpm-itk"
In file included from /usr/include/apache2/ap_config.h:138:0,
from mpm_itk.c:51:
/usr/include/apache2/ap_config_auto.h:249:0: warning: "PACKAGE_VERSION" redefined
#define PACKAGE_VERSION ""
In file included from mpm_itk.c:25:0:
config.h:23:0: note: this is the location of the previous definition
#define PACKAGE_VERSION "2.4.7-04"
/usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c -o seccomp.lo seccomp.c && touch seccomp.slo
libtool: compile: x86_64-linux-gnu-gcc -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c seccomp.c -fPIC -DPIC -o .libs/seccomp.o
/usr/share/apr-1.0/build/libtool --mode=link --tag=disable-static x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -o mpm_itk.la -rpath /usr/lib/apache2/modules -module -avoid-version seccomp.lo mpm_itk.lo
libtool: link: x86_64-linux-gnu-gcc -shared -fPIC -DPIC .libs/seccomp.o .libs/mpm_itk.o -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,mpm_itk.so -o .libs/mpm_itk.so
libtool: link: ( cd ".libs" && rm -f "mpm_itk.la" && ln -s "../mpm_itk.la" "mpm_itk.la" )
root@leelab:~/mpm-itk-2.4.7-04# make install
/usr/bin/apxs -i mpm_itk.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mpm_itk.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install install mpm_itk.la /usr/lib/apache2/modules/
libtool: install: install .libs/mpm_itk.so /usr/lib/apache2/modules/mpm_itk.so
libtool: install: install .libs/mpm_itk.lai /usr/lib/apache2/modules/mpm_itk.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/go/bin:/root/go/bin:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache2/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mpm_itk.so
root@leelab:~/mpm-itk-2.4.7-04#
댓글목록
등록된 댓글이 없습니다.