LetoDMS Community Forum
Full Text Index - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Technical Support (https://community.letodms.com/forumdisplay.php?fid=10)
+--- Thread: Full Text Index (/showthread.php?tid=522)

Pages: 1 2 3


RE: Full Text Index - DerMac - 10-05-2012

To unset the variable, you only have to uncomment the line in the php.ini

[...]
;safe_mode_exec_dir
[...]

Now php uses the standard value.
But I think this is a special "Problem" of the SynoBox.


RE: Full Text Index - atarifreak - 10-05-2012

thank you. i will try that on my ds 212+
i think my problem with lampp is some lampp specific, because installing letoDMS on debian squeeze works fine and pdftotext is called properly.


RE: Full Text Index - atarifreak - 10-15-2012

hi, can you help me how you get pdftotext working?
i am using xpdf ipkg file and extracted those pdf* binarys to /usr/syno/bin.
using that pdftotext command on console works great (it realy created some tct files. but how do i use that pdftotext used by letoDMS ?
i tryed it with safe_mode_exec_dir set to /usr/syno/bin, tryed uncomment that line. no luck...


RE: Full Text Index - Tscheggi - 10-19-2012

Hello,

i'm also a Synology-User and i have the same problem.
After a "few" installationproblems and a lot of help from atarifreak it works nearly perfect :-)

Now I have the same problem with the pdftotext.
I think it is located in the IndexedDocument.php on line 73-78.
The "if $fp" works, but the "$content"-variable at line 78 is always empty.

I don't understand why the open from $fp works and the read doesn't work.

Do you have an idea ?



RE: Full Text Index - DerMac - 10-19-2012

As I described in the post dated 10-03-2012, you can disable the variable via the web interface:

DSM -> Control Panel -> Web Services -> PHP Settings -> Unset the Value "Enable PHP safe_mode_exec_dir access limitations"

Remember, that this is a security-risk if your box is available for other users!


RE: Full Text Index - Tscheggi - 10-20-2012

Yes i have Seen it, but it still doesn't work
I think the Popen in line 73 have a problem :-(



RE: Full Text Index - Tscheggi - 10-22-2012

Next Test :
The count of line which will be read in Line 75 is always 1.
I've tested it with normal "safe_mode_exec_dir", with empty ""safe_mode_exec_dir" and with ""safe_mode_exec_dir" set directly to the pdftotext-directory.

It's always the same, it can't read the extracted text-file :-(


RE: Full Text Index - steinm - 10-22-2012

(10-22-2012, 11:48 AM)Tscheggi Wrote: Next Test :
The count of line which will be read in Line 75 is always 1.
I've tested it with normal "safe_mode_exec_dir", with empty ""safe_mode_exec_dir" and with ""safe_mode_exec_dir" set directly to the pdftotext-directory.

It's always the same, it can't read the extracted text-file :-(

Have you tried to wrte a simple php script which does the same thing outside of letodms and test it with several pdf files? It may help to isolated the problem.

Uwe


RE: Full Text Index - DerMac - 10-22-2012

It looks like you changed the safe_mode_exec_dir in the php.ini - this doesn't help. You have to set it via webfrontend.

Because it is not allowed php to execute the pdftotext-binary, the result is always empty. This is not a bug in the program.
Maybe a programmer could check and catch this state and print a readable error-message.


RE: Full Text Index - Tscheggi - 10-23-2012

Thank you, but I've tried it on WebInterface and php.ini and in both ways it doesn't work :-(