1 (edited by zouhayer 2011-12-08 19:34:57)

Topic: (solved) gen_inc.php hacked !! must "Images" and "Config" be 777 mod?

hi

1) Is it good  that Only "Images" and "Config" need to be 777 , all the others need 755 after install ?

because somebody have changed my gen_inc.php  file despite my good .htaccess in admin folder !


2) in my gen_inc.php  what does $set_chmod = "0777"; means ?


how can  it  be  possible ???

version 7.5




thanks to help

Thumbs up Thumbs down

Re: (solved) gen_inc.php hacked !! must "Images" and "Config" be 777 mod?

>2) in my gen_inc.php  what does $set_chmod = "0777"; means ?
This is for new uploaded media files. It should be set to 0777.

>Is it good  that Only "Images" and "Config" need to be 777 , all the others need 755 after install ?

I think it's enough to have 777 permissions for images folder only and for caches. All other folders for templates, language file and configs I suggest to change to 644. I don't think that you change your site every day. That's why it's better to protect from changes from the site.

Re: (solved) gen_inc.php hacked !! must "Images" and "Config" be 777 mod?

Thanks Alex !

Thumbs up Thumbs down