Search the Community
Showing results for tags 'directories'.
-
Hello, I have to handle the finishing of a prestashop website that is almost done and it's the first time I ever use prestashop, + I'm not very familiar with php and mysql I have to questions : 1 - When I launch MAMP, and get to http://localhost:8888/www/<mysite>/index.php, I get only this : Link to database cannot be established: SQLSTATE[HY000] [1045] Access denied for user 'pshop'@'localhost' (using password: YES) Any idea where I must look and what to change ? I've been reading a couple of posts about it but couldn't find my answer 2 - I have to change some layout things, add some links, placeholders, these kind of things… i've been reading a good part of the doc but it remains a sort of mystery, where and what are the files I have to open ? Are they the themes/theme/<name>.tpl ? So they are written using smarty ? so I should get into php to handle them ? Thank you very much in advance for your answers best
-
My admins don't like having directories in the HTML tree that are writable by the web server. Clearly several directories need to be writable by the system in order to upload attachments, upload images, update the cache and smarty cache, etc. However, it's a security issue having these writable directories in the HTML directory tree - imagine if someone were able to coax your server into writing an executable file or php file to your writable directories, then do arbitrary things to your server. I was hoping that changing the constants in prestashop/config/defines.inc.php would allow me to move my img directory outside the HTML tree, but in my testing that did not work. It seems these directories must be somewhere in the HTML tree. Is there a way to do this for the img directory? What about the smarty and cache directories? thanks for any help or insight you can provide.