Friday, October 1, 2010

Re: problem deploying cakephp site on the live server ( very strange issue help me)

I tried this as well nothing works...i feels like i have to move on to
the linux package its free for my domain on hostexcellence.com but due
to my lots of data i feel bad to move on. I wish cakephp guys could
make a version for windows where modrewrite is not available

Regards


On Oct 1, 11:41 pm, Miles J <mileswjohn...@gmail.com> wrote:
> Your structure should be like so:
>
> mydomain.com\
>         app\
>                 controllers\
>                 webroot\
>                 ...
>                 ...
>         cake\
>         index.php
>
> And then your constants:
>
> define('ROOT', 'D:'. DS.'home'.DS.'username'. DS .'mydomain.com');
>
> define('APP_DIR', ROOT . DS .'app'. DS);
>
> define('CAKE_CORE_INCLUDE_PATH', ROOT .'cake');
>
> On Oct 1, 10:35 am, cricket <zijn.digi...@gmail.com> wrote:
>
> > Try searching online for "cakephp without mod_rewrite". That's all I
> > can offer as I've never gone that route, nor used Cake on a Windows
> > box.
>
> > On Thu, Sep 30, 2010 at 7:44 PM, Farhanx <farhan...@gmail.com> wrote:
> > > Hi,
>
> > > I am using a server that has window package for php. I created my
> > > whole directory structure by Baking script and it made the structure
> > > like
>
> > > D:\home\username\mydomain.com\
> > >      /cake   <-cake directory
> > >      /config
> > >      /controllers
> > >      /libs
> > >      /locale
> > >      /models
> > >      /plugins
> > >      /tests
> > >      /tmp
> > >      /vendors
> > >      /views
> > >      /webroot  <-webroot
> > >      .htaccess
> > >      index.php
> > >      app_controller.php
> > >      app_helper.php
> > >      app_model.php
> > >      code-completion-in-views.php
>
> > > after installed it shows the first default view but it doesnt load up
> > > images , css and even doesnt route any static or non static link.
>
> > > For static links i made routes like
>
> > >        Router::connect('/', array('controller' => 'pages', 'action' =>
> > > 'display', 'home'));
>
> > >        Router::connect('/pages/*', array('controller' => 'pages', 'action'
> > > => 'display'));
>
> > >        Router::connect('/aboutus', array('controller' => 'pages', 'action'
> > > => 'display', 'aboutus'));
>
> > >        Router::connect('/features', array('controller' => 'pages', 'action'
> > > => 'display', 'features'));
>
> > > the changes i made inside webroot\index file is
>
> > > if (!defined('ROOT')) {
> > >                define('ROOT','D:'. DS.'home'.DS.'username');
> > >        }
>
> > > if (!defined('APP_DIR')) {
> > >                define('APP_DIR','mydomain.com');
> > >        }
>
> > > if (!defined('CAKE_CORE_INCLUDE_PATH')) {
>
> > > define('CAKE_CORE_INCLUDE_PATH','D:'.DS.'home'.DS.'username'.DS.'mydomain.com'.DS.'cake');
> > >        }
>
> > > I tried alot but links , images and css are not working at all, also
> > > on my server they says mode rewrite isnt allowed. Is that is the
> > > problem ??? Do i need to switch on the linux just for this error???
>
> > > Please help me guys...
> > > Regards
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others with their CakePHP related questions.
>
> > > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > > To post to this group, send email to cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

No comments: