465 - Check if files are writable in installation

Status
Resolved

Issue
The shop script tries, during the installation process and during some certain processes running the shop system, to chmod some directories to writable which fails on some (restrictive) operating systems like Debian or FreeBSD. Unfortunately, the only available error message at this point appears at the end of the installation process for about 2 seconds.

Reason
When uploading the shop script via FTP, the owner of the script on the remote server is going to be ftp-user who may not have the right to chmod files or directories.

Solution
One would have to chown the complete script to the Apache user group using the server provider's (kis-) tool or if SSH access is available, by running this command (if for example www-data is the Apache user on Debian systems): $ chown -R www-data shopdirectory The downside with this solution is:


 * Some server providers simply do not allow such file operations.
 * chown and chmod need to be handled with care to avoid security risks.
 * When the only option is to chmod all affected files, the problem is that the current error message does not sate which files actually shall be made writable.

Feature Request

 * In case the OXID eShop installer script fails due to above mentioned reason, an error message shall come up like "The installer was unable to make some of your shop files and directories writable. Please adjust them manually:"
 * Then list all files that should be writable to the installer.
 * Also list all those files that should be writable by OXID eShop once the system has been set up, for example oxid.css.
 * Insert a "check again" button for the user to run the check once more.
 * Add that little colorful buttons as we have in the check for the system requirements. Refuse the completion of the installation until everything appears green.