sasori Posted January 8, 2010 Share Posted January 8, 2010 hi sirs, am trying to run ZF in my xampp. mod_rewrite is enabled and apache was restarted and yet am getting 500 error, what should i do ? Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/ Share on other sites More sharing options...
trq Posted January 8, 2010 Share Posted January 8, 2010 Post your .htaccess file. Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990719 Share on other sites More sharing options...
sasori Posted January 8, 2010 Author Share Posted January 8, 2010 I have the .htaccess file that contains these stuffs RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCOnd %{REQUEST_FILENAME} -d [ RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] my folder tree is like this htdocs/mysite/ /application/ =>/controllers/ =>/views/ =>/scripts/ =>/index/ /library/ /public/ =>/css/ =>/images/ =>/javascript/ .htaccess .index.php is that correct ? Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990721 Share on other sites More sharing options...
trq Posted January 8, 2010 Share Posted January 8, 2010 Is htdocs your servers document root? You'll need to move your application into there (preferably) or change.... RewriteRule ^.*$ /index.php [NC,L] to RewriteRule ^.*$ index.php [NC,L] Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990724 Share on other sites More sharing options...
sasori Posted January 8, 2010 Author Share Posted January 8, 2010 changing that configuration you stated didn't help. but with regards to the document root, yes, "htdocs" is my xampp's document root, i named the folder "mysite" and tweaked my host and vhosts so that I can just type a shortcut on my browser like "http://mysite" but then 500 error is showing up Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990726 Share on other sites More sharing options...
sasori Posted January 8, 2010 Author Share Posted January 8, 2010 I managed to tweak the AllowOveride stuff. but then some methods are depracated Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in C:\xampp\htdocs\gamenomad\library\Zend\Loader.php on line 207 Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\xampp\htdocs\gamenomad\library\Zend\Controller\Dispatcher\Standard.php:242 Stack trace: #0 C:\xampp\htdocs\gamenomad\library\Zend\Controller\Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 C:\xampp\htdocs\gamenomad\public\index.php(22): Zend_Controller_Front->dispatch() #2 {main} thrown in C:\xampp\htdocs\gamenomad\library\Zend\Controller\Dispatcher\Standard.php on line 242 Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990744 Share on other sites More sharing options...
trq Posted January 8, 2010 Share Posted January 8, 2010 That is indeed correct. You should read the docs for Zend_Loader, in particular the part about the autoloader. Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990750 Share on other sites More sharing options...
sasori Posted January 8, 2010 Author Share Posted January 8, 2010 I changed my mind. am gonna be using code igniter for noobs instead ROFL ..case solved. Quote Link to comment https://forums.phpfreaks.com/topic/187658-zf-500-error/#findComment-990802 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.