Instruções de Instalação do CodeIgniter
De Babel Digital
Baixar, descompactar e apagar documentos e licença- license.txt user_guide
wget http://codeigniter.com/download_files/reactor/CodeIgniter_2.0.2.zip unzip CodeIgniter_2.0.2.zip mv CodeIgniter_2.0.2 wwwdata rm -rf wwwdata/license.txt wwwdata/user_guide/
Lista pra ver o que fico dentro da pasta com fonte do CodeIgniter.
$ ls wwwdata/ application index.php system
Criar diretório wwwhttp, que vai ficar com acesso a web e movendo o index.php pra a pasta.
mkdir wwwdata/wwwhttp mv wwwdata/index.php wwwdata/wwwhttp/index.php
Fica assim CodeIgniter abaixo da wwhttp, nao ficando com acesso direto a web.
$ ls wwwdata/ application system wwwhttp
Entrar na pasta wwwdata - onde esta fonte do CodeIgniter.
cd wwwdata
Ver caminho/path pra colocar dentro do index.php (que esta no wwwhttp) nas variavel: $system_path e $application_folder
$ pwd /var/www/usuario/wwwdata
Editar o index.php
$ nano wwwhttp/index.php
e colocar caminho ate o system e application. Se desejar, pode mudar nome da pasta application e system e informar no index.php
/* *--------------------------------------------------------------- * SYSTEM FOLDER NAME *--------------------------------------------------------------- * * This variable must contain the name of your "system" folder. * Include the path if the folder is not in the same directory * as this file. * */ $system_path = '/var/www/usuario/wwwdata/system'; /* *--------------------------------------------------------------- * APPLICATION FOLDER NAME *--------------------------------------------------------------- * * If you want this front controller to use a different "application" * folder then the default one you can set its name here. The folder * can also be renamed or relocated anywhere on your server. If * you do, use a full server path. For more info please see the user guide: * http://codeigniter.com/user_guide/general/managing_apps.html * * NO TRAILING SLASH! * */ $application_folder = '/var/www/usuario/wwwdata/application';