Friday, June 28, 2013

Re: Problem setting up cakePHP on Fedora 18

Test your selinux configuration. Disable it temporaly to test if this is the problem.

El 28/06/2013 19:32, "Edwin Calderon" <edca81@gmail.com> escribió:
Hello everyone,

I already found similar problems on the group, but none seems to help me solving my problems.

I'm running:
  • Fedora 18 (64 bits)
  • Apache 2.4.4
  • mySQL 5.5.32
  • PHP 5.4.16

I downloaded cakePHP 2.3.6, then moved a copy to /var/www/html and renamed it to cakeBlog, to follow the blog tutorial.

I get this message when browsing localhost/cakeBlog:


Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakeBlog/lib/Cake/Cache/Cache.php on line 310

Warning: /var/www/html/cakeBlog/app/tmp/cache/persistent/ is not writable in /var/www/html/cakeBlog/lib/Cake/Cache/Engine/FileEngine.php on line 337

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/cakeBlog/lib/Cake/Cache/Cache.php:166 Stack trace: #0 /var/www/html/cakeBlog/lib/Cake/Cache/Cache.php(136): Cache::_buildEngine('_cake_core_') #1 /var/www/html/cakeBlog/app/Config/core.php(336): Cache::config('_cake_core_', Array) #2 /var/www/html/cakeBlog/lib/Cake/Core/Configure.php(78): include('/var/www/html/c...') #3 /var/www/html/cakeBlog/lib/Cake/bootstrap.php(171): Configure::bootstrap(true) #4 /var/www/html/cakeBlog/app/webroot/index.php(92): include('/var/www/html/c...') #5 {main} thrown in /var/www/html/cakeBlog/lib/Cake/Cache/Cache.php on line 166

From there I tried to change the ownership and permissions of the /lib/cake/cache and /app/tmp folders with:

  • sudo chown -R apache:apache /var/www/html/cakeBlog/app/tmp
  • sudo chmod -R 775 /var/www/html/cakeBlog/app/tmp
  • sudo chown -R apache:apache /var/www/html/cakeBlog/lib/Cake/Cache
  • sudo chmod -R 775 /var/www/html/cakeBlog/lib/Cake/Cache

But still does not do the trick!

What I am missing? Any help would be apreciated!!!

Ed

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: