1

IIS での Unoconv の設定に関するアドバイスを探しています。

PHP経由でこれを実行しようとしていますが、次のエラーが発生します。

Verbosity set to level 3
Using office base path: C:\Program Files\LibreOffice
Using office binary path: C:\Program Files\LibreOffice\program
DEBUG: Connection type: socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
DEBUG: Existing listener not found.
DEBUG: Launching our own listener using C:\Program Files\LibreOffice\program\soffice.exe.
LibreOffice listener arguments are ['C:\\Program Files\\LibreOffice\\program\\soffice.exe', '--headless', '--invisible', '--nocrashreport', '--nodefault', '--nofirststartwizard', '--nologo', '--norestore', '--accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext'].
LibreOffice listener successfully started. (pid=8808)
Failed to connect to C:\Program Files\LibreOffice\program\soffice.exe (pid=8808) in 6 seconds.
Connector : couldn't connect to socket (WSAECONNREFUSED, Connection refused)
Error: Unable to connect or start own listener. Aborting.
  • PHPスクリプトを実行してファイルを変換する前にCMDで次のコマンドを実行unoconv --listenerすると、すべてが期待どおりに機能しますが、unoconvがこれを行う必要があるため、リスナーの作成プロセスを自分で管理したくありません。

  • App Pool Identity をすべての機能に切り替えるとLocalSystem、リスナーが作成され、ファイル変換が機能しますが、アクセスが多すぎます。

これを通常の方法で機能させるために何を設定する必要があるかについてのアイデアはありますApplicationPoolIdentityか?

ありがとうございました

ゲド

4

1 に答える 1

1

NAME_OF_YOUR_MACHINE\IIS_IUSRS関連するフォルダーにアクセス許可を付与し、AppPoolIdentity を使用してみてください

于 2018-09-26T15:56:08.110 に答える