1
votes

I have new instance in AWS. I have make var/www directory using PuTTy. I have upload all file to var/www/html directory. When i open IP Public Instance in Web Browser there are :

Warning: _cake_core_ cache was unable to write 'cake_dev_id' to File cache in /var/www/html/lib/Cake/Cache/Cache.php on line 322

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

Then i changed permission:

sudo chmod -R 777 /var/www/html/lib
sudo chmod -R 777 /var/www/html/app

But when i changed the permission there are an error:

Error: Cannot use 'string' as class name as it is reserved File: /var/www/html/lib/Cake/Utility/String.php Line: 24

2
make your tmp folder writeabletarikul05
my cache folder is in app folder, does cache folder automatic be writeable when is used this sudo chmod -R 777 /var/www/html/app?wendy
What is your cakephp version ?tarikul05
CakePHP Version 2.5.3 sorrywendy

2 Answers

0
votes

It clearly saying error is in the class name. You are using String.php and String is a reserve keyword.

Try Changing the name of String.php to something else and try again.

0
votes

You need to add permission in your tem and logs folder
if you don't have those folder you need to create those folder you may use

cd /var/www/html/app
mkdir -m 777 tmp

Here is the Official Doc