Great, glad to hear you got it working :) -- Hector
On Sun, Feb 28, 2010 at 8:40 AM, zeliboba <[email protected]> wrote: > > > > Well, Hector, thanks for your fast reply. > > Your reply roused me to list a bit of manuals about apache. My mistake was > in httpd.conf file, where I printed directive "AllowOverride All". As I see > now this directive also can be in default site description (in my case this > is default site for apache). Usually the location of this file is: > /etc/apache2/sites-available/default > So, if to edit this file and set "AllowOverride All" for needed directories > or just to remove this directive (but leave it in httpd.conf) - everything > begins to work! > > > Hector Virgen wrote: > > > > First of all, welcome to ZF :) > > > > Looks like everything is good except for the root of your local host. Try > > setting it to /home/zeliboba/dgb/public. This is where all of your > > publicly-accessible files will go (index.php, .htaccess, css, images, js, > > etc.) and safely hides away all of the application's PHP scripts and > > config > > from being accidentally served by apache. > > > > You should also update your <Directory> directive to point to the public > > folder. I hope this helps! > > > > -- > > Hector > > > > > > On Sun, Feb 28, 2010 at 2:26 AM, zeliboba <[email protected]> wrote: > > > >> > >> Hi all, I'm new to ZF. I'm trying to go through the Quickstart tutorial > >> but > >> have a trouble that unsolved by Googling. > >> > >> I'm falling in 404 error when trying visit http://localhost/guestbook/ > >> > >> 1. > >> To except any possible mistakes I've downloaded source or tutorial right > >> from ZF site. I can see index page of this tutorial, but guestbook is > >> still > >> 404 error. > >> > >> 2. > >> I've got mod_rewrite and it is enabled: > >> > >> zelib...@zeliboba:/etc/apache2/sites-enabled$ sudo a2enmod rewrite > >> [sudo] password for zeliboba: > >> Module rewrite already enabled > >> > >> 3. > >> I've got .htaccess in /public directory of my project. Here it is: > >> > >> RewriteEngine On > >> RewriteCond %{REQUEST_FILENAME} -s [OR] > >> RewriteCond %{REQUEST_FILENAME} -l [OR] > >> RewriteCond %{REQUEST_FILENAME} -d > >> RewriteRule ^.*$ - [NC,L] > >> RewriteRule ^.*$ index.php [NC,L] > >> > >> 4. > >> Here are possibly useful logs of my apache2 webserver: > >> [Sun Feb 28 12:47:49 2010] [notice] Graceful restart requested, doing > >> restart > >> [Sun Feb 28 12:47:49 2010] [notice] Apache/2.2.12 (Ubuntu) DAV/2 > >> SVN/1.6.5 > >> PHP/5.2.10-2ubuntu6.4 with Suhosin-Patch configured -- resuming normal > >> operations > >> [Sun Feb 28 12:47:51 2010] [error] [client 127.0.0.1] File does not > >> exist: > >> /home/zeliboba/dgb/public/guestbook, referer: http://localhost/ > >> [Sun Feb 28 13:00:24 2010] [error] [client 127.0.0.1] File does not > >> exist: > >> /home/zeliboba/dgb/public/guestbook, referer: http://localhost/ > >> > >> 5. > >> Here is my httpd.conf (/home/zeliboba/dgb - is the root of my project > and > >> root of localhost): > >> #Added by Zeliboba in cause of Zend framework purposes > >> <Directory "/home/zeliboba/dgb"> > >> AllowOverride All > >> </Directory> > >> > >> I've read some similar posts but nothing recommended there helps me. So > >> I'm > >> in one step to give up. Please help me. > >> -- > >> View this message in context: > >> > http://n4.nabble.com/http-localhost-guestbook-404-error-tp1572553p1572553.html > >> Sent from the Zend Framework mailing list archive at Nabble.com. > >> > > > > > > -- > View this message in context: > http://n4.nabble.com/http-localhost-guestbook-404-error-tp1572553p1572761.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
