On Jun 17, 9:20 am, Matthew Powell <[email protected]> wrote:
>
> a2enmod mod_rewrite will get you half-way

That should be sudo a2enmod rewrite

(no "mod_")

> sudo ln -s home/zaky/cakephpproj/ mynewapp

What I've been doing is moving the cake directory to /usr/share/php so
I have:

/usr/share/php/cake_1.2.7
/usr/share/php/cake_1.3.0

etc. Then I create a link to the one I want to use:

sudo ln -s cake_1.3.0 cake

And modify webroot/index.php accordingly.

/**
 * The absolute path to the "cake" directory, WITHOUT a trailing DS.
 *
 */
        if (!defined('CAKE_CORE_INCLUDE_PATH')) {
                define('CAKE_CORE_INCLUDE_PATH', '/usr/share/php/cake');
        }

(Yeah, yeah, I should be using DS, I know.) This presupposes having
CLI access to the production server (eg. a VPS), of course.

> chmod 777 app/tmp

I've found very few instances where I absolutely had to open
permissions wide like that. Again, if CLI access is a given, you can
do:

sudo chown -R www-data app/tmp
sudo chgrp -R [YOUR LOGIN] app/tmp
sudo chmod -R g+ws app/tmp

That'll give the group (you) write permission to all files/
directories, including any new ones that are created.

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 [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