简体   繁体   English

尝试删除旧的PHP版本

[英]Trying to remove old PHP version

I am trying to install PHP 5.3.8 on my Kubuntu box. 我正在尝试在我的Kubuntu盒子上安装PHP 5.3.8。 I made the mistake of trying to build 5.3.8 from source while 5.3.5 was still installed (APT package). 我犯了尝试在仍安装5.3.5(APT软件包)时从源代码构建5.3.8的错误。 So I did ./configure which succeeded, then tried to apt-get remove php5, then tried rebuilding again, and now my phpinfo() ALWAYS shows 5.3.5 even though I have tried to manually remove every trace of PHP and rebuild 5.3.8. 所以我做了./configure成功,然后尝试ap​​t-get删除php5,然后再次尝试重建,现在我的phpinfo()总是显示5.3.5,即使我尝试手动删除所有PHP痕迹并重建5.3。 8。 I've tried removing all PHP files and directories from /usr/lib, /usr/share, /var/lib, etc etc. Also tried remove --purge on libapache2-mod-php5 and reinstall. 我试过从/ usr / lib,/ usr / share,/ var / lib等删除所有PHP文件和目录。还尝试在libapache2-mod-php5上删除--purge并重新安装。 I don't know where it's seeing PHP. 我不知道在哪里看到PHP。 Even the paths showing up on phpinfo() have been removed and it STILL gives me the 5.3.5 info page. 甚至phpinfo()上显示的路径也已删除,它仍然为我提供了5.3.5信息页面。 Any ideas on what I should try next??? 关于下一步应该尝试的任何想法??? I don't want to rebuild my system again! 我不想再次重建系统!

You say you've done configure, but have you run make & make install? 您说您已经完成配置,但是您已经运行了make&make install吗?

If an old version of PHP is residing in your system, your phpinfo should provide valuable clues to where it's being stored. 如果您的系统中驻留了旧版本的PHP,则phpinfo应该提供有价值的线索来存储它。

Edit: From the comments below, I'd say you need to add 'apache2' to your PHP configure. 编辑:从下面的评论中,我想说您需要将'apache2'添加到您的PHP配置中。 This generates a module for PHP to be used with Apache. 这将生成一个与Apache一起使用的PHP模块。

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

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