• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

View a Word Doc in IMP

Z

zondo

Guest
I have an issue when I am opening a word doc in horde webmail. THis is the error that I receive.
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wvHtml) is not within the allowed path(s): (/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/log:/usr/share/doc) in /usr/share/psa-horde/lib/Horde/MIME/Viewer/msword.php on line 34

This is an out of the box install, and the only problem appears to be not being able to open a word doc
 
Originally posted by zondo
I have an issue when I am opening a word doc in horde webmail. THis is the error that I receive.
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wvHtml) is not within the allowed path(s): (/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/log:/usr/share/doc) in /usr/share/psa-horde/lib/Horde/MIME/Viewer/msword.php on line 34

This is an out of the box install, and the only problem appears to be not being able to open a word doc
<Edited by JY> My original suggestion of modifying the open_basdir was not a good solution. Here is a better one:

Just copy the wvHtml from

/usr/local/bin

to

/usr/share/psa-horde/imp

and change the

/usr/share/psa-horde/imp/config/mime_drivers.php

file to reflect the following:

$mime_drivers['horde']['msword']['location'] = '/usr/share/psa-horde/imp/wvHtml';

IMP has access to it's own directory, so it will be able to execute the file from there.
 
Is there any security risk by adding /usr/bin to the path?
 
yes. php scripts will be able to execute any applications from there if you add it to php.ini.
 
Ah, sorry I forgot to mention the alternative earlier. Just copy the wvHtml from /usr/local/bin to /usr/share/psa-horde/imp and change the /usr/share/psa-horde/imp/config/mime_drivers.php file to reflect the following:

$mime_drivers['horde']['msword']['location'] = '/usr/share/psa-horde/imp/wvHtml';

IMP has access to it's own directory, so it will be able to execute the file from there.
 
your work around sounds interesting.

would you care to share where I could get wvHtml (and possible xlHtml - for excel files).

I did a locate but didnt find it on my system.

I'm guessing that http://wvware.sourceforge.net/ is the correct place ?
 
I was able to find wvHtml in a wv rpm file using rpmfind. With my 7.5.3. the mime_drivers.php was located in /etc/psa-horde/horde.
 
aharpham,

you may not know it, but you helped me a lot. I tried installing from source but had a problem. I didn't feel like posting it and working out a solution but when you mentioned rpmfind - I went out and thanks to your idea wvHtml is finally installed.

thanks ;)

[EDIT]

if anyone cares: I installed the wvHtml, xlhtml, ppthtml drivers into /usr/share/psa-horde/office_drivers/ so now I get to see word, excel and powerpoint without having to download them.
 
Back
Top