Friday, June 28, 2013

Problems setting cakePHP on Fedora 18

Hello everyone,

It seems like some eople already had this problem, but nothing has worked for me and i am still looking for help...

I'm running:
  • PHP 5.4.16
  • mySQL 5.5.32
  • Apache 2.4.4

Apache server is running, even managed to install phpmyadmin.

Now, I downloaded cakePHP 2.3.6, and copied in the web root directory (/var/www/html) and rename it to cakeBlog.

When I try to browse localhost/cakeBlog, i get:

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

That tells me that some of the files in /var/www/html/cakeBlog/lib/Cache are not writable.

As found in other posts, I changed owner and permissions on this folder, all its subfolders and files and also to the app/tmp folder:

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

I restarted the apache server, changed the security.salt and cipher but still getting this fatal error.

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

Edwin.



--
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: