LNMP的服务器装了WordPress以后,默认是英文的,改成中文显示就一直提示“有新的翻译可用”。查了下,在一个博客找到解决办法,也总结过来:
打开php.ini 搜索 disable_functions 然后找到 scandir 删除保存,重启PHP
然后再到仪表盘更新一下翻译,就可以了。
注:LNMP配置的环境php.ini位于
/usr/local/php/etc/php.ini<pre class="theme:xcode wrap:true lang:default decode:true">disable_functions = passthruexecsystemputenvchrootchgrpchownshell_execpopenproc_openpcntl_execini_alterini_restoredlopenlogsyslogreadlinksymlinkpopepassthrupcntl_alarmpcntl_forkpcntl_waitpidpcntl_waitpcntl_wifexitedpcntl_wifstoppedpcntl_wifsignaledpcntl_wifcontinuedpcntl_wexitstatuspcntl_wtermsigpcntl_wstopsigpcntl_signalpcntl_signal_dispatchpcntl_get_last_errorpcntl_strerrorpcntl_sigprocmaskpcntl_sigwaitinfopcntl_sigtimedwaitpcntl_execpcntl_getprioritypcntl_setpriorityimap_openapache_setenv ; This directive allows you to disable certain classes for security reasons. ; It receives a comma-delimited list of class names. ; http://php.net/disable-classes
提示:宝塔面板默认是没有这个函数的 如果还提示更新翻译 请删除或更新相应的插件 看语言包前缀