Sunday, February 24, 2013

Re: cakephp not working in my local xampp

Try opening your \dishgram\app\webroot\index.php and changing 

define('CAKE_CORE_INCLUDE_PATH', 'E:' . DS . 'wamp' . DS . 'www' . DS . 'cakephp' . DS . 'lib'); 

to your actual cake main directory.

Il giorno sabato 23 febbraio 2013 14:30:07 UTC+1, omsa...@adodis.com ha scritto:
Dear all,

I am new for cakephp, I had download all file set in my production server, and put in my local xampp server.

My file path is : E:/xampp/htdocs/projects/dish/ and i have change my database connection also, but not working what can i do. 

I changed rewrite rule in appache config. All are post in google some changes, And i follow that one but not  working,and how to change htaccess file.


root/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /projects/dishgram/app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

root/app/.htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /projects/dishgram/app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

root/app/webroot/.htaccess

DirectoryIndex index.html index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /projects/dishgram/app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

After i put this url in  my system " http://127.0.0.1/projects/dishgram/ " getting error.

Warning: require(..\config\config.php) [function.require]: failed to open stream: No such file or directory in E:\xampp\htdocs\projects\dishgram\app\webroot\index.php on line 27

Fatal error: require() [function.require]: Failed opening required '..\config\config.php' (include_path='.;E:\xampp\php\PEAR') in E:\xampp\htdocs\projects\dishgram\app\webroot\index.php on line 27

Thanks,
Sakthi




--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: