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条)

相关推荐 更多相似问题