小小百科网
标题:
ownCloud没有中文语言的解决方案
[打印本页]
作者:
xiaoxiao
时间:
2016-2-7 00:07
标题:
ownCloud没有中文语言的解决方案
本帖最后由 xiaoxiao 于 2016-2-7 00:19 编辑
今天使用lamp一键包安装环境后发现owncloud没有中文语言了
废话不多直接进入正题
研究得出结论,为php.ini惹的祸
编辑php.ini(lamp或lnmpa的默认php.ini路径为/usr/local/php/etc/php.ini)
找到disable_functions =字段
将原本的
disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
复制代码
修改为:
disable_functions = passthru,exec,system,shell_exec,proc_open,popen
复制代码
然后重启服务
重新刷新网页便可以选择语言啦!
另外福利时间,补充些php.ini里几个常需要修改的地方
常见参数解释如下:
register_globals:是否自动注册表单变量,安全原因不推荐设为on
magic_quotes_gpc:是否自动过滤输入内容中的特殊字符,如单引号
disable_functions:系统禁止的函数列表
output_buffering:输出缓存大小,为零禁止
display_errors:是否显示出错信息
max_execution_time:脚本最长执行时间,单位秒
memory_limit:内存限制
post_max_size/upload_max_filesize:POST最大大小/文件最大上传大小
allow_url_include:是否远程包含远程文件
欢迎光临 小小百科网 (http://www.aixiaoxiao.cn/)
Powered by Discuz! X3.3