doucan957495 2016-04-14 15:18
浏览 22

如何在子域上使用自定义php版本?

In a bluehost subdomain I want to use a different php version. Default is 5.4, I want to use 5.6. According to this link all I have to do is add a .htaccess file

# Use PHP5.6 as default
    AddHandler application/x-httpd-phpbeta .php

But the php is not running, so no page is showing.

  • 写回答

1条回答 默认 最新

  • doudu4282 2016-04-14 15:51
    关注

    You mentioned it is a subdomain. Are you using a free hosting service.

    All the server options wont be available for a free hosting service.

    Check which version of php is installed using,

    <?php phpinfo(); ?>
    

    If the website page is blank, reason could be, errors might have been disabled by default. So enable php errors and check. Also, check server error log.

    评论

报告相同问题?

悬赏问题

  • ¥15 ios 新安装app收不到fcm推送
  • ¥15 有没有实力的写手?有过成品的优先
  • ¥15 图像信息库的建立与识别
  • ¥15 韩国网站购物,KG支付的支付回调如何解决
  • ¥15 workstation导入ovf文件,报错,怎么解决呢?
  • ¥15 关于#c语言#的问题:构成555单稳态触发器,采用LED指示灯延时时间,对延时时间进行测量并显示(如楼道声控延时灯)需要Proteus仿真图和C语言代码
  • ¥15 workstation加载centos进入emergency模式,查看日志报警如图,怎样解决呢?
  • ¥50 如何用单纯形法寻优不能精准找不到给定的参数,并联机构误差识别,给定误差有7个?matlab
  • ¥15 workstation加载centos进入emergency模式,查看日志报警如图,没有XFS,怎样解决呢?
  • ¥15 应用商店如何检测在架应用内容是否违规?