Don't know if you've figured this out yet as the post is a couple of
weeks old, but I thought I'd post anyways as it could be helpful to
others.
This is how I have cake running on Plesk 7.5 (I'm assuming you know how
to run unix commands and can SSH into your server as a superuser, all
lines starting with % are the start of a command line don't include the
% sign, I'm not responsible for you funking your server up yada yada);
upload your cake app to your domain's current root directory usually
/httpdocs/ so that you have /httpdocs/app, /httpdocs/cake,
/httpdocs/vendors etc. without a containing 'cake' directory.
SSH into your server and cd into your domain's conf directory...
% cd /pathtomy/domain.com/conf
there may or may not be a file called vhost.conf, either way running
the following command will create or edit it...
% vi vhost.conf
(vi is a text editor and should be installed, there's others but that's
what I use, side note: if you mess up a vhost.conf file your server may
not restart, DON'T PANIC! remove the vhost.conf file or fix it and your
server will be back up)...
Press 'a' so you can edit the file (the file is locked til then) and
past the following (making the appropriate edits i.e. change domain.com
to your domain, lines starting with # are comments)
# start vhost.conf
DocumentRoot /home/httpd/vhosts/domain.com/httpdocs/app/webroot/
<Directory /home/httpd/vhosts/domain.com/httpdocs/app/webroot/>
php_admin_value safe_mode 0
php_admin_value open_basedir
"/home/httpd/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
# options
Options Indexes ExecCGI FollowSymLinks MultiViews
AddHandler cgi-script .cgi
# .htaccess so cake's urls work properly
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# end vhost.conf
Press 'esc' to jump out of editing mode, then hold down 'shift' and
press 'z' twice (typing 'ZZ') to save the file. Almost done but the
next step must be done to apply the changes to your domain.
We're back on the command line now, type (changing 'domain.com'
again)...
% /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
Hit enter and the changes are applied to your domain, it should work
now as is but I usually restart the server just to be sure.
That's it! you now have cake running from your domain.com with the cake
installed behind public viewable folders, with the exception of your
front end which is sticking out for all to see :P
Happy Baking!
calzone wrote:
> ok, thanks for the tip.
>
> I'm wondering though, the linux setup is managed by plesk, which means
> mucking with httpd.conf can be problematic since plesk will manage
> (read:overwrite) it as needed. Yes, there are includes available, as
> well as site-specific includes, but I'm worried I might not be able to
> get the whole document root thing working and keep plesk happy at the
> same time.
>
> Then, even if I do get it working happy, there's the whole include path
> issue. open_basedir is definitely no picnic under plesk.
>
> I know this is way beyond the scope of people here, but on the
> off-chance anyone has experience with both plesk and cake and getting
> them to play nice together, I'd love to hear from you.
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.53.63 with SMTP id b63mr88168cwa;
Sat, 20 May 2006 11:33:13 -0700 (PDT)
X-Google-Token: qmxnpgwAAADAdJcO0YoKLF9h4mxK1PAA
Received: from 24.127.45.8 by j73g2000cwa.googlegroups.com with HTTP;
Sat, 20 May 2006 18:33:13 +0000 (UTC)
From: "Vixiom" <[EMAIL PROTECTED]>
To: "Cake PHP" <[email protected]>
Subject: Re: When (Document Root != /app/webroot) Cake works anyway?
Date: Sat, 20 May 2006 11:33:13 -0700
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain
Don't know if you've figured this out yet as the post is a couple of
weeks old, but I thought I'd post anyways as it could be helpful to
others.
This is how I have cake running on Plesk 7.5 (I'm assuming you know how
to run unix commands and can SSH into your server as a superuser, all
lines starting with % are the start of a command line don't include the
% sign, I'm not responsible for you funking your server up yada yada);
upload your cake app to your domain's current root directory usually
/httpdocs/ so that you have /httpdocs/app, /httpdocs/cake,
/httpdocs/vendors etc. without a containing 'cake' directory.
SSH into your server and cd into your domain's conf directory...
% cd /pathtomy/domain.com/conf
there may or may not be a file called vhost.conf, either way running
the following command will create or edit it...
% vi vhost.conf
(vi is a text editor and should be installed, there's others but that's
what I use, side note: if you mess up a vhost.conf file your server may
not restart, DON'T PANIC! remove the vhost.conf file or fix it and your
server will be back up)...
Press 'a' so you can edit the file (the file is locked til then) and
past the following (making the appropriate edits i.e. change domain.com
to your domain, lines starting with # are comments)
# start vhost.conf
DocumentRoot /home/httpd/vhosts/domain.com/httpdocs/app/webroot/
<Directory /home/httpd/vhosts/domain.com/httpdocs/app/webroot/>
php_admin_value safe_mode 0
php_admin_value open_basedir
"/home/httpd/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
# options
Options Indexes ExecCGI FollowSymLinks MultiViews
AddHandler cgi-script .cgi
# .htaccess so cake's urls work properly
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# end vhost.conf
Press 'esc' to jump out of editing mode, then hold down 'shift' and
press 'z' twice (typing 'ZZ') to save the file. Almost done but the
next step must be done to apply the changes to your domain.
We're back on the command line now, type (changing 'domain.com'
again)...
% /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
Hit enter and the changes are applied to your domain, it should work
now as is but I usually restart the server just to be sure.
That's it! you now have cake running from your domain.com with the cake
installed behind public viewable folders, with the exception of your
front end which is sticking out for all to see :P
Happy Baking!
calzone wrote:
> ok, thanks for the tip.
>
> I'm wondering though, the linux setup is managed by plesk, which means
> mucking with httpd.conf can be problematic since plesk will manage
> (read:overwrite) it as needed. Yes, there are includes available, as
> well as site-specific includes, but I'm worried I might not be able to
> get the whole document root thing working and keep plesk happy at the
> same time.
>
> Then, even if I do get it working happy, there's the whole include path
> issue. open_basedir is definitely no picnic under plesk.
>
> I know this is way beyond the scope of people here, but on the
> off-chance anyone has experience with both plesk and cake and getting
> them to play nice together, I'd love to hear from you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---