Skip to content

Commit 3a4834e

Browse files
author
vogelor
committed
Fixed problem with suexec, cgi and openbasedir
1 parent 476a609 commit 3a4834e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ function update($event_name,$data) {
569569
$cgi_tpl = new tpl();
570570
$cgi_tpl->newTemplate("php-cgi-starter.master");
571571

572-
$cgi_tpl->setVar('open_basedir',$data["new"]["document_root"]);
572+
$cgi_tpl->setVar('open_basedir', "/var/www/" . $data["new"]["domain"]);
573573
$cgi_tpl->setVar('php_cgi_bin',$cgi_config["cgi_bin"]);
574574

575575
$cgi_starter_script = escapeshellcmd($cgi_starter_path.$cgi_config["cgi_starter_script"]);

0 commit comments

Comments
 (0)