dto52236 2015-06-30 07:36
浏览 36
已采纳

在ubuntu14.04上使用apache安装PHP5.3

I need to install php5.3 for my cake php project. I installed php5.3.29 and apache separately. now in terminal it shows the php version as 5.3.29 and while i run localhost/info.php it shows the following output on browser

<?php 

phpinfo();

?>

Tried many solutions here but none worked

How can i solve this?

  • 写回答

2条回答 默认 最新

  • doudeng9425 2015-06-30 07:57
    关注
    o perl -pe 's|\Q.ph(p[345]?\E|.ph((p[345]?)| if $. <= 3'  /etc/apache2/mods-available/php5.conf
    

    This made it work.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?