php - cakephp application reconfiggured to run on new machine fails? -
i have cakephp application runs fine on 1 machine fails on another. cakephp application set run xampp. here steps performed reconfigure application on new machine (both machines os win7):
left application files in newly created folder (say,myapp)in htdocs of xampp folder. imported myapp's database mysql database (i can see myapp's database details in phpmyadmin) i didn't set virtual host because think takes time alter host file 1 time again , again. run on http://127.0.0.1/myapp designed :-d
changed myapp/app/config/database.php file content; particularly did
var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '', 'database' => 'myapp', //my database name application connect time 'encoding' => 'utf8', 'prefix' => '', );
uhmm, think necessary create cakephp application run on machine sadly, can see blank http://localhost/myapp/
update here .htaccess content. there .htaccess files in folders , content same
<ifmodule mod_rewrite.c> rewriteengine on rewriterule ^$ webroot/ [l] rewriterule (.*) webroot/$1 [l] </ifmodule> as deadlock suggested
<ifmodule mod_rewrite.c> rewriteengine on rewritebase myapp/ rewriterule ^$ app/webroot/ [l] rewriterule (.*) app/webroot/$1 [l] </ifmodule> php cakephp xampp cakephp-1.2
No comments:
Post a Comment