Thank you for your response. However, I am confused. How is my
directory structure different than the suggested one here:
http://book.cakephp.org/view/34/Production?

This is my first deployment to a production server, so please excuse
my desire to come close to being able to understand what I am doing.

I tried to follow these instructions for the .htaccess files:
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess.

Should the directory structure be like this?

/ [root]
/cake [moved up to root level of shared hosting account]
/reporting
/reporting/.htaccess
/reporting/app
/reporting/app/[plus everything else app related]
/reporting/app/.htaccess
/reporting/app/webroot/.htaccess
/reporting/index.php
/reporting/README
/reporting/vendors

With a structure like this wouldn't I need to change some more of the
Cake values as found in this article: 
http://book.cakephp.org/view/35/Advanced-Installation?

Thanks in advance for your help. This is a little bit confusing since
there is conflicting advice in other articles outside of the CookBook.
Maybe someone could create an overview document that lists known
shared hosting servers (like fatCow, 1and1, goDaddy, etc.) and what
experienced developers have found to the optimal structure for
production deployment. That would be a terrific tool for everyone.

Thanks again!

On Oct 12, 11:51 pm, "Dr. Loboto" <[email protected]> wrote:
> Looks like you installed cake into subdir, but followed instructions
> about install into root dir and messed .htaccess files.
>
> On Oct 13, 1:47 am, FrederickD <[email protected]> wrote:
>
> > I finally have my project up on a production server. My client is
> > using goDaddy.com. Following my research here and other places, I
> > uploaded the project, verified folder write-ability for /tmp and the
> > subordinates, cleared the /tmp directory contents, and changed the
> > database.php file (not sure if that part is working yet).
>
> > My folder structure looks like this:
> > / [root]
> > /reporting
> > /reporting/.htaccess
> > /reporting/app
> > /reporting/app/[everything else app replated including /tmp and /
> > webroot]
> > /reporting/app/.htaccess
> > /reporting/app/webroot/.htaccess
> > /reporting/cake
> > /reporting/index.php
> > /reporting/README
> > /reporting/vendors
>
> > My site is herehttp://bgnation.ca/reporting/. The initial page
> > renders fine (I haven't replaced the lorem ipsum yet... mea culpa...).
> > However, when I try to log in on the side bar I receive a 404 error
> > forhttp://bgnation.ca/users/login. Using a URL to access any other
> > controller action yields the same result. The 'Home' button on the
> > navigation bar works however.
>
> > I changed the routes.php file to be this, just commenting out a chunk:
>
> > <?php
> >         Router::connect('/tests',
> >                 array(
> >                         'controller' => 'tests'
> >                         ,'action' => 'index'
> >                 )
> >         );
>
> >         Router::connect('/',
> >                 array(
> >                         'controller' => 'pages'
> >                         ,'action' => 'display'
> >                         ,'/index'
> >                 )
> >         );
>
> > //      Router::connect('/pages/*',
> > //              array(
> > //                      'controller' => 'pages'
> > //                      ,'action' => 'display'
> > //              )
> > //      );
>
> > ?>
>
> > The.htaccess file in /webroot/ was changed to add a '/' in front of
> > the 'index' as per this article about hosting on 
> > goDaddy.com:http://techiedesi.com/post/327-setup-cakephp-modrewrite-to-work-with-....
> > So it looks like this:
>
> > <IfModule mod_rewrite.c>
> >     RewriteEngine On
> >     RewriteCond %{REQUEST_FILENAME} !-d
> >     RewriteCond %{REQUEST_FILENAME} !-f
> >     RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
> > </IfModule>
>
> > The.htaccess file in /app was changed to look like this (just added
> > the 'RewriteBase /' line):
>
> > <IfModule mod_rewrite.c>
> >     RewriteEngine on
> >     RewriteBase /
> >     RewriteRule    ^$    webroot/    [L]
> >     RewriteRule    (.*) webroot/$1    [L]
> > </IfModule>
>
> > In order to have even the first page render, I had to leave
> > the .htaccess file at the root of my project looking like this:
>
> > <IfModule mod_rewrite.c>
> >    RewriteEngine on
> >    RewriteRule    ^$ app/webroot/    [L]
> >    RewriteRule    (.*) app/webroot/$1 [L]
> > </IfModule>
>
> > All of this works on localhost yet not on the production server. So is
> > something wrong with my routes.php file? I'm sure it is simple, but I
> > just don't see it. I have tried to do my research but cannot find
> > something that works. Would someone help me please? I am DITW (dead in
> > the water) at this point. Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
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