Re: Newbie of Cake Php : Problems with Vista Installation and First Application
Weird. The "Options" parameter is better explained here (especially the + stuff): http://httpd.apache.org/docs/2.2/mod/core.html#options Your httpd.conf file may contain several encapsuled Directories that have options which interfere with the other (not sure if this sentence is clear, but it's late here). Maybe you could post your full httpd.conf, because it probably needs a little cleaning... Maybe you can do this off-list, as it's becoming less and less related to Cake itself, and also quite specific to your setup, and thus not very useful to share and archive. ++ Clément On Wed, Aug 20, 2008 at 11:29 PM, www.landed.at <[EMAIL PROTECTED]> wrote: > > GOT IT TO WORK BUT IS IT SECURE ? > > > I placed > > Options +FollowSymLinks > > in the .htaccess file in the root of my cake install ! but why does > this work, and should I use it like this... > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
GOT IT TO WORK BUT IS IT SECURE ? I placed Options +FollowSymLinks in the .htaccess file in the root of my cake install ! but why does this work, and should I use it like this... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
Hi What error do you get exactly ? What happens when you point your browser to http://localhost/ ? Clément On Wed, Aug 20, 2008 at 9:12 PM, www.landed.at <[EMAIL PROTECTED]> wrote: > > thanks for your detailed help > > I tried the following for a specific directory im not as you say using > user directories i guess from your description... > > > Options Indexes Includes FollowSymLinks >AllowOverride All >Order allow,deny >Allow from all > > > I took out the rewrite base line and it still doesn't work always the > same error..Is there some radical test I can do to give me better > debug ? I have other sites (folders) using mod rewrite ok > thanks already > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
thanks for your detailed help I tried the following for a specific directory im not as you say using user directories i guess from your description... Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all I took out the rewrite base line and it still doesn't work always the same error..Is there some radical test I can do to give me better debug ? I have other sites (folders) using mod rewrite ok thanks already --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
On Wed, Aug 20, 2008 at 10:07 AM, clemos <[EMAIL PROTECTED]> wrote: > Hi > > 1. The log line you get shows clearly that it's an Apache issue. The > message obviously says that you must enable FollowSymLinks in your > httpd.conf so that "mod_rewrite" works (see here : > https://trac.cakephp.org/ticket/1700)... you must put "Options > FollowSymLinks" in your httpd.conf (there may be already an "Options" > line, in your Directory section - the one that refers to you www root, > to which you can add "FollowSymLinks"). See more Apache specific > documentation for this issue > (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) > > 2. I don't know what Uniform Server is, but from your directory > structure, it doesn't seem like you actually use "user directories"; > you just use a "regular" subdirectory of your document root (www). > "user directories" is an Apache module that basically redirects > "http://your_server/~your_user_name/"; to a subdirectory of your > personal home directory (in Windows, it may be C:\Documents and > Settings\your_user_name\htdocs or C:\.\public_html). So I think > you don't need the "RewriteRule" extra line. I meant : you don't need the "RewriteBase" extra line. The default Cake .htaccess file should work. > Try this, and it *may* work. > +++ > Clément > > On Tue, Aug 19, 2008 at 9:57 PM, www.landed.at <[EMAIL PROTECTED]> wrote: >> >> I have followed all except the last line of that link which is >> >> # If you are installing CakePHP into a user directory (http:// >> example.com/~username), you'll need to modify the .htaccess file in >> the base directory of your CakePHP installation. Just add the line >> "RewriteBase /~myusername/" >> >> in uniform server the structure is >> >> C:\Uniform Server\udrive\www\fb00\ [here i have app, cake,vendors etc >> and the htaccess file ] >> >> so eith that structure localhost points to the www root folder where I >> have multiple sites. >> So i added as per the instruction above and get the htaccess file in >> the application root to be >> >> >> RewriteEngine on >> RewriteRule^$ app/webroot/[L] >> RewriteRule(.*) app/webroot/$1 [L] >> RewriteBase /~fb00/ >> >> >> so is that right, I dont know what else is wrong, I have mod rewrite >> working for other things ok. >> here is my server log error >> >> [error] [client 127.0.0.1] Options FollowSymLinks or >> SymLinksIfOwnerMatch is off which implies that RewriteRule directive >> is forbidden: W:/www/fb00/, referer: http://localhost/ >> >> thanks for any help this is my second night of frustration with >> nothing working. >> >> >> > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
Hi 1. The log line you get shows clearly that it's an Apache issue. The message obviously says that you must enable FollowSymLinks in your httpd.conf so that "mod_rewrite" works (see here : https://trac.cakephp.org/ticket/1700)... you must put "Options FollowSymLinks" in your httpd.conf (there may be already an "Options" line, in your Directory section - the one that refers to you www root, to which you can add "FollowSymLinks"). See more Apache specific documentation for this issue (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) 2. I don't know what Uniform Server is, but from your directory structure, it doesn't seem like you actually use "user directories"; you just use a "regular" subdirectory of your document root (www). "user directories" is an Apache module that basically redirects "http://your_server/~your_user_name/"; to a subdirectory of your personal home directory (in Windows, it may be C:\Documents and Settings\your_user_name\htdocs or C:\.\public_html). So I think you don't need the "RewriteRule" extra line. Try this, and it *may* work. +++ Clément On Tue, Aug 19, 2008 at 9:57 PM, www.landed.at <[EMAIL PROTECTED]> wrote: > > I have followed all except the last line of that link which is > > # If you are installing CakePHP into a user directory (http:// > example.com/~username), you'll need to modify the .htaccess file in > the base directory of your CakePHP installation. Just add the line > "RewriteBase /~myusername/" > > in uniform server the structure is > > C:\Uniform Server\udrive\www\fb00\ [here i have app, cake,vendors etc > and the htaccess file ] > > so eith that structure localhost points to the www root folder where I > have multiple sites. > So i added as per the instruction above and get the htaccess file in > the application root to be > > > RewriteEngine on > RewriteRule^$ app/webroot/[L] > RewriteRule(.*) app/webroot/$1 [L] > RewriteBase /~fb00/ > > > so is that right, I dont know what else is wrong, I have mod rewrite > working for other things ok. > here is my server log error > > [error] [client 127.0.0.1] Options FollowSymLinks or > SymLinksIfOwnerMatch is off which implies that RewriteRule directive > is forbidden: W:/www/fb00/, referer: http://localhost/ > > thanks for any help this is my second night of frustration with > nothing working. > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
For me it's still not working. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
Hi Clément, I'm writing to confirm that thanks to your suggestion all works fine. Thank you very much Giulio On 19 Ago, 21:57, "www.landed.at" <[EMAIL PROTECTED]> wrote: > I have followed all except the last line of that link which is > > # If you are installing CakePHP into a user directory (http:// > example.com/~username), you'll need to modify the .htaccess file in > the base directory of your CakePHP installation. Just add the line > "RewriteBase /~myusername/" > > in uniform server the structure is > > C:\Uniform Server\udrive\www\fb00\ [here i have app, cake,vendors etc > and the htaccess file ] > > so eith that structure localhost points to the www root folder where I > have multiple sites. > So i added as per the instruction above and get the htaccess file in > the application root to be > > > RewriteEngine on > RewriteRule ^$ app/webroot/ [L] > RewriteRule (.*) app/webroot/$1 [L] > RewriteBase /~fb00/ > > > so is that right, I dont know what else is wrong, I have mod rewrite > working for other things ok. > here is my server log error > > [error] [client 127.0.0.1] Options FollowSymLinks or > SymLinksIfOwnerMatch is off which implies that RewriteRule directive > is forbidden: W:/www/fb00/, referer:http://localhost/ > > thanks for any help this is my second night of frustration with > nothing working. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
I have followed all except the last line of that link which is # If you are installing CakePHP into a user directory (http:// example.com/~username), you'll need to modify the .htaccess file in the base directory of your CakePHP installation. Just add the line "RewriteBase /~myusername/" in uniform server the structure is C:\Uniform Server\udrive\www\fb00\ [here i have app, cake,vendors etc and the htaccess file ] so eith that structure localhost points to the www root folder where I have multiple sites. So i added as per the instruction above and get the htaccess file in the application root to be RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] RewriteBase /~fb00/ so is that right, I dont know what else is wrong, I have mod rewrite working for other things ok. here is my server log error [error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: W:/www/fb00/, referer: http://localhost/ thanks for any help this is my second night of frustration with nothing working. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
Hi It looks like Xamp doesn't enable "mod_rewrite" by default, and I guess that's why your Cake install doesn't work (phpinfo() will confirm you wether or not it is loaded or not: see "Loaded Modules"). To enable (load) mod_rewrite, you need to open your httpd.conf, search "mod_rewrite", and uncomment the corresponding line ("LoadModule rewrite_module modules/mod_rewrite.so" probably; if not present, just add it to the modules section). By the way, the manual is quite detailed on these issues : http://manual.cakephp.org/view/32/installation#apache-and-mod_rewrite-37 Then if it's not your problem, please try to provide more debug informations about the issue: what did you do ? what exactly do you see ? (unavailable mod_rewrite usually results in an unstyled home page with css and img not loaded, and 404 in all other pages) Hope it helps +++ Clément On Tue, Aug 19, 2008 at 10:58 AM, www.landed.at <[EMAIL PROTECTED]> wrote: > > I have the smae problem, not with xamp though. For beginers the > documentation or posts relating to this are not clear enough. I posted > a similar query yesterday but didnt get my post in the daily > digest ??? So I'm sorry not to be able to help but just want to add > weight to this issue, for people that are ok with php but less ok with > server stuff. > > On Aug 19, 7:34 am, giulio <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm new of cake php. >> >> I'm trying to install cakephp in windows vista, i downloaded and >> installed xampp and all seems to be fine. >> >> I've followed the instructions for cake php and it goes well. >> >> I've only some problems: >> >> 1- I can't see the graphic of the default cake php page, i read that >> it depends of configuratione of httpd.conf so i set the options >> FollowSyLinks to AllowOverride All and the correct path, but i've not >> solved the problem >> >> 2- I tried with a simple cake php application made by other (a >> todolist application ) but when i write the >> controllerhttp://localhost/todo/items >> i can see only the result Object not found... maybe are there problems >> with htaccess? I able mod rewrite. >> >> If someone has a file httpd.conf please send me this file to me, so i >> can solve all the configurations problems. >> >> Thanks Giulio > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Newbie of Cake Php : Problems with Vista Installation and First Application
I have the smae problem, not with xamp though. For beginers the documentation or posts relating to this are not clear enough. I posted a similar query yesterday but didnt get my post in the daily digest ??? So I'm sorry not to be able to help but just want to add weight to this issue, for people that are ok with php but less ok with server stuff. On Aug 19, 7:34 am, giulio <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new of cake php. > > I'm trying to install cakephp in windows vista, i downloaded and > installed xampp and all seems to be fine. > > I've followed the instructions for cake php and it goes well. > > I've only some problems: > > 1- I can't see the graphic of the default cake php page, i read that > it depends of configuratione of httpd.conf so i set the options > FollowSyLinks to AllowOverride All and the correct path, but i've not > solved the problem > > 2- I tried with a simple cake php application made by other (a > todolist application ) but when i write the > controllerhttp://localhost/todo/items > i can see only the result Object not found... maybe are there problems > with htaccess? I able mod rewrite. > > If someone has a file httpd.conf please send me this file to me, so i > can solve all the configurations problems. > > Thanks Giulio --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---