Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7600285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:52:27+00:00 2026-05-30T22:52:27+00:00

I am having trouble installing a cakephp app onto a hosting company this is

  • 0

I am having trouble installing a cakephp app onto a hosting company this is running a zeus server. It is working fine on my apache, but for reasons outside of my control I have to transfer it.

I am getting missing controller in the app. I have it in a sub directory called osm

Error: Create the class LoginController below in file: app/Controller/LoginController.php

I put a rewrite.script in the root of the app, app folder, webroot. This allowed access to the conrollers and the login but all the css, js was missing.

So I uncommented the line in core.php

Configure::write('App.baseUrl', env('SCRIPT_NAME'));

Now I cant get access to the controllers but I do have the css and js now.

Cant see what I am missing from the examples I have seen.

if I now use index.php in the url it does work
http://www.mydomain.com/osm/index.php/login

rewrite.script:

    # get the document root
    map path into SCRATCH:DOCROOT from /
    # initialize our variables
    set SCRATCH:ORIG_URL = %{URL}
    set SCRATCH:REQUEST_URI = %{URL}

    # see if theres any queries in our URL
    match URL into $ with ^(.*)\?(.*)$
    if matched then
      set SCRATCH:REQUEST_URI = $1
      set SCRATCH:QUERY_STRING = $2
    endif
    RULE_0_END:

    RULE_1_START:
    # prepare to search for file, rewrite if its not found
    set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
    set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}

    # check to see if the file requested is an actual file or
    # a directory with possibly an index.  don't rewrite if so
    look for file at %{SCRATCH:REQUEST_FILENAME}
    if not exists then
      look for dir at %{SCRATCH:REQUEST_FILENAME}
      if not exists then
        set URL = osm/index.php?q=%{SCRATCH:REQUEST_URI}
        goto QSA_RULE_START
      endif
    endif

    # if we made it here then its a file or dir and no rewrite
    goto END
    RULE_1_END:

    QSA_RULE_START:
    # append the query string if there was one originally
    # the same as [QSA,L] for apache
    match SCRATCH:ORIG_URL into % with \?(.*)$
    if matched then
      set URL = %{URL}&%{SCRATCH:QUERY_STRING}
    endif
    goto END
    QSA_RULE_END:
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:52:28+00:00Added an answer on May 30, 2026 at 10:52 pm

    Have a look at this Using CakePHP on Zeus

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble installing Tomcat on my windows XP machine. I already have Apache
I'm running Eclipse (versions 3.6 and 3.5) on Ubuntu and I'm having trouble installing
I'm having trouble installing the LocalSolr component into my Solr setup. I'm running Solr
I am having some trouble installing SAC onto Ubuntu. I have downloaded all the
I'm having some trouble installing and configuring qt on my vista laptop. I'm trying
I'm having significant trouble installing Ruby on Rails. I installed Ruby with apt-get When
I`m having trouble trying to optimize this query with OVER (PARTITION BY ...) because
I'm having trouble installing a framework in XCode(CoreMotion). I think it supposed to come
I am having trouble installing matplotlib on mac os 10.6, so I used macports
I am having trouble using the android SDK, and I am running it 'As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.