owncloud 问题:PHP is apparently set up to strip inline doc blocks. This will make several

0
162

1.如果你打开页面看到如下错误:“PHP is apparently set up to strip inline doc blocks. This will make several core apps inaccessible.”这可能是由缓存/加速器造成的,例如 Zend OPcache 或 eAccelerator。打开你的打开php.ini文件,找到:[opcache],设置为:opcache.enable=0 和 opcache.enable_cli=0。

2.修改/usr/local/php/etc/php.d/opcache.ini


[opcache]
zend_extension=/usr/local/php/ext/opcache.so
opcache.enable=0
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.save_comments=0
opcache.fast_shutdown=1
opcache.enable_cli=0
;opcache.optimization_level=0


3.输入命令重启php


  • Apache 命令

/etc/init.d/httpd (start|stop|restart|status)

IP后面不加owncloud

lamp 修改 /usr/local/apache/conf/extra/httpd-vhosts.conf

DocumentRoot /data/www/default/owncloud
DirectoryIndex index.php index.html index.htm
<Directory /data/www/default/owncloud>

发布回复

请输入评论!
请输入你的名字