Solved

Support required hosting a simple php app in free server space

Posted on 2013-12-18
12
388 Views
Last Modified: 2014-01-22
I have a simple php application and I need to host it.  I have created a free account in 000webhost.com . They have provided me ftp credentials. In my local machine, the directory structure for the project is as follows:

   C/wamp/www/myproject

Also I have placed the framework yii from http://www.yiiframework.com/ in the same path above.

When I log in to ftp for the free server account, I can only see the public_html folder. I do not know where I should place myproject and yii folders to host the project succesfully.

I have already created database in this free server space using phpmyadmin.

Any help which will guide me to the correct solution will be appreciated with full points.
0
Comment
Question by:Sreejith22
  • 4
  • 4
  • 3
  • +1
12 Comments
 
LVL 1

Assisted Solution

by:patrickdelosreyes
patrickdelosreyes earned 100 total points
ID: 39726368
Hi, I suggest to go back and ask the hosting company. They should be able to provide you with the correct path.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39726385
Topics
    Java Programming Language
Why?
0
 

Author Comment

by:Sreejith22
ID: 39726402
happened by mistake CEHJ
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:Sreejith22
ID: 39726411
I am almost close to solution I guess. I copied the contents of my project to public_html folder. Also I copied the contents of yii folder to the same public_html folder.

Now when I access the url, I get the following error:

http://androidprofessor.net63.net/
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39726693
Please show us line 12 that generates the error.  It looks like the path to the Yii framework is not correct.
0
 

Author Comment

by:Sreejith22
ID: 39726825
<?php

// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

// 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);

require_once($yii);
Yii::createWebApplication($config)->run();

Open in new window

0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 400 total points
ID: 39726853
Also I copied the contents of yii folder to the same public_html folder.
You may want to change this line4:

$yii=dirname(__FILE__).'/../yii/framework/yii.php';

To this, to account for the same public_html folder.

$yii=dirname(__FILE__).'/yii/framework/yii.php';

You may be able to verify this by looking at the directory structure.  It should look something like this.

public_html
|
-->yii
   |
   -->framework
    |
    -->yii.php

Open in new window

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39726864
So you've fixed it now?
0
 

Author Comment

by:Sreejith22
ID: 39726906
@CEHJ - Not yet.

@Ray_Paseur - So, you mean to say, I should upload yii folder directly to public_html folder, rather than copying the contents of it to public_html?
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39727223
I don't know for sure.  I do know that it appears to be looking for this kind of directory structure (somewhere) and that seems to imply that there needs to be a yii/ folder.

/yii/framework/yii.php
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39727344
Well the app seemed to be ok last time i hit the url
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39727364
@CEHJ: Agreed -- it looks like it's behaving now.
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article discusses four methods for overlaying images in a container on a web page
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question