PHP 说“PCRE 不是用 UTF-8 编译的”
我有一个网络服务器,里面有一些个人网站和东西,它运行着 Debian Lenny、Apache 2 和 PHP 5。我总是使用 apt 来安装东西。
这个周末,我尝试安装 Ruby on Rails 只是为了好玩。我没有让它工作,但这是另一个问题。今天我注意到我运行 PunBB 的网站之一已停止工作。我收到的错误如下:
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /home/arood/sitename/include/utf8/utf8.php on line 51 Fatal error: PCRE is not compiled with UTF-8 support in /home/arood/sitename/include/utf8/utf8.php on line 52
pcretest -C
告诉我我在服务器上安装了支持 UTF-8 的版本 8.12,但 phpinfo()
告诉我它正在使用 8.02 。我通过谷歌发现 apache 正在使用它自己的版本,但我不知道如何解决我的问题。
有人可以帮我让它再次工作吗?
谢谢
I have a webserver with some personal websites and stuff, it's running Debian Lenny, Apache 2 and PHP 5. I always use apt
to install stuff.
This weekend, I tried installing Ruby on Rails just for fun. I didn't get it working, but that's a problem for another time. Today I noticed that one of my websites running PunBB has stopped working. The error I get is the following:
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /home/arood/sitename/include/utf8/utf8.php on line 51 Fatal error: PCRE is not compiled with UTF-8 support in /home/arood/sitename/include/utf8/utf8.php on line 52
pcretest -C
tells me I have version 8.12 installed with UTF-8 support on the server, but phpinfo()
tells me it's using 8.02. I've found out via google that apache is using it's own version, but I can't figure out how to fix my problem.
Could somebody help me get this working again?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论