On 8/26/07, fLUx <[EMAIL PROTECTED]> wrote:
>
> Hey,
>
> I'm having quite a big problem - I'm with Dreamhost, and as standard,
> they dont have PHP-GD installed, to use that, you must compile your
> own PHP - OK I said, ~ 7 hrs ago...
>
> Basically, I have /cgi-bin/php.cgi which I need to use as my PHP, and
> this should do it:
> AddHandler phpFive .php
> Action phpFive /cgi-bin/php.cgi
> RewriteCond %{REQUEST_URI} !^/cgi-bin/
> ...in my htaccess...
>
> and the cgi-bin folder in my webroot...
>
> That all works fine, except the main (and only, as far as I can tell)
> problem, is its trying to set the webroot directory as "/cgi-bin/
> php.cgi/" instead of "/"....
>
> I've tried alot of stuff, but nothing is fixing it, and I cant seem to
> find out where to override $this->webroot, without breaking something
> else....

This is an Apache configuration problem, nothing to do with CakePHP.
What do you have in your httpd.conf (or whatever file Dreamhost has
you edit for your Apache configuration).

I run my stuff as a virtual host on my laptop, and have a setup like
this in my httpd.conf

<VirtualHost *:80>
     ServerAdmin [EMAIL PROTECTED]
     ServerName local.www.ibl.org
     DocumentRoot /Users/chartjes/src/www.ibl.org/webroot

     <Directory /Users/chartjes/src/www.ibl.org/webroot>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
         Order allow,deny
         allow from all
     </Directory>
</VirtualHost>

The critical thing is making sure you tell Apache where the root of
your web app is via DocumentRoot.

Hope that helps.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

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

Reply via email to