From 956119e3c1d1bff3841165abe9dc8fddbda2a95f Mon Sep 17 00:00:00 2001 From: Peio Rigaux Date: Tue, 21 Dec 2021 11:17:51 +0000 Subject: [PATCH] Added semanage line in Readme to know how to make access to Flexiapi logs persistent across relabeling. --- flexiapi/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flexiapi/README.md b/flexiapi/README.md index 24139ae..375c7de 100644 --- a/flexiapi/README.md +++ b/flexiapi/README.md @@ -104,6 +104,14 @@ Allow the webserver user to write in the `storage/` directory: chcon -R -t httpd_sys_rw_content_t storage/ +Don't forget to make this change persistent if the directory may be relabeled : + + semanage fcontext -a -t httpd_sys_rw_content_t storage/ + +You can use the restorecon command to verify that this is working : + + restorecon storage/ + If your database is located on a remote machine, you should also allow your webserver user to connect to remote hosts: semanage port -a -t http_port_t -p tcp 3306 // Open remote connections on the MySQL port for example @@ -180,4 +188,4 @@ The functions already contains example codes to show you how the XML can be enha You can also seed the tables with test accounts for the liblinphone test suite with the following command (check LiblinphoneTesterAccoutSeeder for the JSON syntax): - php artisan accounts:seed /path/to/accounts.json \ No newline at end of file + php artisan accounts:seed /path/to/accounts.json