Alıntı
Before the installer can start, you have to make sure the following settings are applied to directories and files. The webserver must have write access to certain files and folders.
To set the chmod as safe as possible, login to your ostube installation by secure shell; (for example cd /var/www/html).
Lets assume that osTube is unpacked in directory "ostube". If you changed this, replace "ostube" with the directory name you used.
To set the chmod as safe as possible, login to your ostube installation by secure shell; (for example cd /var/www/html).
Lets assume that osTube is unpacked in directory "ostube". If you changed this, replace "ostube" with the directory name you used.
- If you are using Apache version 1.x (and only then!) first use these commands:
usermod -g apache -G users apache
By using this command the webserver Apache is added to group users. - If you run Apache version 1.x, run this command:
chgrp -R users ostube
If you run Apache2 (default webserver in most modern linux distros) run his command:
chgrp -R www-data ostube
By running this command we change the ownership of the osTube-Portal-Folder and all the subfolders and files recursive to group users (on Apache 1.x) or to group www-data (on Apache2). - chmod 775 ostube
Here we give group users and therefore the webserver Apache has rights to write into the osTube-Portal-Folders. - chmod 775 ostube/includes
Now also do this for config file includes/config.php, because the installer has to save the database information here. After the installation is done it will be set to chmod 666. - chmod -R 775 ostube/media
This folder and the subfolders are used to store media and all kinds of custom data. Here the webserver needs write access also. Please dont miss -R in the command, because this applies the write rights to all subfolders also. - chmod 777 ostube/templates_c
In this directory the cache files are stores. We need write access here too.