View Full Version : install IMAP module on Apache
metan
13th September 2006, 09:31 PM
Hye, I actually work with RedHat and Apache version 1.3.28 and PHP verison 4.3.2. But I have to install IMAP module on it...I have to compilate again Apache and PHP, or a simple /.configure --with-imap is sufficient ? And I saw that I had 2 files on the server :
/home/user1/..../apache1.3.28/src/modules/standard/mod_imap.c
/home/user1/..../apache1.3.28/src/modules/standard/mod_imap.o
Can I use them ? if yes what type of command I have to enter ? except add AddType application/x-httpd-imap map , I really don't know what to do. thanks for the help.
metan
14th September 2006, 08:57 AM
Up anyone have an idea please ? :(
metan
14th September 2006, 01:33 PM
Hey, anyone can help or answer me ?
ccrvic
14th September 2006, 01:56 PM
/home/user1/..../apache1.3.28/src/modules/standard/mod_imap.c
That's a source file. You can't tell Apache to link to it.
/home/user1/..../apache1.3.28/src/modules/standard/mod_imap.o
That's a plain object file. It's part of the build process, but still not what you want.
Are you sure you need to rebuild? I'm using a rather different version (v2), but my standard installation has that module already available...
Vic.
metan
14th September 2006, 02:09 PM
No it's sure the module is not available, (a phpinfo(); no displays it, and I use an web app who needs IMAP module to work, and it's not works actually oO).
In fact how can I get the file I need, mod_imap.so, with my 2 files actuals ?
Because in httpd.con file, I have already a line "AddModule mod_imap.c" what means ?
and I think I have to add the line "Load Module imap_module mod_imap.so" no ! ?
Thanks for support.
ccrvic
14th September 2006, 02:27 PM
No it's sure the module is not available, (a phpinfo(); no displays it
That just tells you it's not in use. What does locate tell you?
Vic.
metan
14th September 2006, 02:33 PM
Yes it's not used, but I have to compile the mod_imap.c to get the mod_imap.so no ? a "locate mod_imap.so" don't find anything, and a "locate mod_imap.c" give
apache1.3.28/src/modules/standard/mod_imap.c
metan
14th September 2006, 02:34 PM
and what would be the command to correctly compile mod_imap.o to mod_imap.so ? and the mod_imap.o is used for what in fact ? Thanks for your support.
metan
14th September 2006, 03:18 PM
and last thing, when I do a "httpd -l", it shows the mod_imap.c....so how activate it ? I need a mod_imap.so to working correctly ? Thanks for the help. :)
metan
14th September 2006, 03:49 PM
LOL, i do my auto-feedback oO. So i done the command :
"apxs -i -c mod_imap.c"
To get mod_imap.so...Okay it worked. Then I go in httpd.conf, add the two following lines :
LoadModule imap_module "/lib/modules/mod_imap.so"
AddModule "mod_imap.c"
I save it...and when I do a "apachectl configtest" to check the httpd.conf, it tells me that :
[ERROR] : cannot remove module mod_imap.c not found in module list.
What does it means ! ? the mod_imap.so and mod_imap.o are all in the same directory of the others modules ? Whats wrong ?
metan
14th September 2006, 10:16 PM
up, anyone can help me please ? :(
metan
15th September 2006, 08:50 AM
lol, no guru for apache, or someone who is little specialized ?please need help, I didn't managed yet :/
metan
17th September 2006, 02:17 AM
up, we're on a redhat forum or not ? :(
metan
19th September 2006, 02:39 PM
Up. Incredible answer me please ! even to tell me you don't know ! it's a ghost-forum or what here ? :(
zeki
27th May 2009, 03:54 AM
I think all you need is
LoadModule imap_module "/lib/modules/mod_imap.so"
I don't think you need
AddModule "mod_imap.c"
Powered by vBulletin® Version 4.2.5 Copyright © 2019 vBulletin Solutions Inc. All rights reserved.