#!/usr/bin/perl
use strict;
use Carp;
use Socket;
use POSIX ();
use File::Basename;
use File::Copy;
use MIME::Base64;
use IPC::Open2;
BEGIN {
push(@INC, dirname($0));
}
use RVSInstaller::Config qw(%InstallConf $NEWLINE $BROWSER $WEBROOT %MONS $INS_PHP_FILE_TYPE $INS_CGI_FILE_TYPE);
fixPHPExtensionPath();
sub fixPHPExtensionPath{
if ( $InstallConf{'cpMode'} eq 'cpanel' ) {
my ($extensionPath) =`/usr/local/cpanel/3rdparty/bin/php-config --extension-dir`;
chomp($extensionPath);
if ($extensionPath =~/^\/usr\/local\/cpanel\/3rdparty\//i && !-d $extensionPath) {
system('mkdir', '-p', $extensionPath);
}
}
if ( $InstallConf{'cpMode'} eq 'da') {
my ($extensionPath) =`/usr/local/bin/php-config --extension-dir`;
chomp($extensionPath);
if ($extensionPath =~/^\/usr\/local\/lib\/php\//i && !-d $extensionPath) {
system('mkdir', '-p', $extensionPath);
}
}
}
1;
Copyright 2K16 - 2K18 Indonesian Hacker Rulez