Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #4274
| From | Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) |
|---|---|
| Newsgroups | de.comp.lang.php |
| Subject | Re: [little ot] PHP wExec convert -> Berechtigungsproblem |
| Date | 2017-10-02 16:45 +0000 |
| Message-ID | <1t59d26ad2i64fcn3e8%sfroehli@Froehlich.Priv.at> (permalink) |
| References | <oqti7v$3gp$1@news.albasani.net> |
[Zitate umgruppiert]
On Mon, 02 Oct 2017 16:25:03 Jan Novak wrote:
> Als "normaler" User oder natürlich als root auch funktioniert es.
> Was wäre die beste Möglichkeit, um die Umwandlung zu machen?
Du kannst Dir <http://php.net/manual/de/book.imagick.php> ansehen, dann
sparst Du Dir den Umweg über die CLI.
Ansonsten:
> exec('convert a.odt[0] a.jpg');
> convert-im6.q16: delegate failed `'soffice' --convert-to pdf -outdir
> `dirname '%i'` '%i' 2> '%u'; /bin/mv '%i.pdf' '%o'' @
> error/delegate.c/InvokeDelegate/1919.
> convert-im6.q16: unable to open file `/tmp/magick-19495UTZv6FNn3mcM':
> Datei oder Verzeichnis nicht gefunden @ error/constitute.c/ReadImage/544.
> convert-im6.q16: no images defined `./a.odt.jpg' @
> error/convert.c/ConvertImageCommand/3258.
Bei mir scheitert ein Aufruf von soffice mit der UID von www-data
daran, dass im Homeverzeichnis (/var/www/) kein Cache-Verzeichnis
erstellt werden kann:
$ soffice --convert-to pdf -outdir /tmp test.odt
| [Java framework] Error in function createSettingsDocument (elements.cxx).
| javaldx failed!
| Warning: failed to read path from javaldx
| Warning: -outdir is deprecated. Use --outdir instead.
| No protocol specified
|
| (process:17840): dconf-CRITICAL **: unable to create directory
| '/var/www/.cache/dconf': Permission denied. dconf will not work properly.
Ähnliches wird wohl auch bei Dir passieren, und dann findet convert
natürlich nicht das erwartete File, um es weiter zu konvertieren.
Servus,
Stefan
--
http://kontaktinser.at/ - die kostenlose Kontaktboerse fuer Oesterreich
Offizieller Erstbesucher(TM) von mmeike
Stefan - das prallste Angebot seit Konrad Zuse.
(Sloganizer)
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
[little ot] PHP wExec convert -> Berechtigungsproblem Jan Novak <repcom@gmail.com> - 2017-10-02 16:25 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2017-10-02 16:45 +0000
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Jan Novak <repcom@gmail.com> - 2017-10-03 10:24 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2017-10-03 11:14 +0000
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-04 01:53 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-04 01:55 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Jan Novak <repcom@gmail.com> - 2017-10-04 09:50 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-04 16:49 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-04 17:36 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-04 18:11 +0200
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2017-10-04 08:15 +0000
Re: [little ot] PHP wExec convert -> Berechtigungsproblem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-05 00:52 +0200
csiph-web