Hello ppl,
I got a problem when i select php5 from PHP version selector.
The PHP version selector are adding in .htaccess "# phpvs v5" in all lines. And this cause a 500 Internal Error.
I'm using php4 CLI php5 CGI.
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$"> # phpvs v5
AddHandler x-httpd-php5 .php # phpvs v5
</FilesMatch> # phpvs v5 <----- Comment problem.
I try to edit in:
/usr/local/directadmin/plugins/phpvs/user/index.html
Where PHPVS add the comment for that not add the comment in the last line.
The code's block that add the comment is:
$line2 = 0;
$htNewData = '';
if($button) {
$ver = $$varname;
if(!file_exists($htaccess[$xdomain])) {
$noHT = true;
} else {
$arrHTData = @file($htaccess[$xdomain]);
if(sizeof($arrHTData)>0) {
foreach($arrHTData as $linea) {
if($line2 < 2) {
echo "Linea: ".$line2;
$linea = str_replace("\n", '', $linea);
$linea = str_replace("\r", '', $linea);
if(!strstr($linea, '# phpvs v')) {
$htNewData .= $linea."\n";
}
}
$line2++;
}
} else {
$noHT = true;
}
}
Is a php version bug ?.-
Thx!
I got a problem when i select php5 from PHP version selector.
The PHP version selector are adding in .htaccess "# phpvs v5" in all lines. And this cause a 500 Internal Error.
I'm using php4 CLI php5 CGI.
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$"> # phpvs v5
AddHandler x-httpd-php5 .php # phpvs v5
</FilesMatch> # phpvs v5 <----- Comment problem.
I try to edit in:
/usr/local/directadmin/plugins/phpvs/user/index.html
Where PHPVS add the comment for that not add the comment in the last line.
The code's block that add the comment is:
$line2 = 0;
$htNewData = '';
if($button) {
$ver = $$varname;
if(!file_exists($htaccess[$xdomain])) {
$noHT = true;
} else {
$arrHTData = @file($htaccess[$xdomain]);
if(sizeof($arrHTData)>0) {
foreach($arrHTData as $linea) {
if($line2 < 2) {
echo "Linea: ".$line2;
$linea = str_replace("\n", '', $linea);
$linea = str_replace("\r", '', $linea);
if(!strstr($linea, '# phpvs v')) {
$htNewData .= $linea."\n";
}
}
$line2++;
}
} else {
$noHT = true;
}
}
Is a php version bug ?.-
Thx!