您的主机需要使用 PHP 5.3.1 或更高版本才能运行此版本的 Joomla

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17372494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 12:46:33  来源:igfitidea点击:

Your host needs to use PHP 5.3.1 or higher to run this version of Joomla

php.htaccessjoomlajoomla2.5joomla3.1

提问by Festus Tamakloe

I'am getting this:

我得到这个:

Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!

when trying to run Joomla 3.1.1 on PHP 5.2...

尝试在 PHP 5.2 上运行 Joomla 3.1.1 时...

My webspace provider could not make any php(5.3) upgrade at the moment.

我的网站空间提供商目前无法进行任何 php(5.3) 升级。

I add

我加

# Use PHP 5.3
AddType application/x-httpd-php53 .php

to my htacess.txt file but nothing

到我的 htacess.txt 文件,但没有

How can i run joomla 3 on php 5.2?

如何在 php 5.2 上运行 joomla 3?

回答by Alexandre Danault

You can't run it on PHP 5.2.

你不能在 PHP 5.2 上运行它。

But what you can do it find a better host that keeps PHP updated.

但是你可以找到一个更好的主机来保持 PHP 更新。

回答by Alexandre Danault

Joomla 3.x requires PHP 5.3.1 or higher to work properly but if your host offers an updated version of PHP, you can easily override the default PHP version with an htaccess rule.

Joomla 3.x 需要 PHP 5.3.1 或更高版本才能正常工作,但如果您的主机提供 PHP 的更新版本,您可以使用 htaccess 规则轻松覆盖默认的 PHP 版本。

The filename should be .htaccess.

文件名应该是.htaccess.

  • Connect to your site with FTP or File Manager
  • Create a file named htaccess.txt
  • Paste the following line into it:
  • 使用 FTP 或文件管理器连接到您的站点
  • 创建一个名为 htaccess.txt 的文件
  • 将以下行粘贴到其中:

Code:

代码:

AddType application/x-httpd-php53 .php
  • Rename it to .htaccess.
  • 将其重命名为.htaccess.

If it doesn't work, you might want to change register_globalsin your php.ini to off.

如果它不起作用,您可能需要将register_globalsphp.ini更改为off.

I hope this helps.

我希望这有帮助。

回答by Kris

You cant, it most likely uses 5.3 specific features so what you are asking is impossible. YOu need to upgrade to 5.3

您不能,它很可能使用 5.3 特定功能,因此您所要求的内容是不可能的。你需要升级到 5.3

回答by TravisO

Joomla requires 5.3 or higher because it's accessing features not found in older versions of PHP. It's not an issue of merely trying to pretend you have 5.3 or lying to Joomla.

Joomla 需要 5.3 或更高版本,因为它正在访问旧版本 PHP 中没有的功能。这不是仅仅试图假装你有 5.3 或对 Joomla 撒谎的问题。

Some webhosts might actually have a newer PHP installed, but it's not using it by default. If you search the help there might be a trick to enable 5.3 or newer on your site. If your host isn't offering 5.3 at all, it's time to find a new host. And while you are looking for a new host, get one that's running a recent build of 5.4.x because even 5.3 is now considered old.

一些虚拟主机实际上可能安装了较新的 PHP,但默认情况下不使用它。如果您搜索帮助,可能有一个技巧可以在您的站点上启用 5.3 或更高版本。如果您的主机根本不提供 5.3,则是寻找新主机的时候了。当您正在寻找新主机时,请选择运行最新版本 5.4.x 的主机,因为即使 5.3 现在也被认为是旧的。

回答by Half Crazed

Your htaccess file name should be .htaccessnot htaccess.txt

你的htaccess文件名应该是.htaccesshtaccess.txt

Secondly, your host has to have that application type registered.

其次,您的主机必须注册该应用程序类型。