Sunday, October 4, 2009

WEBHOST limitation installation problems

Hi weveryone,

I'm trying to deploy an already built application to a webhost with no
success. The main problem is that I'm not allowed to enable
mod_rewrite.

At first that wasn't a problem since I changed everything to work with
the alternative configuration (uncommenting Configure::write
('App.baseUrl', env('SCRIPT_NAME')); line in core.php +
deleting .htaccess files) and LOCALLY everything worked fine. The
problem was on the server. The css styles nor js files were found.
Then I realized that they were found if I removed de "/" from the
begining of the file's address (which means I'm not installed in the
webroot?). I can't change everything to work without this "/" because
all cakephp helpers automatically use it.

The webhost made me install all files in an "httpdocs" folder. Is this
a problem?? I used the php command <?php echo $_SERVER
['DOCUMENT_ROOT']; ?> which returned "/var/www/vhosts/xxxxx.cl/
httpdocs".

Any ideas?? anyone?? please help!!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: