Advanced Set up

2010-04-10 Thread Dave
I am trying to run multiple sites off 1 cake lib so i have:
 
public_html/
libs/
1.2.6/
1.3/
site1/
app/
site2/
app/
 
with if (!defined('ROOT')) {
  define('ROOT', dirname(dirname(dirname(__FILE__;
  //define('ROOT', DS.'public_html'.DS.'site1');
 }
/**
 * The actual directory name for the app.
 *
 */
 if (!defined('APP_DIR')) {
  //define('APP_DIR', basename(dirname(dirname(__FILE__;
  define ('APP_DIR', 'app');
 }
/**
 * The absolute path to the cake directory, WITHOUT a trailing DS.
 *
 */
 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
  //define('CAKE_CORE_INCLUDE_PATH', ROOT);

  define('CAKE_CORE_INCLUDE_PATH', '/home4/public_html/libs/1.2.6');

 }

This allows me to access site1.com/

But all the links have site1.com/site1/{action}

Can someone point out where I went wrong?

Thanks
 
Dave

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Advanced Set up

2010-04-10 Thread nurvzy
I do something similar, except I keep my cake libraries out of
public_html, and you should as well.

Do you have the .htaccess files setup correctly in site1?   What I
ended up doing was the same type of setup (except I move my cake core
out of public_html), but then addon domains rooted at the site1 and
site2.  With the standard .htaccess that is given to you by the cake
library (in same directory as app) should be enough to get what you
want.

Hope that helps,
Nick

On Apr 10, 3:55 pm, Dave make.cake.b...@gmail.com wrote:
 I am trying to run multiple sites off 1 cake lib so i have:

 public_html/
                 libs/
                     1.2.6/
                     1.3/
                 site1/
                         app/
                 site2/
                         app/

 with if (!defined('ROOT')) {
   define('ROOT', dirname(dirname(dirname(__FILE__;
   //define('ROOT', DS.'public_html'.DS.'site1');
  }
 /**
  * The actual directory name for the app.
  *
  */
  if (!defined('APP_DIR')) {
   //define('APP_DIR', basename(dirname(dirname(__FILE__;
   define ('APP_DIR', 'app');
  }
 /**
  * The absolute path to the cake directory, WITHOUT a trailing DS.
  *
  */
  if (!defined('CAKE_CORE_INCLUDE_PATH')) {
   //define('CAKE_CORE_INCLUDE_PATH', ROOT);

   define('CAKE_CORE_INCLUDE_PATH', '/home4/public_html/libs/1.2.6');

  }

 This allows me to access site1.com/

 But all the links have site1.com/site1/{action}

 Can someone point out where I went wrong?

 Thanks

 Dave

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


RE: Advanced Set up

2010-04-10 Thread Dave
Ok I will move the cake libs outside.

What do you mean by set up right for site1?

My problem I think comes from the fact my hosting company sets public_html
as the main site, addon domains each their own folder so I have my
public_html htaccess file directing all traffic to site 1 to site1 folder
Site2 folder is add on so no directing thru htaccess needed (extra config I
mean) 

But based on my index.php info below all my links for site1 end up with
site1 in the url so www.site.com/about becomes www.site.com/site1/about

Will move the libs first then see where I stand.

Thanks,

Dave

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of nurvzy
Sent: April-10-10 9:27 PM
To: CakePHP
Subject: Re: Advanced Set up

I do something similar, except I keep my cake libraries out of public_html,
and you should as well.

Do you have the .htaccess files setup correctly in site1?   What I
ended up doing was the same type of setup (except I move my cake core out of
public_html), but then addon domains rooted at the site1 and site2.  With
the standard .htaccess that is given to you by the cake library (in same
directory as app) should be enough to get what you want.

Hope that helps,
Nick

On Apr 10, 3:55 pm, Dave make.cake.b...@gmail.com wrote:
 I am trying to run multiple sites off 1 cake lib so i have:

 public_html/
                 libs/
                     1.2.6/
                     1.3/
                 site1/
                         app/
                 site2/
                         app/

 with if (!defined('ROOT')) {
   define('ROOT', dirname(dirname(dirname(__FILE__;
   //define('ROOT', DS.'public_html'.DS.'site1');
  }
 /**
  * The actual directory name for the app.
  *
  */
  if (!defined('APP_DIR')) {
   //define('APP_DIR', basename(dirname(dirname(__FILE__;
   define ('APP_DIR', 'app');
  }
 /**
  * The absolute path to the cake directory, WITHOUT a trailing DS.
  *
  */
  if (!defined('CAKE_CORE_INCLUDE_PATH')) {
   //define('CAKE_CORE_INCLUDE_PATH', ROOT);

   define('CAKE_CORE_INCLUDE_PATH', '/home4/public_html/libs/1.2.6');

  }

 This allows me to access site1.com/

 But all the links have site1.com/site1/{action}

 Can someone point out where I went wrong?

 Thanks

 Dave

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+unsubscr...@googlegroups.com For more options, visit this group 
cake-php+at http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Advanced set up install

2009-10-04 Thread Miles J

Personally I would put the cake folder in the root:

/public_html/cake/
/public_html/domain4/app/

Or even better put it below public_html so it cant be accessed. Once
you do that, you would just need to alter the webroot/index.php.

On Oct 3, 6:42 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
 I have to install cake on a shared hosting server.

 The user has 4 domains so the server looks like

 /public_html
     /css
     /js
     /images
     ..all files for the hosting master domain1
     /domain2
         /all site files for domain12.com
     /domain3
         /all site files for domain3.com
     /domain4
         /all site files for domain4.com

 What is the best/most secure way to set cake up in this type of set up? Cake
 is only being used for domain4 but i can easily move files/folders around to
 suit the needs of cake.

 I currently have

     /domain4
         /cake
         /app
     ...

 Thanks,

 Dave
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Advanced set up install

2009-10-03 Thread Dave Maharaj :: WidePixels.com
I have to install cake on a shared hosting server.
 
The user has 4 domains so the server looks like
 
/public_html
/css
/js
/images
..all files for the hosting master domain1
/domain2
/all site files for domain12.com
/domain3
/all site files for domain3.com
/domain4
/all site files for domain4.com
 
What is the best/most secure way to set cake up in this type of set up? Cake
is only being used for domain4 but i can easily move files/folders around to
suit the needs of cake.
 
I currently have 
 
/domain4
/cake
/app
...
 
Thanks,
 
Dave

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---