简体   繁体   English

apache2和神奇的php二进制文件

[英]apache2 and the magicial php binary

i updated and installed php to 5.2.11 yet 5.1.2 was still being used. 我将php更新并安装到5.2.11,但仍在使用5.1.2。 I did a search of all php5 binaries and replaced it with a hardlink to php (which says 5.2.11 when writing -v). 我搜索了所有php5二进制文件,并将其替换为与php的硬链接(在编写-v时显示5.2.11)。 However, after doing a cold boot apache2 is still using 5.1.2. 但是,冷启动后,apache2仍使用5.1.2。 AFAIK i dont have any binaries left of 5.1.2 and my current json code doesnt run (in apache... does when i type php(5) code.php) AFAIK我没有5.1.2剩下的任何二进制文件,并且我当前的json代码没有运行(在apache中...当我键入php(5)code.php时会这样做)

If you are running php as an apache module then the binary will be different from the cli binary (it will be an apache module file). 如果您将php作为apache模块运行,则该二进制文件将与cli二进制文件不同(它将是apache模块文件)。 On my machine it is /usr/lib/apache2/modules/libphp5.so , you might want to check that this (or equivalent) is up to date. 在我的机器上,它是/usr/lib/apache2/modules/libphp5.so ,您可能要检查此(或等效文件)是否最新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM