Php & Imap

The configure script does just that. :-)

It configures the PHP installation, a make and a make install after that will install PHP.

The build script will do all that for you.

Tino
 
is it worth saying yes and over writing everything? By the way my php seems to still work
 
Code:
cd /usr/local/directadmin/customapache
./build clean
./build php
If you want to restore the defaut configure.php file, run:
Code:
cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
./build php
John
 
uk_joker2003,

How did it all work out? Did you get a clean install of PHP? And did you manage to add imap support in PHP?

You can also add --with-imap-ssl to the ./configure line of PHP... I forgot to mention that earlier.

TIno
 
Quick IMAP into PHP guide:

Get the imap* RPM's from one of the RedHat 9 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://you.ip.address/phpinfo.php
And you should be able to see the freshly compiled IMAP with that info..

Good luck :-)
 
I have tried both of these and keep getting

checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.

*** There was an error while trying to configure php. Check the configure.php file

If I take the --with-imap out of the configure.php file, it will work. But I need IMAP.

What do I need to do, to fix this?

Thanks, Eddie
 
When I tried to install the rpm's, I was informed they were already installed.

I tried again adding --force to insure they were installed.

Eddie
 
Could you try the following:

Type in a bash command line:
export LANG=en_US
And then recompile in that same shell ?

(do a './build clean' first, then a './build update', put the changes in the config.php again for imap, then a './build php', might even want to remove the php-4.3.4 source directory)

There's a bug in the plain RH9 release of bash, which has a weird language setting, and it messes up a certain range of compiles (Perl's CPAN completely breaks if you try to compile something in a plain RH9 setup without updates)

Dunno if this causes it, but it's worth a shot..
 
Sounds like some libraries or header files are missing. After making imap, did you correctly copy the required header files and libraries to the correct location?

Tino
 
Wunk said:
There's a bug in the plain RH9 release of bash, which has a weird language setting, and it messes up a certain range of compiles (Perl's CPAN completely breaks if you try to compile something in a plain RH9 setup without updates)

Dunno if this causes it, but it's worth a shot..

Ok, thanks. I'll give it a shot tonight!
 
I have tried all of the above. I still can't get it to work.
I must be missing something.
Is there some sort of up2date command to get any missing libraries?
 
I compiled using the command tino gave for redhat 9, but after I did I had no c-client.a file creted that I could copy.

So I am stuck and I don't know how to proceed from here.

TIA
 
I tried to use it using up2date imap then running the configure, but It tells me it cant find "rfc822.h."
 
Back
Top