$this->webroot will give you the the webroot. I am going to set up an apache server this weekend with cgi php instead of using modules. I'll see what I can figure out. Hang in there and don't give up, I am searching for an answer :)
On Feb 8, 12:54 am, "apalankat" <[EMAIL PROTECTED]> wrote: > hi, > i think it's installed as a CGI, and this is why it does the /cgi-bin/ > cgiwrap/ thing. So the only thing I need is to know what variable (and > in what file) uses cake to determine the root of the app. > I have been looking through the files, but i saw ROOT, WWW_ROOT, and > so many other variables, i need to know which one I have to hardcode > to make it work. > Thanks! > > On Feb 8, 2:43 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > What is your directory structure? How was cake installed onto the > > server? Is PHP installed as a module or as cgi? > > To me, it looks like PHP is installed as CGI and the server itself is > > running Virtual Hosting. Can you confirm these? > > > On Feb 7, 2:17 pm, "apalankat" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > I configured a cake app in my university server, and I have a problem: > > > all the links created by the application (links to actions, > > > stylesheets, javascripts) have a "/cgi-bin/cgiwrap/" prepended. > > > Here's an example from the page /mycakeapp/posts on the server. > > > Instead of linking the posts with <a > > > href="/mycakeapp/posts/view/2">post2</a> it links them with <a > > > href="/cgi-bin/cgiwrap/mycakeapp/ > > > > posts/view/2" >post2</a> > > > > I don't think anyone ever saw that, so I lost all hope of finding a > > > solution... but here it is, > > > Thanks for reading! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
