Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Nutty, Well... As far as I'm aware of, it functions properly. In the router.php file I can add routes, and they are working allright. domain.com/ goes to the index, domain.com/controller will go to the corresponding controller, or via routes to the controller I've specified. So, it seems to function. Thanks for you help anyway. :) Jorick. Op vrijdag 7 december 2012 10:09:45 UTC+1 schreef nutty het volgende: > > Hi Jorick, > > Did you resolved the issue in your index root? Mine is just working fine. > > Regards, > > On Sat, Dec 1, 2012 at 9:21 AM, Jorick de Lange > > > wrote: > >> Hi Nutty, >> >> Thanks for your link. I followed it, copy+pasted your web.config file, >> refreshed, but then the index (root/) isn't working. URL Rewriting is, >> though, 'cause I could acces '/posts/index' without a problem. >> >> Thank you anyway! >> >> Jorick. >> >> Op zaterdag 1 december 2012 01:20:30 UTC+1 schreef nutty het volgende: >>> >>> I had my cakephp running in IIS and it works perfectly for me. see >>> http://jquerydate.blogspot.com >>> >>> On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange wrote: >>> >>>> Well, it makes sense to me... So, if I'm not mistaken, the system runs >>>> 'as it should be', right? Then I can stop bug-fixing things that aren't >>>> bugs... ;-) >>>> >>>> Thanks, >>>> >>>> Jorick. >>>> >>>> -- >>>> Like Us on FaceBook >>>> https://www.facebook.com/**CakePHP<https://www.facebook.com/CakePHP> >>>> Find us on Twitter http://twitter.com/CakePHP >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "CakePHP" group. >>>> To post to this group, send email to cake...@googlegroups.com. >>>> To unsubscribe from this group, send email to cake-php+u...@** >>>> googlegroups.com. >>>> >>>> Visit this group at >>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en> >>>> . >>>> >>>> >>>> >>> >>> >>> -- >>> Thanks and Best Regards, >>> Nathaniel N. Sumaya >>> >>> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to cake...@googlegroups.com >> . >> To unsubscribe from this group, send email to >> cake-php+u...@googlegroups.com . >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> >> >> > > > > -- > Thanks and Best Regards, > Nathaniel N. Sumaya > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Nutty, Thanks for your link. I followed it, copy+pasted your web.config file, refreshed, but then the index (root/) isn't working. URL Rewriting is, though, 'cause I could acces '/posts/index' without a problem. Thank you anyway! Jorick. Op zaterdag 1 december 2012 01:20:30 UTC+1 schreef nutty het volgende: > > I had my cakephp running in IIS and it works perfectly for me. see > http://jquerydate.blogspot.com > > On Sat, Dec 1, 2012 at 5:50 AM, Jorick de Lange > > > wrote: > >> Well, it makes sense to me... So, if I'm not mistaken, the system runs >> 'as it should be', right? Then I can stop bug-fixing things that aren't >> bugs... ;-) >> >> Thanks, >> >> Jorick. >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to cake...@googlegroups.com >> . >> To unsubscribe from this group, send email to >> cake-php+u...@googlegroups.com . >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> >> >> > > > -- > Thanks and Best Regards, > Nathaniel N. Sumaya > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Well, it makes sense to me... So, if I'm not mistaken, the system runs 'as it should be', right? Then I can stop bug-fixing things that aren't bugs... ;-) Thanks, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
OK... So, what I've got now: Working - dev.ov-ervaringen.nl/ - dev.ov-ervaringen.nl/posts/index Not working: - dev.ov-ervaringen.nl/index.php The error (Notice (8): Undefined index: post) in /posts/index was a typo. I removed all the web.config files in /app/ and /app/webroot/, and created one web.config in /root/, which contains the following: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > Don't mind the interrupted names: IIS7 doesn't care about names, it'll work from top to bottom. When I had rule 1 and 2 removed, all my CSS markup was gone on every page. But now... How to fix the /index.php problem... :-\ Ciao, Jorick. Op donderdag 29 november 2012 13:44:38 UTC+1 schreef Jorick de Lange het volgende: > > Hi everyone, > > So, I (we, actually) decided to create a website. Because of the need to > extend later on, we decided to use a framework. CakePHP looked very well to > fit our needs. Installed it, configured it, and after some .htacces import > to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for > the default page of CakePHP. > > Happy as I was, I started to follow the blog tutorial. Created the desired > pages and I came to the point where you actualy can see the magic happen: I > browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, > back to the tutorial, to make sure I didn't make a typo. Nothing. > Everything seems fine. > > Now, I'm stuck. I don't have a clue where to search for the problem. > > Here are the files: > > in app/Controller/PostsController.php > >> class PostsController extends AppController { >> public $helpers = array('Html', 'Form'); >> >> public function index() { >> $this->set('posts', $this->Post->find('all')); >> } >> } > > > in app/Model/Post.php > >> class Post extends AppModel { >> } > > > in app/View/Posts/index.ctp > >> >> Blog posts >> >> >> Id >> Title >> Created >> >> >> >> >> >> >> > >> >> Html->link($post['Post']['title'], >> array('controller' => 'posts', 'action' => 'view', $post['post']['id'])); ?> >> >> >> >> >> >> > > > And, my web.config files: > > in root: > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > in app/ > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > in app/webroot/ > >> >> >> >> >> >> >> >> >> >> >> > matchType="IsDirectory" ignoreCase="false" negate="true" /> >> > matchType="IsFile" ignoreCase="false" negate="true" /> >> >> > appendQueryString="true" /> >> >> >> >> >> > > > --- > > Is there anyone who is seeing the problem and has the solution to solve it? > > Thanks in advance, > > Jorick. > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Oh, what I've forgot to mention: in app/Config/core.php debug is set to 2. Jorick. Op vrijdag 30 november 2012 01:04:24 UTC+1 schreef cricket het volgende: > > Please define "Nothing" for us. > > Also, do you have debug set to 2? > > On Thu, Nov 29, 2012 at 7:44 AM, Jorick de Lange > > wrote: > > Hi everyone, > > > > So, I (we, actually) decided to create a website. Because of the need to > > extend later on, we decided to use a framework. CakePHP looked very well > to > > fit our needs. Installed it, configured it, and after some .htacces > import > > to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for > > the default page of CakePHP. > > > > Happy as I was, I started to follow the blog tutorial. Created the > desired > > pages and I came to the point where you actualy can see the magic > happen: I > > browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, > back > > to the tutorial, to make sure I didn't make a typo. Nothing. Everything > > seems fine. > > > > Now, I'm stuck. I don't have a clue where to search for the problem. > > > > Here are the files: > > > > in app/Controller/PostsController.php > >> > >> class PostsController extends AppController { > >> public $helpers = array('Html', 'Form'); > >> > >> public function index() { > >> $this->set('posts', $this->Post->find('all')); > >> } > >> } > > > > > > in app/Model/Post.php > >> > >> class Post extends AppModel { > >> } > > > > > > in app/View/Posts/index.ctp > >> > >> > >> Blog posts > >> > >> > >> Id > >> Title > >> Created > >> > >> > >> > >> > >> > >> > >> > > >> > >> Html->link($post['Post']['title'], > >> array('controller' => 'posts', 'action' => 'view', > $post['post']['id'])); ?> > >> > >> > >> > >> > >> > >> > > > > > > And, my web.config files: > > > > in root: > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > in app/ > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > in app/webroot/ > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> matchType="IsDirectory" ignoreCase="false" negate="true" /> > >> matchType="IsFile" > >> ignoreCase="false" negate="true" /> > >> > >> >> appendQueryString="true" /> > >> > >> > >> > >> > >> > > > > > > --- > > > > Is there anyone who is seeing the problem and has the solution to solve > it? > > > > Thanks in advance, > > > > Jorick. > > > > > > -- > > Like Us on FaceBook https://www.facebook.com/CakePHP > > Find us on Twitter http://twitter.com/CakePHP > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "CakePHP" group. > > To post to this group, send email to cake...@googlegroups.com. > > > To unsubscribe from this group, send email to > > cake-php+u...@googlegroups.com . > > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi Reuben and Cricket, At least, something is working. While I've posted this issue here in the groups I started to backtrace the problem. What I've done now, is import the .htacces in /root/ to my web.config in /root/ AND copy the recommended web.config from the CakePHP book into the web.config in /root/. At least I can see the pages, and use the pretty URLS. But, I'm not there yet. As you can see, at http://dev-ov-ervaringen.nl/ the webpage is loading. At http://dev-ov-ervaringen.nl/index.php the page is loading as well, BUT with errors. The /index.php is situated in root/app/webroot/, if I'm not mistaken, right? Even http://dev-ov-ervaringen.nl/posts/index/ is working (only, I've got a nasty PHP error there. Have to figure out what that's supposed to mean, 'cause it's a litteral copy from the tutorial). What I think, is that I have to add some extra rules to my web.config in /app/ and in app/webroot. But, I don't have a clue yet. I'll keep searching and you informed. Jorick. Op vrijdag 30 november 2012 01:32:47 UTC+1 schreef Reuben het volgende: > > My guess is there is a problem with the web.config and URL rewrites. > > The web.config files you have, don't quite look like the recommended > web.config at > http://book.cakephp.org/2.0/en/installation/advanced-installation.html > > Unfortunately, I've not played with CakePHP on IIS7 using this method of > URL redirect. > > Actually, it could be a permissions issue. Visiting > http://dev.ov-ervaringen.nl/index.php yields an error that looks like > CakePHP is correctly determining the controller name (but this one doesn't > exist). So if the PostsController was being found, it might not be > executable/readable, due to permissions on that file. > > Regards > Reuben Helms > > On Thursday, 29 November 2012 22:44:38 UTC+10, Jorick de Lange wrote: >> >> Hi everyone, >> >> So, I (we, actually) decided to create a website. Because of the need to >> extend later on, we decided to use a framework. CakePHP looked very well to >> fit our needs. Installed it, configured it, and after some .htacces import >> to web.config files, it was functional! See http://dev.ov-ervaringen.nl/for >> the default page of CakePHP. >> >> Happy as I was, I started to follow the blog tutorial. Created the >> desired pages and I came to the point where you actualy can see the magic >> happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... >> Nothing. OK, back to the tutorial, to make sure I didn't make a typo. >> Nothing. Everything seems fine. >> >> Now, I'm stuck. I don't have a clue where to search for the problem. >> >> Here are the files: >> >> in app/Controller/PostsController.php >> >>> class PostsController extends AppController { >>> public $helpers = array('Html', 'Form'); >>> >>> public function index() { >>> $this->set('posts', $this->Post->find('all')); >>> } >>> } >> >> >> in app/Model/Post.php >> >>> class Post extends AppModel { >>> } >> >> >> in app/View/Posts/index.ctp >> >>> >>> Blog posts >>> >>> >>> Id >>> Title >>> Created >>> >>> >>> >>> >>> >>> >>> > >>> >>> Html->link($post['Post']['title'], >>> array('controller' => 'posts', 'action' => 'view', $post['post']['id'])); ?> >>> >>> >>> >>> >>> >>> >> >> >> And, my web.config files: >> >> in root: >> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> in app/ >> >>>
IIS 7, CakePHP 2.2.3 and the Blog Tutorial
Hi everyone, So, I (we, actually) decided to create a website. Because of the need to extend later on, we decided to use a framework. CakePHP looked very well to fit our needs. Installed it, configured it, and after some .htacces import to web.config files, it was functional! See http://dev.ov-ervaringen.nl/ for the default page of CakePHP. Happy as I was, I started to follow the blog tutorial. Created the desired pages and I came to the point where you actualy can see the magic happen: I browsed to http://dev.ov-ervaringen.nl/posts/index/ and... Nothing. OK, back to the tutorial, to make sure I didn't make a typo. Nothing. Everything seems fine. Now, I'm stuck. I don't have a clue where to search for the problem. Here are the files: in app/Controller/PostsController.php > class PostsController extends AppController { > public $helpers = array('Html', 'Form'); > > public function index() { > $this->set('posts', $this->Post->find('all')); > } > } in app/Model/Post.php > class Post extends AppModel { > } in app/View/Posts/index.ctp > > Blog posts > > > Id > Title > Created > > > > > > > > > > Html->link($post['Post']['title'], > array('controller' => 'posts', 'action' => 'view', $post['post']['id'])); ?> > > > > > > And, my web.config files: in root: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > in app/ > > > > > > > > > > > > > > > > > > > > in app/webroot/ > > > > > > > > > > > matchType="IsDirectory" ignoreCase="false" negate="true" /> > ignoreCase="false" negate="true" /> > > appendQueryString="true" /> > > > > > --- Is there anyone who is seeing the problem and has the solution to solve it? Thanks in advance, Jorick. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.