|
#1
|
|||
|
|||
|
Hello friends,
I have an rpm which copies mod_jk.so to /etc/httpd/modules. However on restarting rpm it complains Starting httpd: Syntax error on line 1043 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: failed to map segment from shared object: Permission denied [FAILED] I have noted that the size of this file is reduces from 405151 bytes to 179852 bytes. I am pasting my partial spec file below %define rcs_home /usr/share/rcs %define rcs_dist rcserver-%{version} %define httpd_conf_dir /etc/httpd/conf %define httpd_modules_dir /etc/httpd/modules %define httpd_ssl_dir %{httpd_conf_dir}/ssl %prep %setup -qc %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{rcs_home} mkdir -p $RPM_BUILD_ROOT%{httpd_ssl_dir} mkdir $RPM_BUILD_ROOT%{httpd_modules_dir} cd '%{rcs_dist}' install -m 755 rcs.war $RPM_BUILD_ROOT%{rcs_home} install -m 755 rcs-configurator.zip $RPM_BUILD_ROOT%{rcs_home} install -m 755 deploy.sh $RPM_BUILD_ROOT%{rcs_home} install -m 755 worker.properties $RPM_BUILD_ROOT%{httpd_conf_dir} cp -f mod_jk.so $RPM_BUILD_ROOT%{httpd_modules_dir}/mod_jk.so install -m 755 rcs.cert $RPM_BUILD_ROOT%{httpd_ssl_dir} install -m 755 rcs.key $RPM_BUILD_ROOT%{httpd_ssl_dir} %post echo "Installation of RCS %{version} Complete!!!" %clean rm -rf $RPM_BUILD_ROOT > /dev/null 2>&1 %files %defattr(-,root,root) %{httpd_conf_dir}/worker.properties %{httpd_modules_dir}/mod_jk.so %dir %defattr(-,root,root) %{rcs_home} %{httpd_ssl_dir} #%doc '%{ml_doc}/README' # ReleaseNotes %changelog * Fri Sep 2 2005 John Varghese <johnv@aftek.com> - Initial Creation Thanks in advance |
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 04:06 AM.
[
RSS ]








