Posted 01 May 2012 - 01:06 PM
I need a bit of help here...
I am just getting started with Yii. I am trying to upload it onto a shared server (I have a hosting package with 123-reg).
I know that I have to create the web app on my computer and then upload it in ftp, as I do not have the required access on to the server to create the web app online.
I have created the demo web app and tried to upload it to root but I get the error:
Warning: require_once(/websites/123reg/LinuxPackage99/ol/iv/er/oliverinnovations.co.uk/public_html/haggle/demo/YiiRoot/framework/yii.php) [function.require-once]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage99/ol/iv/er/oliverinnovations.co.uk/public_html/haggle/demo/index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '/websites/123reg/LinuxPackage99/ol/iv/er/oliverinnovations.co.uk/public_html/haggle/demo/YiiRoot/framework/yii.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites/123reg/LinuxPackage99/ol/iv/er/oliverinnovations.co.uk/public_html/haggle/demo/index.php on line 12
I think this is something to do with it trying to locate the yii.php in framework, but I cant make it work...
Am I making any sense? Anyone have any ideas?
Posted 01 May 2012 - 01:21 PM
Have you checked that your host meets Yii requirements?
Anyway, it seems like a relative path problem in index.php. Can you check and/or post its contents?
Posted 01 May 2012 - 02:22 PM
// change the following paths if necessary
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
Posted 01 May 2012 - 03:35 PM
Pay also attention to the path and filenames case, especially if your develop on Windows.
Have you also checked YiiRoot permissions and demo folder permissions? I think there have been some discussions about permissions problems on this forum.
I'm sorry I can't give an exact answer. But I think it's good to eliminate some trivial possibilities.
Posted 07 January 2013 - 04:31 PM
Rather than starting a new thread, I thought I would bump this.
I bought shared hosting with 213reg. I am attempting to upload a Yii site to the account but it seems to me that 123reg only allows the creation of new folders within /public i.e. I cannot create a non web-accessible folder to hold the framework in.
Can anyone confirm is this is correct? If so, how risky is it to have the yiiroot folder in the /public directory?