I am using PhpWord for editing a word.docx file -- it works fine locally but on my Ubuntu 16.04 Nginx server I get a 500 network error stating Server Error
I examined my php syslog on the server and at first I had a couple of errors stemming from adding enable openssl and enable phar statements to my php.ini that i was told to do in a tutorial that i was previously using but can't find again. I removed those statements, checked using php -i | grep -i openssl
and the same for phar and both are enabled. Here's the printout from those:
SSL Version => OpenSSL/1.0.2g
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1b 26 Feb 2019
OpenSSL Header Version => OpenSSL 1.1.1b 26 Feb 2019
Openssl default config => /usr/lib/ssl/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
Native OpenSSL support => enabled
and
/etc/php/7.3/cli/conf.d/20-phar.ini,
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar
Phar
Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On
Looking back after removing those "enable" tags from php.ini, I looked back at my syslog and now there are no errors.
I've followed everything on the phpWord Installation Instructions, I have all of the mandatory dependencies installed, i don't know what I'm missing! Can anyone help?
Edit: A little bit more info: I'm installing the plugins using Composer