Hi Dave.
I've configured an IMAP test, but it does not work. In my System Status is says:
IMAP - imap_open functions required
IMAP is not supported - don't configure IMAP tests or your environment will hang
I do have PHP5-imap support installed on this Debian Etch computer. What else would I be missing?
Thanks!
Paul
imap_open
Re: imap_open
Hi Paul,
Hmm.... Well all that does is do a function_exists() on the imap_open() function. Usually you are actually running two (hopefully identically optioned) versions of PHP with FreeNATS - the apache module for the web interface and the CLI binary for the automated scripts (testing). This error certainly does indicate lack of imap_open().
function_exists() seems to be pretty stable and in fact the example given is checking imap_open to see about IMAP method availability!
Can you try the following:
- create a web-accessible info.php file containing just:
- what does that output?
Cheers,
Dave.
Hmm.... Well all that does is do a function_exists() on the imap_open() function. Usually you are actually running two (hopefully identically optioned) versions of PHP with FreeNATS - the apache module for the web interface and the CLI binary for the automated scripts (testing). This error certainly does indicate lack of imap_open().
function_exists() seems to be pretty stable and in fact the example given is checking imap_open to see about IMAP method availability!
Can you try the following:
- create a web-accessible info.php file containing just:
Code: Select all
<?php phpinfo(); ?>
Cheers,
Dave.
-
- Posts: 92
- Joined: Thu Sep 04, 2008 9:48 pm
Re: imap_open
Hi Dave.
It outputs tons and tons of PHP info, but nothing on the page about IMAP.
Paul
It outputs tons and tons of PHP info, but nothing on the page about IMAP.
Paul
Re: imap_open
Hi,
You should at least have an IMAP section if not a "--with-imap" in the compiler info. It does look like your PHP (apache module version at least) doesn't have IMAP
To check your CLI version options you can from the shell do:
and then you can view cli.html and see if there is any difference or that has IMAP. It's the CLI version that would actually require it.
If you don't have it then it should be fairly simple to add it (sadly it's been 10 years or so since I used debian).
Cheers,
Dave.
You should at least have an IMAP section if not a "--with-imap" in the compiler info. It does look like your PHP (apache module version at least) doesn't have IMAP
To check your CLI version options you can from the shell do:
Code: Select all
php info.php > cli.html
If you don't have it then it should be fairly simple to add it (sadly it's been 10 years or so since I used debian).
Cheers,
Dave.
-
- Posts: 92
- Joined: Thu Sep 04, 2008 9:48 pm
Re: imap_open
Yes, the cli output of info.php shows several imap lines. And strangely, the IMAP node test is now working properly! However, the System Status Report still shows:
Environment
IMAP - imap_open functions required
IMAP is not supported - don't configure IMAP tests or your environment will hang
Sockets - Ok
Streams - Ok
MySQL - Ok
Mail - Ok
PHP5 - Ok
Paul
Environment
IMAP - imap_open functions required
IMAP is not supported - don't configure IMAP tests or your environment will hang
Sockets - Ok
Streams - Ok
MySQL - Ok
Mail - Ok
PHP5 - Ok
Paul
Re: imap_open
The tester script runs through the CLI version of PHP but your apache module doesn't support it. In theory this should mean imap tests should work though the status page will always show it as failing (as for web-based PHP the functions aren't available).
As for why it was failing originally I'm not sure. If it starts failing again have a look at the test session output (system admin - test sessions) which may show some errors.
Cheers,
Dave.
As for why it was failing originally I'm not sure. If it starts failing again have a look at the test session output (system admin - test sessions) which may show some errors.
Cheers,
Dave.