Linux: onlyoffice + nginx: Recognize php scripts and path.
Mon Aug 29 2022 14:00:33 GMT+0000 (UTC)
Saved by
@marcopinero
1) Instalar php7.0 y php7.0-fpm
2) modificar:
/etc/nginx/conf.d/onlyoffice-documentserver.conf
y colocar dentro de Server
location /myfolder {
alias /var/www/html/myfolder;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
3) reiniciar los servicios nginx y php7-0-fpm
content_copyCOPY
Comments