Operating System - HP-UX
1830525 Members
2684 Online
110006 Solutions
New Discussion

Call to mmap() failed - TEXT

 
SOLVED
Go to solution
John McDen
Regular Advisor

Call to mmap() failed - TEXT

OS Ver 11.00
Apache 1.3.20

I am trying to set up PVCS VM I-NET with Apache Web browser.. I downloaded the binary of Apache 1.3.20 and when I try to start Apache I get the following error

apachectl start

/usr/lib/dld.sl: Call to mmap() failed - TEXT /opt/Apache/Apache1320/libexec/mod
_vhost_alias.so
/usr/lib/dld.sl: Permission denied
Syntax error on line 205 of /opt/Apache/Apache1320/conf/httpd.conf:
Cannot load /opt/Apache/Apache1320/libexec/mod_vhost_alias.so into server: Permi
ssion denied
./apachectl start: httpd could not be started

I actually installed the Apache binary with root and then changed the ownership of the dir and all the files to the pvcs user and group. I did not want to start it with root but with pvcs users.

If I keep the owership with root it give permission problems and does not start it either..

Can somebody help me in this please...

Thanks in Advanc
New to HP
4 REPLIES 4
Steve Steel
Honored Contributor

Re: Call to mmap() failed - TEXT

Hi

http://forums1-it1.mayfield.hp.com/cm/QuestionAnswer/1,,0x99bcd08cc06fd511abcd0090277a778c,00.html

Gives very fair explanation.

Note the swap and file permissions


ALSO

http://atwnt961.external.hp.com/cxx-dev/CXX/cxx-dev.0008/0105.html

> This may be off topic , as I do not know where to go
> to get for Apache for HPUX 10.20.
>
> Got errors below, when trying to run "apachectl start"
>
> # ./apachectl start
> /usr/lib/dld.sl: Call to mmap() failed - TEXT
> /usr/local/apache/libexec/mod_vhost_alias.so


Check the permission of /usr/local/apache/libexec/mod_vhost_alias.so,
which needs to have execute permission set.


>
> /usr/lib/dld.sl: Permission denied
> Syntax error on line 207 of
> /usr/local/apache/conf/httpd.conf:
> Cannot load
> /usr/local/apache/libexec/mod_vhost_alias.so into
> server: Permission denied
> ./apachectl start: httpd could not be started


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Helen French
Honored Contributor

Re: Call to mmap() failed - TEXT

Just a try:

Change the permission of /opt/Apache/Apache1320/libexec/mod
_vhost_alias.so to '555'

# chmod 555 file_name

Also check the ownership/group of the file too
Life is a promise, fulfill it!
John McDen
Regular Advisor

Re: Call to mmap() failed - TEXT

Shiji and Steve,

I did change the permission but now I am getting a diff. error

/usr/lib/dld.sl: Unresolved symbol: dlclose (code) from /opt/pvcs68/vminet/tomc
at/bin/hpux/mod_jk.sl
/usr/lib/dld.sl: Unresolved symbol: dlopen (code) from /opt/pvcs68/vminet/tomca
t/bin/hpux/mod_jk.sl
/usr/lib/dld.sl: Unresolved symbol: dlerror (code) from /opt/pvcs68/vminet/tomc
at/bin/hpux/mod_jk.sl
/usr/lib/dld.sl: Unresolved symbol: dlsym (code) from /opt/pvcs68/vminet/tomcat
/bin/hpux/mod_jk.sl
Syntax error on line 5 of /opt/pvcs68/vminet/install/httpd_pvcs.conf:
Cannot load /opt/pvcs68/vminet/tomcat/bin/hpux/mod_jk.sl into server: Unresolved
external
./apachectl start: httpd could not be started

Thanks for a quick response..
New to HP
Helen French
Honored Contributor
Solution

Re: Call to mmap() failed - TEXT

Check this document (TKB #MJFKBRC00009488). This explains the same error:

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000060463964

Life is a promise, fulfill it!