wendy
wendy

Reputation: 13

Permission in CakePHP Using EC2 Instance

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

Upvotes: 1

Views: 301

Answers (2)

tarikul05
tarikul05

Reputation: 1913

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

Upvotes: 0

Amit
Amit

Reputation: 32386

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.

Upvotes: 0

Related Questions