LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2005, 07:35 AM   #1
johnvarghese
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Exclamation mod_jk file installed by rpm corrupts it


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to know the rpm file name which I have installed ? naihe2010 Linux - Software 1 11-12-2005 11:42 PM
How to find an installed .rpm file Gald3r Linux - Newbie 22 09-25-2005 12:19 AM
:mad: Arghhh!!! I can't figure out where this RPM file installed itself! tearinox Linux - Newbie 10 08-03-2003 01:06 PM
Installed RPM/tar file, cant find out how to run it Craneology Linux - Software 4 03-01-2003 08:10 PM
Slack8.1 install corrupts file system :( csDraco_ Slackware 4 01-14-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration