Yup. Your server isn't set up correctly. When your server works properly, the .htaccess files will route you from the site root (in your case /cakephp) to /cakephp/app/webroot/index.php. If that isn't happening your server or your cake set up is wrong. The fact that you are getting directory listings on more than one app on your server indicates a server set up issue. CakePHP does work - if it doesn't work for you, look local for the solution.
> Sorry it was already enabled. I was writing the steps I had taken previously. I am still getting the directory listing by going to localhost/cakephp/.
> Just a note....when I access localhost/phpmyadmin/ I also get a directory listing. I have to click on index.php to be able to access my database. Is this a similar problem?
> -- > Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
> 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
Ok I'll try to see what is wrong with my Apache server. You wouldn't happen to know where I should look, would you? Possibly a configuration in the httpd file?
Thanks for walking me through everything and pinpointing it to this point.
> Ok I'll try to see what is wrong with my Apache server. You wouldn't > happen to know where I should look, would you? Possibly a > configuration in the httpd file?
> Thanks for walking me through everything and pinpointing it to this point. > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and > help others with their CakePHP related questions.
> 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
> Ok I'll try to see what is wrong with my Apache server. You wouldn't > happen to know where I should look, would you? Possibly a configuration in > the httpd file?
> Thanks for walking me through everything and pinpointing it to this point.
Thank you!!! Finally it is working! I changed the DirectoryIndex line and added index.php and it is finally working. I can't believe that was the problem. Shouldn't that have changed when I installed PHP?
That could be it... I am reading this post to figure what's happening, and I'm reading on that link where it says that IIS 7 natively doesn't support .htaccess files. I am running on IIS 7, perhaps you are too?
I'm not new to Cake (so I knew what it should look like), but just did a brand-new install of Apache 2.4, PHP 5.3.17, and Cake 2.2.3 on a Windows machine. In addition to the documented steps, I also had to do the following to get the Cake main page to display:
- Uncomment the *LoadModule rewrite_module *line in httpd.conf - Add *index.php* to the *DirectoryIndex* line as described above
The rewrite_module stuff is mentioned prominently in the existing documentation, but the DirectoryIndex part isn't. Yes, that's technically a PHP configuration but should probably be in the Cake docs anyway.
On Tue, Oct 9, 2012 at 2:47 PM, Thomas Smith <tharlinsm...@gmail.com> wrote:
> I'm not new to Cake (so I knew what it should look like), but just did a
> brand-new install of Apache 2.4, PHP 5.3.17, and Cake 2.2.3 on a Windows
> machine. In addition to the documented steps, I also had to do the
> following to get the Cake main page to display:
> Uncomment the LoadModule rewrite_module line in httpd.conf
> Add index.php to the DirectoryIndex line as described above
> The rewrite_module stuff is mentioned prominently in the existing
> documentation, but the DirectoryIndex part isn't. Yes, that's technically a
> PHP configuration but should probably be in the Cake docs anyway.
> ---
> 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.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> --- > 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.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.