Solved

Support required hosting a simple php app in free server space

Posted on 2013-12-18
12
389 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

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 110

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 110

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 110

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 110

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 how to implement server side field validation and display customized error messages to the client.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

730 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