dongna2498 2019-05-25 23:13
浏览 54

PhpWord无法在ubuntu服务器上运行:“服务器错误”

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

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看