How to fix read/write permissions Failed! error during TestLink Install
Overview
In this tutorial, we will go through the folder read/write failed permissions errors during the new installation of TestLink instance on the Linux machine. The root for the error is that the install script doesn’t recognize the directories in the errors.
Environment
Linux Ubuntu Distro.
TestLink version: 1.9.2
Note that the directory paths vary vary based on your install environment.
Fixes
Two possible fixes for this issue are:
- Either we can change the PHP file paths to match your install environment.
- Create the folder and give appropriate permissions on those directories.
Changing PHP variables
Check the file paths in the file : config.inc.php
Override these settings in a custom_config.inc.php file. Correct the paths that match on your install environment.
The variables have the default file paths. We can change them to point the the directories as per the install environment as shown below:
/*logs file path*/ $tlCfg->log_path = '/public_html/testlink/logs/'; /* upload_area path */ $g_repositoryPath = '/public_html/testlink/upload_area/';
Creating Directories
templates_c directory
Error:
Checking if /var/www/html/testlink-code/gui/templates_c directory is writable (by user used to run webserver process)
Fix:
Open terminal window
Issue the following command.
$ sudo chmod -R a+rwx /var/www/html/testlink-code/gui/templates_c
The above command is an example. We need to replace the exact path on your install for the templates directory.
Failed! logs directory
The failed directory exists error.
Create the directory and issue the chmod commands. The following commands would fix the errors for the failed logs directory errors during the new install of TestLink.
$ sudo mkdir /var/testlink/
$ sudo mkdir /var/testlink/logs
$ sudo chmod -R a+rwx /var/testlink/
Failed! upload_area directory
Create the directory and issue the chmod commands. The following commands would fix the errors for the failed upload-area directory errors during the new install of TestLink.
$ sudo mkdir /var/testlink/
$ sudo mkdir /var/testlink/upload_area/
$ sudo chmod -R a+rwx /var/testlink/
The above commands would fix the folder errors during the TestLink install.
After fixing the folder errors and permissions, re-launch the TestLink web installer to continue with the installation.
write permissions Failed
—
TestLink Tutorial on this website can be found at:
https://www.testingdocs.com/testlink-tutorials/