Skip to content

Commit c6d48b0

Browse files
committed
Fixed a bug with default index and error file file permissions.
1 parent a172b75 commit c6d48b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,11 @@ function update($event_name,$data) {
243243
// Copy the error pages
244244
$error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/";
245245
exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
246+
exec("chmod -R +r ".$error_page_path);
246247

247248
// copy the standard index page
248249
exec("cp /usr/local/ispconfig/server/conf/index/standard_index.html_".substr(escapeshellcmd($conf["language"]),0,2)." ".escapeshellcmd($data["new"]["document_root"])."/web/index.html");
250+
exec("chmod +r ".escapeshellcmd($data["new"]["document_root"])."/web/index.html");
249251
}
250252

251253
// Create group and user, if not exist
@@ -280,6 +282,7 @@ function update($event_name,$data) {
280282
// Chown and chmod the directories
281283
exec("chown -R $username:$groupname ".escapeshellcmd($data["new"]["document_root"]));
282284

285+
283286
// Create the vhost config file
284287
$app->load('tpl');
285288

0 commit comments

Comments
 (0)