在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
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) :
Download Kohana
Put the content of the folder
kohana-vx.x.x
on any part of your server that can be accessed from a browser.Browser to that folder
Follow the instructions in
install.php
.When at least all of the mandatory options are in green, remove
install.php
.If you then see an error message instead of
hello, world!
, open the fileapplication/bootstrap.php
with your text editor and replace the value ofbase_url
withstr_replace($_SERVER["DOCUMENT_ROOT"], '', getcwd()) . DIRECTORY_SEPARATOR
or whateverstring
this code gives you.
That's all it takes to install Kohana on ANY system.