<< Configuration || Running the sample site >>

File Permissions


Set the right permissions on all files (for security reasons) for admin-interface and frontend.

First, create a directory called templates_c in the /frontend and /backend directories.

--> *NEVER* do this as ROOT <--
su - username
cd public_html/spunq/
find public_html/spunq -type f -exec chmod 644 {} \;
find public_html/spunq -type d -exec chmod 755 {} \;


Take care: In this step you change permissions recursively! If you do it as root in the wrong place (worst case in / ) you would change permissions on the hole system!!!

Some directories need to be writable by the user your webserver is running under.

If you have root-access to the webserver change the ownership of the following directories:

cd public_html/spunq13/backend/
chown www-data:www-data templates_c // compiled smarty templates
chown www-data:www-data upload // directory for uploaded files
chown www-data:www-data backup // directory for database backups
chown -R www-data:www-data logs // directory for log-files

cd public_html/spunq13/frontend/
chown www-data:www-data templates_c // compiled smarty templates
chown www-data:www-data documents // directory for document upload
chown www-data:www-data image // directory for image upload
chown www-data:www-data rss // directory for rss feeds
chown -R www-data:www-data logs // directory for log-files


If you cannot get root-access provide write permissions to the folders for the web-user:

cd public_html/spunq13/backend
chmod 777 templates_c
chmod 777 upload
chmod 777 backup
chmod -R 777 logs

cd public_html/spunq/frontend/
chmod 777 templates_c
chmod 777 documents
chmod 777 image
chmod 777 rss
chown -R 777 logs/


Tags

Installation, Technical

Related Subjects

>> File Structure - Backend
>> File Structure - Frontend

Do you need additional information?

Pose your question

Search