0

I try to use onlyoffice with PHP example API.

I follow this guide to install.

I succeed install document server in address: http://192.168.131.132, here is image of document server:

enter image description here

Then I download PHP code in same server with document server (different port: port 81).

I change config.php like this:

enter image description here

It show me the GUI like this:

enter image description here

I can upload my document to server, like this:

enter image description here

But I can't view or edit my office file. This is error like this:

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
ThanhLam112358
  • 878
  • 1
  • 20
  • 51

1 Answers1

1

Please try adding one more GLOBAL to the config.php:

$GLOBALS['EXAMPLE_URL'] = "http://192.168.131.132:81/PHP%20Example/";

If that doesn't help make sure that the permissions are set correctly for the folder with PHP Example. The error couldn't be saved is described here

ibnpetr
  • 472
  • 2
  • 5
  • Thanks you for your comment. I have a question. Because I install document server and PHP example on same server. So I must change apache port = 81 (Nginx install default = 80). So I config.php, parameter documentserver=192.168.131.132:81 or only 192.168.131.132 – ThanhLam112358 May 16 '18 at 14:28
  • And. I use only onlyoffice not connect owncloud or nextcloud. It is ok? – ThanhLam112358 May 16 '18 at 14:48