Hi all, I’m working on integrating OO into my PHP web app where I basically store some files and I would like to be able to open and edit then in OO.
I’m following the path described in this article: Add Office Functionality to Your Web App with OnlyOffice — SitePoint where it talks about “Opening a document in the browser”.
I have OO installed on a VM (not docker) and first of all I have to connect to the api.js file from my web app but I get a time out error.
In default.json file in th OO VM I have added the IP of the web app in the allowed list and I have disabled JWT
"externalRequest": {
"directIfIn" : {
"allowList": [109.106.246.235],
"jwtToken": false
},
"token": {
"enable": {
"browser": false,
"request": {
"inbox": false,
"outbox": false
}
},
but it still doenst work.
Any hint or suggestion on how to fix that?
Thanks in advance!
Hello @lorenzo, please check out the following PHP app integration example and refer to its implementation: PHP example | ONLYOFFICE
Thank you for your hint DmitriiV.
I am trying to run the PHP example but once I run “make server-prod” I get the follwoing error:
make: php-fpm: No such file or directory
make: *** [Makefile:57: server-prod] Error 127
I am running this on a cleam Ubuntu 24.04 LAMP stack with PHP 8.3. Any idea of what can cause this error?
Hello @lorenzo
If you don’t mind, I will join this thread as well.
Could you please double-check whether php-fpm is installed (php-fpm -v
command)? If it’s not present, please install it and try to reproduce the situation again
Hi @Alexandre Alexandre, thank you for joining theis conversation!
I tried running php-fpm -v and I get command not found.
But if I run php-fpm8.3 -v
I get
PHP 8.3.6 (fpm-fcgi) (built: Mar 19 2025 10:08:38)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
So it seems that php-fpm is installed correctly but still I get the following when running make server-prod:
make: php-fpm: No such file or directory
make: *** [Makefile:57: server-prod] Error 127
root@vultr:~/PHP Example#
Any idea of what can be the issue?