# wget http://mpm-itk.sesse.net/mpm-itk-2.4.7-03.tar.gz
# tar -zxvf mpm-itk-2.4.7-03.tar.gz
# cd mpm-itk-2.4.7-03
[root@10tut mpm-itk-2.4.7-03]# ./configure --with-apxs=/opt/lampp/bin/apxs
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... /opt/lampp/bin/apxs
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
[root@10tut mpm-itk-2.4.7-03]#
# make && make install
...
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /opt/lampp/modules/mpm_itk.so
[root@10tut mpm-itk-2.4.7-03]#
# vi /opt/lampp/etc/httpd.conf
...
LoadModule mpm_itk_module modules/mpm_itk.so
Configuring apache2-mpm-itkOpen vhost configuration and add the following lines to it:
[...]
<IfModule mpm_itk_module>
AssignUserId web1_user web1group
</IfModule>
[...]
Sometime vhost folder have error 403, you need to make the public_html and the files there readable by the web server.
One way is to run chmod o+x /home/user (allow everyone to switch to the home directory) and chmod -R o+rX /home/user/public_html (make public_html and files there readable by everyone).
Không có nhận xét nào:
Đăng nhận xét