|
Compiling IMAP support into Directadmin's PHP
|
|
|
|
|
Written by wunk
|
|
|
|
Friday, 14 May 2004
Compiling PHP yourself with custom options can still be a pain in the ass.., the Directadmin devs made it quite easy to add custom options to the apache/php compile, you just have to know how to do it :-)
The PHP with IMAP option is asked quite often due some webmail packages needing it.. Get the imap* RPM's from one of the RedHat or Fedora mirrors.., if you run Redhat 9.., next set of commands should work:
rpm -Uvh ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/linux/9/en/os/i386/RedHat/RPMS/imap*
cd /usr/local/directadmin/customapache rm -f configure.php ./build clean ./build update
Open up the freshly downloaded configure.php, and modify the last part: add a to the last line and then add imap: --enable-track-vars --with-imap
Save that file, then do: ./build php
Answer yes to all rebuild questions to make sure you're up to date on all packages, then once it finishes do a: service httpd restart
You should have imap support then.., quick way to check: create a file in /var/www/html/ called phpinfo.php with the following lines: <?php phpinfo(); ?>
Then go to: http://your.ip.address/phpinfo.php And you should be able to see the freshly compiled IMAP with that info..
Good luck :-) |
| Last Updated (
Friday, 14 May 2004 ) |