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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2008, 10:37 PM
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default zend framework installation doesnt work

Hi all,
I am trying to implement the tutorial at the url below.
Official ZF QuickStart - Zend Framework Wiki

I have set up the directory structure as stated:
QuickStart/
application/
controllers/
views/
scripts/
library/
public/


However, when I try to go to my localhost i get the following error:

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in library/Zend/Controller/Dispatcher/Standard.php:249 Stack trace: #0 library/Zend/Controller/Front.php(914):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 library/Zend/Controller/Front.php(223): Zend_Controller_Front->dispatch() #2 application/bootstrap.php(8): Zend_Controller_Front::run('controllers') #3 public/index.php(2): require('/var/www/html/z...') #4 {main} thrown in library/Zend/Controller/Dispatcher/Standard.php on line 249


Any clue as to what I might be doing wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-01-2008, 06:27 PM
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default update

I downloaded the zip file provided in the same tutorial. however when i try to access it in browser then I get this error:

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '' (111)' in /quickstart/library/Zend/Db/Adapter/Pdo/Abstract.php:131 Stack trace: #0 /quickstart/library/Zend/Db/Adapter/Abstract.php(390): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /quickstart/library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('DESCRIBE `comme...', Array) #2 /quickstart/library/Zend/Db/Adapter/Pdo/Mysql.php(137): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `comme...') #3 /quickstart/library/Zend/Db/Table/Abstract.php(605): Zend_Db_Adapter_Pdo_Mysql->describeTable('comments', NULL) #4 /quickstart/library/Zend/Db/Table/Abstract.php(534): Zend_Db_Table_Abstract->_setupMetadata() #5 /quickstart/library/Zend/Db/Table/Abstract.php(269): Zend_Db_Table_Abstract->_setup( in /quickstart/library/Zend/Db/Adapter/Pdo/Abstract.php on line 131

This is probably related with pdo mysql not being configure but I did configure my php with pdo option.

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/sbin/apxs' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-gd' '--with-jpeg-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-pdo-mysql=/usr/bin/mysql' '--with-zlib'

Any idea what might be going on??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-01-2008, 07:28 PM
Member
 
Join Date: Mar 2007
Posts: 40
Default

you should try standard php way (mysqli_connect) and solve this, using propbably another (php/mysql only)
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 09:41 PM.