I installed from the svn trunk and I have the .htaccess file in my 1.2.x.x folder under the DocumentRoot - "/Library/WebServer/ Documents", are you saying that I need to copy this file to my apache directory? I tried copying that file to "/opt/local/apache2/htdocs but it made no difference.
On Jan 14, 4:24 pm, Bob Albert <[email protected]> wrote: > It looks like your httpd.conf file is correct. You just want the > AllowOverride set to All. I had a very similar problem with my Mac. > I'm using MAMP install, but i think your problem could be > the .htaccess file. In the 1.2 generic folder that you use as the > basis of your app has a .htaccess file that needs to be present in > your htdocs or webroot of the app folder in your Apache folder. > Sometimes this does not get copied correctly if you copied the > expanded folder. > > Either ls -la the folder in the terminal or show your hidden files and > make sure that .htaccess file was copied correctly to the root of your > cake app folder. > > On Jan 14, 2009, at 3:44 PM, Webweave wrote: > > > > > Looks like you are running on Mac. > > > If you're using the built in web server, then it is located at / > > private/etc/apache2/httpd.conf > > > The 'which' command doesn't find files, it just tells you where the > > executable is in your path. > > > On Jan 13, 3:54 pm,neridaj<[email protected]> wrote: > >> Hello, > > >> I just installed cake version 1.2.0.7962 and was going through the > >> blog tutorial when I got the generic index page because there is a > >> problem with my httpd.conf. I ran locate and found quite a few > >> different httpd.conf files: > > >> $ locate httpd.conf > >> /Applications/TextMate.app/Contents/SharedSupport/Bundles/ > >> Apache.tmbundle/Commands/Open httpd.conf.plist > >> /opt/local/apache2/conf/httpd.conf > >> /opt/local/apache2/conf/original/httpd.conf > >> /opt/local/var/macports/software/apache2/2.2.11_0/opt/local/apache2/ > >> conf/original/httpd.conf > >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/ > >> apache2/files/patch-httpd.conf.in-sensitive-files.diff > >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/ > >> htdig/files/httpd.conf > >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/ > >> lighttpd/files/patch-doc-lighttpd.conf > >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/ > >> lighttpd-devel/files/patch-doc-lighttpd.conf > >> /private/etc/httpd/httpd.conf > >> /private/etc/httpd/httpd.conf.bak > >> /private/etc/httpd/httpd.conf.default > >> /private/etc/httpd/httpd.conf.entropy.backup > >> /usr/local/apache2/conf/httpd.conf > >> /usr/local/apache2/conf/original/httpd.conf > > >> I'm assuming I need to edit the "/opt/local/apache2/conf/httpd.conf" > >> file as instructed > >> underhttp://book.cakephp.org/view/333/A-Note-on-mod_rewrite > >> but it doesn't fix the problem. Here is what I have in the > >> aforementioned httpd.conf file: > > >> DocumentRoot "/opt/local/apache2/htdocs" > > >> <Directory "/opt/local/apache2/htdocs"> > >> # > >> # Possible values for the Options directive are "None", "All", > >> # or any combination of: > >> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI > >> MultiViews > >> # > >> # Note that "MultiViews" must be named *explicitly* --- "Options > >> All" > >> # doesn't give it to you. > >> # > >> # The Options directive is both complicated and important. > >> Please > >> see > >> #http://httpd.apache.org/docs/2.2/mod/core.html#options > >> # for more information. > >> # > >> Options Indexes FollowSymLinks > > >> # > >> # AllowOverride controls what directives may be placed > >> in .htaccess files. > >> # It can be "All", "None", or any combination of the keywords: > >> # Options FileInfo AuthConfig Limit > >> # > >> AllowOverride All > > >> # > >> # Controls who can get stuff from this server. > >> # > >> Order allow,deny > >> Allow from all > > >> </Directory> > > >> I thought maybe I needed to add this httpd.conf to my .bash_profile > >> which I did with: > > >> PATH="/opt/local/bin:/opt/local/sbin:$PATH" > >> export DISPLAY=:0.0 > > >> export PATH=${PATH}:"/usr/local/mysql-5.0.51a-osx10.4-powerpc/bin/" > > >> export EDITOR='mate -w' > > >> # Setting PATH for MacPython 2.5 > >> # The orginal version is saved in .bash_profile.pysave > >> PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$ > >> {PATH}" > >> export PATH > > >> #export PATH=${PATH}:/usr/local/mysql-5.0.51a-osx10.4-powerpc/bin/ > >> PATH="/opt/local/apache2/conf:${PATH}" > >> export PATH > > >> ...but when I run "which httpd.conf" I get this: > > >> $ which httpd.conf > >> no httpd.conf in /opt/local/apache2/conf /Library/Frameworks/ > >> Python.framework/Versions/Current/bin /opt/local/bin /opt/local/ > >> sbin / > >> opt/local/apache2/conf /Library/Frameworks/Python.framework/Versions/ > >> Current/bin /opt/local/bin /opt/local/sbin /bin /sbin /usr/bin /usr/ > >> sbin /usr/local/mysql-5.0.51a-osx10.4-powerpc/bin/ /usr/local/ > >> mysql-5.0.51a-osx10.4-powerpc/bin/ > >> $ > > >> If anyone can help me out I would appreciate it, > > >> Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
