This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: cakephp
Author
Message |
jakimsa
Newbie


Joined: 08 April 2008
Posts: 6
Posted: 13 July 2010 at 6:01am

Hi,

i'm trying to implement cakephp on a Windows 2008 with IIS7 and Helicon APE and i cannot find the correct configuration to make it work

Helicon Ape is working since i've inserted the rule :
RewriteEngine on
RewriteRule .? - [G]

and it gives the expected result .


My cake structure is the standard:

.htaccess on main folder

    RewriteEngine on
    RewriteRule ^getstandalone - [L]
    RewriteRule ^status - [L]
    RewriteRule ^account - [L]
    RewriteRule    ^$    app/    [L]
    RewriteRule    (.*) app/$1    [L]

.htaccess on app folder
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]

.htaccess on webroot folder
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


I'm point the virtual directory to the main folder .

The only thing i get in the browser is : 


Anyone had similar problems or knows i to implement cakephp with h ape ?

Thanks a lot.
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 13 July 2010 at 9:27am

Hello,
What’s your version of CakePHP. I just downloaded it and see this code in the main .htaccess:
Code:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


In your case it should be as follows:
Code:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule ^getstandalone - [NC,L]
   RewriteRule ^status - [NC,L]
   RewriteRule ^account - [NC,L]
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
jakimsa
Newbie


Joined: 08 April 2008
Posts: 6
Posted: 13 July 2010 at 10:38am

Hello,

Thanks for the answer.

It seems that after all the problem was not in the rewrite .
I was testing in an shared configuration scenario and that seems to be the problem, since i tested without shared configuration and worked well.

Helicon ape seems to work fine with the shared configuration, the problem is cakephp.

Is there are issues or differences in using rewrites in IIS7 shared configuration?

Thanks,
Joaquim

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 13 July 2010 at 11:10am

Hello,
What do you mean by shared configuration?
Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
jakimsa
Newbie


Joined: 08 April 2008
Posts: 6
Posted: 13 July 2010 at 11:14am

Hi,

IIS7 brings new future, where the configuration files and website's files are located in a shared folder(NAS,SAN,etc) that can be shared by 'n' IIS7 servers.

You can find it on IIS gui in the management area.

This is how Enkompass control panel will(is) work(ing).

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 14 July 2010 at 2:46am

Hello,
Thanks, got it.
Could you please run Helicon Ape Manager, select the website in the tree and click right mouse button. In the pop-up menu please click “Zip and Save...”. This action will pick all the relevant configuration files in an archive. Please send the archive to us by email: [email protected] We’re going to test this case.
Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version