Vijay, thanks, but mod_rewrite is not available on this server.

I'm sure now that this is not a Cake problem.

On Wed, Aug 12, 2009 at 1:59 PM, Vijay Kumbhar<[email protected]> wrote:
> Hello Brain,
>
> Please edit the .htaccess in the root folder & app folder.
> Add the app/webroot instead of webroot.
>
> On Wed, Aug 12, 2009 at 9:37 PM, brian <[email protected]> wrote:
>>
>> @Robert, the .htaccess files were already removed and the App.baseUrl
>> line uncommented.
>>
>> @Jonathon, I'm not completely certain what you mean, but I know that
>> it *was* working. PHP, that is.
>>
>> I'm actually quite sure that the problem is not with Cake, though. It
>> probably is due to something else with the server.
>>
>> @James, here's index.php:
>>
>> define('APP_DIR', 'app');
>> define('DS', DIRECTORY_SEPARATOR);
>> define('ROOT', dirname(__FILE__));
>> define('WEBROOT_DIR', 'webroot');
>> define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);
>>
>> if (!defined('CAKE_CORE_INCLUDE_PATH')) {
>>        //define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE
>> CAKE
>> CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
>>        define('CAKE_CORE_INCLUDE_PATH', ROOT);
>> }
>> if (function_exists('ini_set')) {
>>        ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
>> CAKE_CORE_INCLUDE_PATH . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS);
>>        define('APP_PATH', null);
>>        define('CORE_PATH', null);
>> } else {
>>        define('APP_PATH', ROOT . DS . APP_DIR . DS);
>>        define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
>> }
>> require CORE_PATH . 'cake' . DS . 'basics.php';
>> $TIME_START = getMicrotime();
>> require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
>> require LIBS . 'object.php';
>> require LIBS . 'inflector.php';
>> require LIBS . 'configure.php';
>>
>> $bootstrap = true;
>> $url = null;
>> require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
>>
>>
>>
>>
>> On Tue, Aug 11, 2009 at 7:17 PM, JamesF<[email protected]> wrote:
>> >
>> > @brian would you mind pasting your index.php
>> >
>> > On Aug 11, 4:25 pm, brian <[email protected]> wrote:
>> >> I'm having some trouble getting a site working on another server. The
>> >> people the client hired are using cPanel, PHP is installed as CGI, and
>> >> mod_rewrite is not available. Additionally, I have to access their
>> >> version of the site through an IP address plus a home subdirectory,
>> >> eg:
>> >>
>> >> http://xxx.xxx.xxx.xxx./~foo/
>> >>
>> >> The directory structure:
>> >>
>> >> /home/foo/public_html/index.php
>> >> /home/foo/public_html/app/
>> >> /home/foo/public_html/app/webroot/
>> >> /home/foo/public_html/cake/
>> >>
>> >> However, I'm just getting 404s (Apache's, not Cake's). Even a regular
>> >> file in public_html is not found.
>> >>
>> >> I had this working (almost) with the contents of webroot in
>> >> public_html and app & cake outside that. But I ran into trouble with
>> >> the lack of mod_rewrite and gave up on that. Now, I can't seem to get
>> >> anything to show up. Anyone have an idea?
>> > >
>> >
>>
>>
>
>
>
> --
> Thanks & Regards,
> Vijayk.
> Co-founder (www.weboniselab.com)
>
> "You Bring the Dreams, We'll Bring the Means"
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to