is sudo-ed it and it works now thanks all for the greathelp
On Sun, Nov 29, 2009 at 11:03 PM, Jigal sanders <[email protected]>wrote: > where and how should i do this? > > > On Sun, Nov 29, 2009 at 11:02 PM, Jurian Sluiman < > [email protected]> wrote: > >> You don't have the rewrite module enabled. Try "a2enmod rewrite" to enable >> the >> rewrite module for apache (and of course reload the server). >> >> Regards, Jurian >> >> -- >> Jurian Sluiman >> CTO Soflomo V.O.F. >> http://soflomo.com >> >> On Sunday 29 Nov 2009 23:00:29 Jigal sanders wrote: >> > [Sun Nov 29 22:37:37 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:51 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:51 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:52 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:52 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:52 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:52 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:41:53 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:33 2009] [notice] caught SIGTERM, shutting down >> > [Sun Nov 29 22:45:35 2009] [notice] Apache/2.2.11 (Ubuntu) >> > PHP/5.2.6-3ubuntu4.4 with Suhosin-Patch configured -- resuming normal >> > operations >> > [Sun Nov 29 22:45:47 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:48 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:48 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:48 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:49 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:49 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:49 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:49 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:45:50 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:57:01 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:57:01 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:57:01 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:57:01 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > [Sun Nov 29 22:57:02 2009] [alert] [client 127.0.0.1] >> > /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps >> > misspelled or defined by a module not included in the server >> configuration >> > >> > On Sun, Nov 29, 2009 at 10:58 PM, Bradley Holt >> > >> > <[email protected]>wrote: >> > > Can you look at your web server logs and see what the error is? If >> > > it's giving a 500 error, it should be logged. >> > > >> > > On Sun, Nov 29, 2009 at 4:52 PM, Jigal sanders <[email protected] >> > >> > > >> > > wrote: >> > > > sorry the nrka/pulic is my docroot >> > > > i created this project on windows using zend tool >> > > > >> > > > On Sun, Nov 29, 2009 at 10:50 PM, Bradley Holt < >> > > >> > > [email protected]> >> > > >> > > > wrote: >> > > >> Those should not all be in your document root -- "public" should >> > > >> become your document root (or renamed to match your document root >> if >> > > >> you prefer) and all the other directories (application, library, >> etc.) >> > > >> should all be at the same level as your document root. See: >> > > >> >> > > >> http://framework.zend.com/manual/en/project-structure.project.html >> > > >> >> > > >> On Sun, Nov 29, 2009 at 4:43 PM, Jigal sanders < >> [email protected]> >> > > >> >> > > >> wrote: >> > > >> > it doesn't work. >> > > >> > i have in my docroot: >> > > >> > nrka/ >> > > >> > application >> > > >> > library >> > > >> > public >> > > >> > tests >> > > >> > >> > > >> > >> > > >> > On Sun, Nov 29, 2009 at 10:40 PM, Bradley Holt >> > > >> > <[email protected]> >> > > >> > >> > > >> > wrote: >> > > >> >> OK, that's a step in the right direction then :-) >> > > >> >> >> > > >> >> Try adding this line right after RewriteEngine On (assuming your >> ZF >> > > >> >> application isn't in a subdirectory of your document root): >> > > >> >> >> > > >> >> RewriteBase / >> > > >> >> >> > > >> >> On Sun, Nov 29, 2009 at 4:37 PM, Jigal sanders < >> > > >> > > [email protected]> >> > > >> > > >> >> wrote: >> > > >> >> > yes i have restarted. >> > > >> >> > now i get a apache 500 >> > > >> >> > >> > > >> >> > On Sun, Nov 29, 2009 at 10:36 PM, Bradley Holt >> > > >> >> > <[email protected]> >> > > >> >> > >> > > >> >> > wrote: >> > > >> >> >> Have you restarted Apache since changing your virtual host >> > > >> >> >> configuration? Are you still getting a 404 or a different >> error >> > > >> > > now? >> > > >> > > >> >> >> On Sun, Nov 29, 2009 at 4:34 PM, Jigal sanders >> > > >> >> >> <[email protected]> >> > > >> >> >> >> > > >> >> >> wrote: >> > > >> >> >> > this is what i have in my .htaccess file on the public >> > > >> >> >> > directory >> > > >> >> >> > >> > > >> >> >> > SetEnv APPLICATION_ENV development >> > > >> >> >> > >> > > >> >> >> > RewriteEngine On >> > > >> >> >> > RewriteCond %{REQUEST_FILENAME} -s [OR] >> > > >> >> >> > RewriteCond %{REQUEST_FILENAME} -l [OR] >> > > >> >> >> > RewriteCond %{REQUEST_FILENAME} -d >> > > >> >> >> > RewriteRule ^.*$ - [NC,L] >> > > >> >> >> > RewriteRule ^.*$ index.php [NC,L] >> > > >> >> >> > >> > > >> >> >> > On Sun, Nov 29, 2009 at 10:32 PM, Bradley Holt >> > > >> >> >> > <[email protected]> >> > > >> >> >> > >> > > >> >> >> > wrote: >> > > >> >> >> >> What do your rewrite rules look like? >> > > >> >> >> >> >> > > >> >> >> >> On Sun, Nov 29, 2009 at 4:29 PM, Jigal sanders >> > > >> >> >> >> <[email protected]> >> > > >> >> >> >> >> > > >> >> >> >> wrote: >> > > >> >> >> >> > No I have this: >> > > >> >> >> >> > >> > > >> >> >> >> > <VirtualHost *:80> >> > > >> >> >> >> > ServerAdmin [email protected] >> > > >> >> >> >> > >> > > >> >> >> >> > DocumentRoot /var/www/nrka/public/ >> > > >> >> >> >> > ServerName nrka >> > > >> >> >> >> > <Directory /var/www/nrka/public/> >> > > >> >> >> >> > Options Indexes FollowSymLinks MultiViews >> > > >> >> >> >> > AllowOverride All >> > > >> >> >> >> > Order allow,deny >> > > >> >> >> >> > allow from all >> > > >> >> >> >> > </Directory> >> > > >> >> >> >> > ##ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ >> > > >> >> >> >> > ##<Directory "/usr/lib/cgi-bin"> >> > > >> >> >> >> > ## AllowOverride None >> > > >> >> >> >> > ## Options +ExecCGI -MultiViews >> > > >> >> >> >> > +SymLinksIfOwnerMatch ## Order allow,deny >> > > >> >> >> >> > ## Allow from all >> > > >> >> >> >> > ##</Directory> >> > > >> >> >> >> > >> > > >> >> >> >> > ErrorLog /var/log/apache2/error.log >> > > >> >> >> >> > >> > > >> >> >> >> > # Possible values include: debug, info, notice, >> warn, >> > > >> >> >> >> > error, >> > > >> >> >> >> > crit, >> > > >> >> >> >> > # alert, emerg. >> > > >> >> >> >> > LogLevel warn >> > > >> >> >> >> > >> > > >> >> >> >> > CustomLog /var/log/apache2/access.log combined >> > > >> >> >> >> > >> > > >> >> >> >> > Alias /doc/ "/usr/share/doc/" >> > > >> >> >> >> > <Directory "/usr/share/doc/"> >> > > >> >> >> >> > Options Indexes MultiViews FollowSymLinks >> > > >> >> >> >> > AllowOverride All >> > > >> >> >> >> > Order deny,allow >> > > >> >> >> >> > Deny from all >> > > >> >> >> >> > Allow from 127.0.0.0/255.0.0.0 ::1/128 >> > > >> >> >> >> > </Directory> >> > > >> >> >> >> > >> > > >> >> >> >> > </VirtualHost> >> > > >> >> >> >> > >> > > >> >> >> >> > but it still doesn't work. I have the idea that there is >> > > >> >> >> >> > too much >> > > >> >> >> >> > in >> > > >> >> >> >> > this >> > > >> >> >> >> > file. >> > > >> >> >> >> > >> > > >> >> >> >> > On Sun, Nov 29, 2009 at 10:25 PM, Sudheer Satyanarayana >> > > >> >> >> >> > >> > > >> >> >> >> > <[email protected]> wrote: >> > > >> >> >> >> >> On Monday 30 November 2009 02:40 AM, Jigal sanders >> wrote: >> > > >> >> >> >> >>> Well, >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> my first problem is that it gets to my webroot but >> when I >> > > >> >> >> >> >>> click >> > > >> >> >> >> >>> on >> > > >> >> >> >> >>> a >> > > >> >> >> >> >>> link, it doesn't follow my controller and action. I >> > > >> >> >> >> >>> rather get >> > > >> >> >> >> >>> an >> > > >> >> >> >> >>> error: >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> The requested URL /authentication/login was not found >> on >> > > >> > > this >> > > >> > > >> >> >> >> >>> server. >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> the whole structure is exactly coppied to my project >> on >> > > >> >> >> >> >>> ubuntu. >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> can it be something in my vhost config? >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> <VirtualHost *:80> >> > > >> >> >> >> >>> ServerAdmin [email protected] >> > > >> >> >> >> >>> <mailto:[email protected]> >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> DocumentRoot /var/www/nrka/public/ >> > > >> >> >> >> >>> ServerName nrka >> > > >> >> >> >> >>> <Directory /var/www/nrka/public/> >> > > >> >> >> >> >>> Options Indexes FollowSymLinks MultiViews >> > > >> >> >> >> >>> AllowOverride None >> > > >> >> >> >> >> >> > > >> >> >> >> >> AllowOverride All. >> > > >> >> >> >> >> >> > > >> >> >> >> >>> Order allow,deny >> > > >> >> >> >> >>> allow from all >> > > >> >> >> >> >>> </Directory> >> > > >> >> >> >> >>> ##ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ >> > > >> >> >> >> >>> ##<Directory "/usr/lib/cgi-bin"> >> > > >> >> >> >> >>> ## AllowOverride None >> > > >> >> >> >> >>> ## Options +ExecCGI -MultiViews >> > > >> >> >> >> >>> +SymLinksIfOwnerMatch ## Order allow,deny >> > > >> >> >> >> >>> ## Allow from all >> > > >> >> >> >> >>> ##</Directory> >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> ErrorLog /var/log/apache2/error.log >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> # Possible values include: debug, info, notice, >> warn, >> > > >> >> >> >> >>> error, >> > > >> >> >> >> >>> crit, >> > > >> >> >> >> >>> # alert, emerg. >> > > >> >> >> >> >>> LogLevel warn >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> CustomLog /var/log/apache2/access.log combined >> > > >> >> >> >> >>> >> > > >> >> >> >> >>> Alias /doc/ "/usr/share/doc/" >> > > >> >> >> >> >>> <Directory "/usr/share/doc/"> >> > > >> >> >> >> >>> Options Indexes MultiViews FollowSymLinks >> > > >> >> >> >> >>> AllowOverride None >> > > >> >> >> >> >> >> > > >> >> >> >> >> AllowOverride All. >> > > >> >> >> >> >> >> > > >> >> >> >> >> You have to allow the .htaccess files to override >> > > >> >> >> >> >> settings. >> > > >> > > Or >> > > >> > > >> >> >> >> >> just >> > > >> >> >> >> >> put >> > > >> >> >> >> >> up >> > > >> >> >> >> >> the rewrite rules in the <Virtualhost> section of >> Apache >> > > >> >> >> >> >> configuration. >> > > >> >> >> >> >> >> > > >> >> >> >> >> -- >> > > >> >> >> >> >> >> > > >> >> >> >> >> With warm regards, >> > > >> >> >> >> >> Sudheer. S >> > > >> >> >> >> >> Tech stuff: http://techchorus.net >> > > >> >> >> >> >> Business: http://binaryvibes.co.in >> > > >> >> >> >> > >> > > >> >> >> >> > -- >> > > >> >> >> >> > Met vriendelijke groet, >> > > >> >> >> >> > >> > > >> >> >> >> > Jigal Sanders >> > > >> >> >> >> > A.J. Ernststraat 739 >> > > >> >> >> >> > 1082 LK Amsterdam >> > > >> >> >> >> > Mobiel: 06-42111489 >> > > >> >> >> >> >> > > >> >> >> >> -- >> > > >> >> >> >> Bradley Holt >> > > >> >> >> >> [email protected] >> > > >> >> >> > >> > > >> >> >> > -- >> > > >> >> >> > Met vriendelijke groet, >> > > >> >> >> > >> > > >> >> >> > Jigal Sanders >> > > >> >> >> > A.J. Ernststraat 739 >> > > >> >> >> > 1082 LK Amsterdam >> > > >> >> >> > Mobiel: 06-42111489 >> > > >> >> >> >> > > >> >> >> -- >> > > >> >> >> Bradley Holt >> > > >> >> >> [email protected] >> > > >> >> > >> > > >> >> > -- >> > > >> >> > Met vriendelijke groet, >> > > >> >> > >> > > >> >> > Jigal Sanders >> > > >> >> > A.J. Ernststraat 739 >> > > >> >> > 1082 LK Amsterdam >> > > >> >> > Mobiel: 06-42111489 >> > > >> >> >> > > >> >> -- >> > > >> >> Bradley Holt >> > > >> >> [email protected] >> > > >> > >> > > >> > -- >> > > >> > Met vriendelijke groet, >> > > >> > >> > > >> > Jigal Sanders >> > > >> > A.J. Ernststraat 739 >> > > >> > 1082 LK Amsterdam >> > > >> > Mobiel: 06-42111489 >> > > >> >> > > >> -- >> > > >> Bradley Holt >> > > >> [email protected] >> > > > >> > > > -- >> > > > Met vriendelijke groet, >> > > > >> > > > Jigal Sanders >> > > > A.J. Ernststraat 739 >> > > > 1082 LK Amsterdam >> > > > Mobiel: 06-42111489 >> > > >> > > -- >> > > Bradley Holt >> > > [email protected] >> > >> > > > > -- > Met vriendelijke groet, > > Jigal Sanders > A.J. Ernststraat 739 > 1082 LK Amsterdam > Mobiel: 06-42111489 > -- Met vriendelijke groet, Jigal Sanders A.J. Ernststraat 739 1082 LK Amsterdam Mobiel: 06-42111489
