|
|||
|
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? |
|
|||
|
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?? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|