I think key is adding:
Content-type: text/html
Newline
Newline

Stefan

Op 24 feb 2011 om 23:26 heeft "C. Kruger" <[email protected]> het volgende geschreven:\

Hi,

Can anyone give me some guidance how to let the web server user execute a linux shell command ?

I have installed Tesseract on my Ubuntu 10.10 server, and have a php script that needs to execute /usr/local/bin/tesseract to do the OCR and output the results to an html file in a sub directory called "ocr" under the default's server root. (/var/www/ocr)

I tried to give my php script all kinds of permissions - but I still get a Internal Server 500 error.

The /var/www/ocr directory permissions is set to 777 and owned by www-data user and group.

I have also tried putting the Tesseract executable in the /usr/lib/ cgi-bin directory and ran my script from my server's IP/cgi-bin - but I am having no joy.

I checked the documentation on the cgi handler as well - but I am completely lost as to which settings are needed (if any) to do the above.

Is there anyone that can give me step by step guidance how to let my script run the /usr/local/bin/tesseract command and to get it to write to /var/www/ocr ?

Your assistance is very much appreciated.
Thank you
Christoff Kruger

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to