Copy fromoriginal here: https://groups.google.com/forum/#!topic/koala-framework-dev/YyAHvExheNw
Hello, Koala framework developers!
I'm trying to install Koala Framework, but it not work. 4 days of debugging and no results at all...
2 days in windows platform. 2 days on linux platform....NOTHING
I use one instruction for all manipulations:
http://www.koala-framework.org/documentation/installation/local_php_built-in_webserver
Windows:
os 8.1 x64
lamp - openServer (apache 2.2.26, php 5.4.22, mysql 5.5.35, mod_rewrite on, apc on).
1. kwf-cms-demo
First, I try to install cms. I cloned git and saw installation wizard, but DB not create, because has i syntax error in setup.sql - extra semicolon. After correcting this DB install normally. Also in setup was a mistake about the locale, but I have not found how to fix it. I see this after all. Is it normal work? looks like html without any css...see file 1.jpg
No errors in folder kwf-cms-demo\log
2. kwf-app-demo
Second, I try to install app. On install i saw error "cache_dir must be a directory"... 2 hours of debug file cache/baskend/file.php, setting 'C:\temp\cache' etc and found a solution - ("cache_dir must be a directory" . echo $value). Value was 'cache\trl'. After create folder 'trl' installation comlete (same mistake about locale). But finally app not work, freeze on stage "loading..." see 2.jpg
In kwf-app-demo\log\notfound same in 2 files:
** REQUEST_URI **
/members/json-data
-- REQUEST_URI --
** HTTP_REFERER **
http://kwf-app-demo/
-- HTTP_REFERER --
** Time **
05:23:43
-- Time --
In kwf-app-demo\log\error same in 2 files:
** Exception **
Kwf_Exception_JavaScript
-- Exception --
** Thrown **
:
-- Thrown --
** Message **
"Uncaught SyntaxError: Unexpected token <"
-- Message --
** stack **
-- stack --
** REQUEST_URI **
http://kwf-app-demo/
-- REQUEST_URI --
** HTTP_REFERER **
(none)
-- HTTP_REFERER --
** HTTP_USER_AGENT **
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
-- HTTP_USER_AGENT --
** User **
guest
-- User --
** Time **
05:23:43
-- Time --
In all my attempts to clear cache I saw error - Fatal error: Call to undefined function mb_internal_encoding() in C:\OpenServer
domains\kwf-cms-demo\cache\setup3.php on line 51
BUT extension=php_mbstring.dll ENABLED(!), I see it in my phpinfo....
after disabling this line, next error:
exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not curr
ently installed' in C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend
Db\Adapter\Pdo\Abstract.php:112
Stack trace:
_0 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Db\Adapter\Pdo\My
sql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
_1 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Db\Adapter\Abstra
ct.php(448): Zend_Db_Adapter_Pdo_Mysql->_connect()
_2 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Db\Adapter\Pdo\Ab
stract.php(238): Zend_Db_Adapter_Abstract->query('SHOW TABLES', Array)
_3 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Db\Adapter\Abstra
ct.php(765): Zend_Db_Adapter_Pdo_Abstract->query('SHOW TABLES', Array)
_4 C:\OpenServer\domains\kwf-cms-demo\kwf-lib\Kwf\Util\ClearCache.php(127): Zend
_Db_Adapter_Abstract->fetchCol('SHOW TABLES')
_5 C:\OpenServer\domains\kwf-cms-demo\kwf-lib\Kwf\Controller\Action\Cli\ClearCac
heController.php(68): Kwf_Util_ClearCache->getTypes()
_6 [internal function]: Kwf_Controller_Action_Cli_ClearCacheController::getHelpO
ptions()
_7 C:\OpenServer\domains\kwf-cms-demo\kwf-lib\Kwf\Controller\Action\Cli\Abstract
.php(16): call_user_func(Array)
_8 C:\OpenServer\domains\kwf-cms-demo\kwf-lib\Kwf\Controller\Action.php(21): Kwf
_Controller_Action_Cli_Abstract->preDispatch()
_9 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Controller\Dispat
cher\Standard.php(295): Kwf_Controller_Action->dispatch('indexAction')
_10 C:\OpenServer\domains\kwf-cms-demo\library\zend\1.10.7\Zend\Controller\Front
.php(953): Zend_Controller_Dispatcher_Standard->dispatch(Object(Kwf_Controller_R
equest_Cli), Object(Kwf_Controller_Response_Http))
_11 C:\OpenServer\domains\kwf-cms-demo\kwf-lib\Kwf\Controller\Front.php(142): Ze
nd_Controller_Front->dispatch(Object(Kwf_Controller_Request_Cli), Object(Kwf_Con
troller_Response_Http))
_12 C:\OpenServer\domains\kwf-cms-demo\bootstrap.php(9): Kwf_Controller_Front->d
ispatch()
_13 {main}
BUT pdo_mysql and other dll's INSTALLED(!)
3. Working project
I tried to transfer normal working Koala project to my localhost, but see white screen.... manipulations with php/apache log level do nothing.
4. Working project GIT
I clone same project from GIT and see errors in browser:
Warning: include(Zend\Registry.php): failed to open stream: No such file or directory in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Loader.php on line 47
Warning: include(Zend\Registry.php): failed to open stream: No such file or directory in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Loader.php on line 47
Warning: include(): Failed opening 'Zend\Registry.php' for inclusion (include_path='.;C:\OpenServer\domains\aviashelf1\kwf-lib;library/zend/1.10.7') in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Loader.php on line 47
Fatal error: Class 'Zend_Registry' not found in C:\OpenServer\domains\aviashelf1\kwf-lib\Kwf\Registry.php on line 3
I tried to debug this, but not see what zend wants from me, this framework very big =(
Errors, errors, errors... In Windows system totally fault....
Linux:
os ubuntu x64 14.04 server
lamp - openServer (apache 2.4.7, php 5.5.9 with zend 2.5.0 and zend OPcache v.7.0.3, mysql 5.5.38, mod_rewrite on).
I tried to download virtual machine from koala server - 404 error
http://www.koala-framework.org/vmimages/ubuntukwf.vdi.bz2
Tried to see configuration - 404 error
http://www.koala-framework.org/about/server_requirements/ubuntu_example_configuration
1. kwf-app-demo
In first attempt in Linux I tried to clone kwf-app-demo. I cloned it to /var/www/html/portal (subdirectory on virtual host), start bootstrap.php, click "setup" and saw an error about permissions.... but after chmod 755 /var/www I saw 500 Internal server error.
I delete all and do it again into /var/www/html (root directory)... 5 refresh times koala wrote me - 500 error
"http://localhost/kwf/maintenance/setup" - see 3.jpg (not found)
http://localhost/ show me list of files, when I choose bootstrap.php - 500 error (after 3-5 calls/refresh from browser). See 4.jpg
In /var/www/html/log/error in 2 files:
** Exception **
ErrorException
-- Exception --
** Thrown **
/var/www/html/kwf-lib/Kwf/Setup.php:169
-- Thrown --
** Message **
Undefined index: REDIRECT_URL
-- Message --
** ExceptionDetail **
exception 'ErrorException' with message 'Undefined index: REDIRECT_URL' in /var/www/html/kwf-lib/Kwf/Setup.php:169
Stack trace:
#0 /var/www/html/kwf-lib/Kwf/Setup.php(169): Kwf_Debug::handleError(8, 'Undefined index...', '/var/www/html/k...', 169, Array)
_1 /var/www/html/kwf-lib/Kwf/Setup.php(298): Kwf_Setup::getRequestPath()
_2 /var/www/html/bootstrap.php(5): Kwf_Setup::dispatchMedia()
_3 {main}
-- ExceptionDetail --
** REQUEST_URI **
/bootstrap.php
-- REQUEST_URI --
** HTTP_REFERER **
h/ttp://192.168.1.147/
-- HTTP_REFERER --
** User **
guest
-- User --
** Time **
01:56:16
-- Time --
** _USERAGENT **
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
-- _USERAGENT --
** _GET **
Array
(
)
-- _GET --
** _POST **
Array
(
)
-- _POST --
** SERVER **
Array
(
[HTTP_HOST] => 192.168.1.147
[HTTP_CONNECTION] => keep-alive
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
[HTTP_REFERER] => h/ttp://192.168.1.147/
[HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch
[HTTP_ACCEPT_LANGUAGE] => ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] =>
Apache/2.4.7 (Ubuntu) Server at 192.168.1.147 Port 80
[SERVER_SOFTWARE] => Apache/2.4.7 (Ubuntu)
[SERVER_NAME] => 192.168.1.147
[SERVER_ADDR] => 192.168.1.147
[SERVER_PORT] => 80
[REMOTE_ADDR] => 192.168.1.9
[DOCUMENT_ROOT] => /var/www/html
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/html
[SERVER_ADMIN] => webmaster@localhost
[SCRIPT_FILENAME] => /var/www/html/bootstrap.php
[REMOTE_PORT] => 51175
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /bootstrap.php
[SCRIPT_NAME] => /bootstrap.php
[PHP_SELF] => /bootstrap.php
[REQUEST_TIME_FLOAT] => 1412207776.577
[REQUEST_TIME] => 1412207776
)
-- _SERVER --
** _FILES **
Array
(
)
-- _FILES --
Looks like mod_rewrite not work....
Today 5th day of debugging... arrrrrgh....
_Dear developers, what I'm doing wrond? How to make this wonder work??? =))_