[horde] Dynamic view Horde with apache and php-fpm not working
Jos van der Woude
jos at veerkade.com
Sun Feb 15 20:01:16 UTC 2015
Hi all,
A few days ago I fedup-ed my horde groupware 5.2.5 server to Fedora 21 and
I am now using apache with php-fpm.
The new service php-fpm is running, the relevant proxy modules are loaded
in Apache.
and I am having the following problem:
Horde dynamic view does not work properly:
I am seeing the count of recent, unread emails in the opening
portal (which means my IMAP backend is set up correctly) but am
getting the error ("Error when communicating with the server") when
looking for the complete email list in IMP's dynamic mode.
The relevant error is:
[Sun Feb 15 16:08:09.815854 2015] [proxy_fcgi:error] AH01071: Got error
'Unable to open primary script: redirect:/rampage.php
(No such file or directory)\n', referer:
.../horde/imp/dynamic.php?page=mailbox
Obviously the file rampage.php is indeed present in the main horde
directory and accessible to the apache owner.
In basic mode all is working just fine; smartphone access using ActiveSync
is fine too.
From an earlier post the suggestion came there might be a catchall in the
Apache config that stops it from responding to the ajax request for the
folder trees & list of emails.
Just the same happens with the calendar view.
I do not know how to fix this.
Contents of /etc/httpd/conf.d/php.conf:
#
# The following lines prevent .user.ini files from being viewed by Web
clients.
#
<Files ".user.ini">
Require all denied
</Files>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
# Pass PHP scripts to PHP-FPM
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
ProxyErrorOverride On
Contents of .htaccess in the horde directory
# .htaccess
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /var/www/html/mail/horde
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ rampage.php [QSA,L]
</IfModule>
Relevant contents of /etc/httpd/conf/httpd.conf
...
<VirtualHost *:443>
...
DocumentRoot "/var/www/html/mail/horde"
...
Alias /horde /var/www/html/mail/horde/
Alias /Microsoft-Server-ActiveSync
/var/www/html/mail/horde/rpc.php
Alias /Autodiscover/Autodiscover.xml
/var/www/html/mail/horde/rpc.php
<Directory "/var/www/html/mail/horde">
# enable the .htaccess rewrites
AllowOverride All
Require all granted
SSLRequireSSL
</Directory>
</VirtualHost>
...
Does anyone know how I can fix this problem? Any help is much appreciated!
Regards,
Jos van der Woude
--
This message has been scanned for viruses and dangerous content by
MailScanner at the Veerkade Network and is believed to be clean.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 2393 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/horde/attachments/20150215/fe1b7fce/attachment.bin>
More information about the horde
mailing list