problems installing on new server: 404 errors
I've worked with Cake on several sites now, but am having trouble getting it to function on a new (HTTPS) server. I downloaded the latest Cake from the Web site today and uploaded it to my server in a subdirectory. After configuring the database, I attempted to access my new app at https://mydomain.com/mydir/cake/ and was greeted with an Apache 404 page that said: The requested URL /usr/home/myusername/public_ssl/cake/app/webroot/ was not found on this server. Note that it appears to be looking for webroot at an address that corresponds to its actual position in the filesystem rather than its URL. Next I tried disabling all three .htaccess files and uncommenting the BASE_URL line in core.php. This improved things but not completely: I can now see the app's home page (or anything else I specify using the default route in routes.php), but when trying to access a regular controller action I still get a 404 error - though the URL is correct in this case: The requested URL /mydir/air/objects/ was not found on this server. Any idea what might be happening? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
On 12/20/06, Dave [EMAIL PROTECTED] wrote: Next I tried disabling all three .htaccess files and uncommenting the BASE_URL line in core.php. This improved things but not completely: I can now see the app's home page (or anything else I specify using the default route in routes.php), but when trying to access a regular controller action I still get a 404 error - though the URL is correct in this case: The requested URL /mydir/air/objects/ was not found on this server. Any idea what might be happening? Not that I'm an expert at configuring Cake, but I have some suggestions: 1) verify that you've set things up in your Apache config files to accept values that are in a .htaccess file That has tripped me up more than once. If you're using the pretty URL's make sure that you've got mod_rewrite turned on and that you have specified the correct RewriteBase. 2) set DEBUG to 1 in your core.php file so you can see some more informative error messages than just a 404. I honestly believe that the errors spit out in debug mode are a killer hidden feature in Cake. 3) examine the differences in your configuration files between your app in it's old location and your app in it's new location. Maybe you'll find that you've forgotten to set something in the new config Hope that helps. -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
I would suggest double checking your apache config settings. Maybe place a regular html page in that directory and see if you can view it. Jose On 12/20/06, Dave [EMAIL PROTECTED] wrote: I've worked with Cake on several sites now, but am having trouble getting it to function on a new (HTTPS) server. I downloaded the latest Cake from the Web site today and uploaded it to my server in a subdirectory. After configuring the database, I attempted to access my new app at https://mydomain.com/mydir/cake/ and was greeted with an Apache 404 page that said: The requested URL /usr/home/myusername/public_ssl/cake/app/webroot/ was not found on this server. Note that it appears to be looking for webroot at an address that corresponds to its actual position in the filesystem rather than its URL. Next I tried disabling all three .htaccess files and uncommenting the BASE_URL line in core.php. This improved things but not completely: I can now see the app's home page (or anything else I specify using the default route in routes.php), but when trying to access a regular controller action I still get a 404 error - though the URL is correct in this case: The requested URL /mydir/air/objects/ was not found on this server. Any idea what might be happening? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
You might be out of the allowed path in you php.ini file. I'd check that. If so just add the correct path to webroot as usual. On Dec 20, 12:09 pm, Dave [EMAIL PROTECTED] wrote: I've worked with Cake on several sites now, but am having trouble getting it to function on a new (HTTPS) server. I downloaded the latest Cake from the Web site today and uploaded it to my server in a subdirectory. After configuring the database, I attempted to access my new app athttps://mydomain.com/mydir/cake/and was greeted with an Apache 404 page that said: The requested URL /usr/home/myusername/public_ssl/cake/app/webroot/ was not found on this server. Note that it appears to be looking for webroot at an address that corresponds to its actual position in the filesystem rather than its URL. Next I tried disabling all three .htaccess files and uncommenting the BASE_URL line in core.php. This improved things but not completely: I can now see the app's home page (or anything else I specify using the default route in routes.php), but when trying to access a regular controller action I still get a 404 error - though the URL is correct in this case: The requested URL /mydir/air/objects/ was not found on this server. Any idea what might be happening? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
Thanks for the responses. Since I *can* view the home page under the circumstances already described, I don't think it's a php.ini thing. I've done .htaccess-based authentication in this directory already, so I know the .htaccess is being read. And I can copy the entire Cake distribution down to my local test server and run it without a change, so it's not a general configuration issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
Experimenting a bit more I've gotten it to work. With the .htaccess files disabled and BASE_URL enabled, I have to access controller actions like this: https://mydomain.com/mydir/cake/index.php/controller/action Not ideal, but functional anyway. Not sure why mod_rewrite is misfiring in this case, and would love to figure out why... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problems installing on new server: 404 errors
I would suggest looking in your list of enabled modules to see if you have enabled mod_rewrite. Jose On 12/20/06, Dave [EMAIL PROTECTED] wrote: Experimenting a bit more I've gotten it to work. With the .htaccess files disabled and BASE_URL enabled, I have to access controller actions like this: https://mydomain.com/mydir/cake/index.php/controller/action Not ideal, but functional anyway. Not sure why mod_rewrite is misfiring in this case, and would love to figure out why... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---