Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th November 2012, 13:49
johnnygear johnnygear is offline
Junior Member
 
Join Date: Aug 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Horde 5 - Error when communicating with server

Hi All,

Really hoping someone has more experience with Horde than I do

Current server setup:
- ISPConfig3 with Dovecot and Nginx
- Debian 6

I installed Horde 5 and I think the install went okay.

I just have a feeling that my nginx configuration might be a little off as I get 'Error when communicating with server' whenever I go to check mail or do other IMAP related tasks in Horde.

Please see errors from nginx logs below:
Code:
2012/11/08 16:24:18 [error] 28297#0: *1 open() "/var/www/horde/services/ajax.php/imp/viewPort" failed (20: Not a directory), client: MY.IP.ADD.RESS, server: example.com, request: "POST /horde/services/ajax.php/imp/viewPort HTTP/1.1", host: "example.com", referrer: "https://example.com/horde/imp/dynamic.php?page=mailbox"
2012/11/08 16:24:18 [error] 28297#0: *6 open() "/var/www/horde/services/ajax.php/imp/listMailboxes" failed (20: Not a directory), client: MY.IP.ADD.RESS, server: example.com, request: "POST /horde/services/ajax.php/imp/listMailboxes HTTP/1.1", host: "example.com", referrer: "https://example.com/horde/imp/dynamic.php?page=mailbox"
2012/11/08 16:30:06 [error] 28297#0: *12 open() "/var/www/horde/services/ajax.php/imp/viewPort" failed (20: Not a directory), client: MY.IP.ADD.RESS, server: example.com, request: "POST /horde/services/ajax.php/imp/viewPort HTTP/1.1", host: "example.com", referrer: "https://example.com/horde/imp/dynamic.php?page=mailbox"
2012/11/08 16:30:06 [error] 28297#0: *17 open() "/var/www/horde/services/ajax.php/imp/listMailboxes" failed (20: Not a directory), client: MY.IP.ADD.RESS, server: example.com, request: "POST /horde/services/ajax.php/imp/listMailboxes HTTP/1.1", host: "example.com", referrer: "https://example.com/horde/imp/dynamic.php?page=mailbox"
some of my nginx server config (let me know if anymore is required):
Code:
[...]
 location ~ \.php$ {
                fastcgi_pass                                    127.0.0.1:9000;
                fastcgi_index                                   index.php;
                include                                         /etc/nginx/fastcgi_params;
                fastcgi_param                                   HTTPS on;
                fastcgi_param                                   SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_buffer_size                             128k;
                fastcgi_buffers                                 256     4k;
                fastcgi_busy_buffers_size                       256k;
                fastcgi_temp_file_write_size                    256k;
                fastcgi_intercept_errors                        on;
        }
[...]
[...]
location /horde {
                fastcgi_split_path_info         ^(.+\.php)(/.+)$;
                fastcgi_param   PATH_INFO       $fastcgi_path_info;
                fastcgi_param   PATH_TRANSLATED $document_root$fastcgi_path_info;

                fastcgi_param   PHP_VALUE       "include_path=.:/usr/share/php";
                fastcgi_param   PHP_VALUE       "open_basedir=none";
                fastcgi_param   PHP_VALUE       "upload_tmp_dir=/var/www/horde/phptmp/";
        }
[...]
I added the top 3 lines in the horde location after doing some reading on horde / nginx issues someone else had posted about, but it has not rectified the issue.

If anyone needs any other outputs or configs from my server please let me know.

Thanks,

JG
Reply With Quote
Sponsored Links
  #2  
Old 9th November 2012, 15:39
johnnygear johnnygear is offline
Junior Member
 
Join Date: Aug 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have been trying to figure this out some more tonight.

What seems odd to me is that when I log into horde, on the summary page, it lists how many emails I have, so it must be accessing my imap account.

Yet, when I look in at the Mail tab of horde, I still get the "Error when communicating with server".

JG
Reply With Quote
  #3  
Old 20th November 2012, 09:06
pvanthony pvanthony is offline
Member
 
Join Date: Jun 2012
Location: Singapore
Posts: 39
Thanks: 6
Thanked 5 Times in 4 Posts
Send a message via Skype™ to pvanthony
Default

Hi,

Here is my nginx config for Horde. It is working for me. Try it out. Please note that I am not an expert and also please check if the settings are ok for security.

----------------- start ------------------------
location /horde {
root /var/www/apps/;
index index.php index.html index.htm;

location ~ \.php {
fastcgi_param PHP_VALUE "cgi.fix_pathinfo=1";
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
#try_files $uri =404;
root /var/www/apps/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

# pvanthony added this because of timeout problem when
# importing addressbook.
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;

fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}

location ~* ^/horde/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/apps/;
}
}

------------------ end ------------------------

P.V.Anthony
Reply With Quote
The Following User Says Thank You to pvanthony For This Useful Post:
the_matrix (27th September 2013)
  #4  
Old 27th September 2013, 20:58
the_matrix the_matrix is offline
Junior Member
 
Join Date: May 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by pvanthony View Post
Hi,

Here is my nginx config for Horde. It is working for me. Try it out. Please note that I am not an expert and also please check if the settings are ok for security.

----------------- start ------------------------
location /horde {
root /var/www/apps/;
index index.php index.html index.htm;

location ~ \.php {
fastcgi_param PHP_VALUE "cgi.fix_pathinfo=1";
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
#try_files $uri =404;
root /var/www/apps/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;

# pvanthony added this because of timeout problem when
# importing addressbook.
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;

fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}

location ~* ^/horde/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/apps/;
}
}

------------------ end ------------------------

P.V.Anthony
Thanks its worked like a charm.

I have searched so many threads and this one worked very well

Regards.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Local mail server - final touch Alexhor Installation/Configuration 4 12th April 2012 22:33
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02
What can be wrong martin_rudowicz Installation/Configuration 9 11th May 2008 19:42
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 11:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.