Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008, 09:24 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Unhappy Error 500

I haven't found any thread answering my problem, so here I am.
I've set up all the directories and files exactly as it is in the ZF QuickTutorial on the official web page. The only difference is that in my case the html dir is named "cities" - everything else is the same.
After opening the web page I get a 500 Internal Server Error.

I tried changing index.phtml to index.html, in case the server wouldn't handle the .phtml file - no effect. I know that server handles the rewrite mode. I have added the library to include_path. I'm pretty sure I've done everything ok, but it's not working. Any ideas, that might help me? Would be EXTREMELY gratefull for any kind of assistance :]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 09:41 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Default addition

I've asked my webmaster what might the problem be, and they told me that the .htaccess entry:
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
is not valid on Apache 1.3.
Would anyone know, what should this entry be replaced with???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 10:07 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Default another addition

I actually tried to change the index.php to Google and it works, as in it opens the google.com page. Then I tried to remove the RewriteRule line at all, and it actually displayed the index.phtml file properly! I have no idea what is going on, and why does it work this way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 12:03 PM
Junior Member
 
Join Date: May 2008
Posts: 5
Default and another one...

after removing RewriteRule entry from .htaccess, index.phtml was displayed properly. So I left it as it was and started working on the rest of the files. But I somehow cannot evalute <a href="<?php echo $this->baseUrl ?>/index/test">Test it</a> after putting it into index.phtml. Ofcourse baseUrl variable is set properly and I have added testAction to IndexController class, and ofcourse the test.phtml file in /application/views/scripts/index/ directory. I think this might have something to do with the fact that I don't have the RewriteRule in the .htaccess file. Am I right?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-07-2008, 02:41 PM
Junior Member
 
Join Date: Jan 2008
Posts: 16
Default

Mod_rewrite may not be enabled on your host.
You may achieve the same functionality with 404 handler and adding 200 OK header.
I am assuming that you're under Linux/Unix hosting and running apache as web server
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-07-2008, 07:51 PM
Junior Member
 
Join Date: May 2008
Posts: 5
Default details

Thanks for answer, actually it's good, that I at least know, I won't be able to use the RewriteRule. But I don't know what you mean by a 404 handler and 200 OK header. Sorry, I'm a software programmer for a few years, but actually quite new to websites programming. Would be very gratefull for explanation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:40 AM.