Como Faze-Lo Funcionar No Apache ? /web

Boa tarde.

Desenvolvi uma aplicação simples e gostaria de publicar em meu ftp.

Passei os arquivos para a pasta public_html, porém no Yii Framework os dados são lidos a partir da pasta web.

Tentei criar um link simbólico via ssh e não consegui.

Tentei mudar o rewriteBase do htacces, sem sucesso também.

Como faço para o apache ler a pasta web em vez de ler a pasta public_html ??

Desde já agradeço.

your web application must reside in public directory, like public_html, your domain must point to that location. Now, your yii framework location must not go here inside the public_html, it must go outside in order to protect your core files.

sample directory:

var/

yii/

1.1/


framework/


  	yii.php

public_html/

index.php —> include yii.php path, specifying the path outside yout public_html directory.

protected/

bla…

in this case yii.php is included using this settings in your index.php




<?php

error_reporting(E_ALL);

ini_set('display_errors','on');

$yii='/var/yii/1.1/framework/yii.php';

$config=dirname(__FILE__).'/protected/config/main.php';

defined('YII_DEBUG') or define('YII_DEBUG',true);

defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);

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



also, try using: “ini_set(‘display_errors’,‘on’);” (in index.php) to see what error occurs, and of course, provide logs.

Tacno,

Qual o erro que aparece?

Bem, me desculpe, mas esqueci a informação mais importante. Estou utilizando o Yii Framework 2.0 alpha.

E a aplicação roda em web/index.php.

Está assim.

Rodando em public_html

Deveria estar rodando em public_html/web/index.php

Perdão não ter informado.