在PHP - Web Hosting Server上安装Kohana Framework

在PHP  -  Web Hosting Server上安装Kohana Framework

问题描述:

Could the PHP Kohana Framework be installed on any Web Hosting Server which provides PHP5?

I wonder because it is purely written in PHP5 built-in objects.

Do I have to be aware of any extraordinary setups or can I simply follow the installation documentation and get it run on the web hosting server?

PHP Kohana Framework是否可以安装在任何提供PHP5的Web Hosting Server上? p>

我想知道,因为它纯粹是用PHP5内置对象编写的。 p>

我是否必须了解任何特殊设置,或者我只需按照安装文档运行即可运行 在网络托管服务器上? p> div>

When you upload the files to your server and try to access the index.php, the system will automatically call the install.php and check whether Kohana will run on the server or not.

You can see the requirements in the documentation

enter image description here

Update

I just had the problem that I tried installing Kohana on a server with only basic PHP extension installed. The Environment Test didn't fail, however I got a white page when trying to access it (after removing install.php).

The problem was mbstring wasn't yet installed and Kohana didn't check for it, just assumed it was.

Yes, Kohana can be installed on just about any server. There are some optional things, like image manipulation and emailing, that will not work if the extensions are not installed/enabled, though.

You can go through Kohana's documentation and figure this out on your own.

How to install Kohana (on a shared host or elsewhere) :

  1. Download Kohana

  2. Put the content of the folder kohana-vx.x.x on any part of your server that can be accessed from a browser.

  3. Browser to that folder

  4. Follow the instructions in install.php.

  5. When at least all of the mandatory options are in green, remove install.php.

  6. If you then see an error message instead of hello, world!, open the file application/bootstrap.php with your text editor and replace the value of base_url with str_replace($_SERVER["DOCUMENT_ROOT"], '', getcwd()) . DIRECTORY_SEPARATOR or whatever string this code gives you.

That's all it takes to install Kohana on ANY system.