60 if ($this->bearsamppConfRaw !==
false) {
68 if (!is_dir($this->currentPath)) {
71 if (!is_dir($this->symlinkPath)) {
75 if (!is_file($this->bearsamppConf)) {
78 if (!is_file($this->conf)) {
99 Util::logDebug(($sub > 0 ? str_repeat(
' ', 2 * $sub) :
'') .
'Update ' . $this->name .
' ' .
$version .
' config');
102 if (is_file($alias)) {
104 '/^Alias\s\/phpmyadmin\s.*/' =>
'Alias /phpmyadmin "' . $this->
getSymlinkPath() .
'/"',
105 '/^<Directory\s.*/' =>
'<Directory "' . $this->
getSymlinkPath() .
'/">',
113 '/^\$mysqlPort\s=\s(\d+)/' =>
'$mysqlPort = ' .
$bearsamppBins->getMysql()->getPort() .
';',
114 '/^\$mysqlRootUser\s=\s/' =>
'$mysqlRootUser = \'' .
$bearsamppBins->getMysql()->getRootUser() .
'\';
',
115 '/^\$mysqlRootPwd\s=\s/
' => '$mysqlRootPwd = \
'' .
$bearsamppBins->getMysql()->getRootPwd() .
'\';
'
118 if ($bearsamppBins->getMariadb()->isEnable()) {
119 Util::replaceInFile($this->getConf(), array(
120 '/^\$mariadbPort\s=\s(\d+)/
' => '$mariadbPort =
' . $bearsamppBins->getMariadb()->getPort() . ';
',
121 '/^\$mariadbRootUser\s=\s/
' => '$mariadbRootUser = \
'' .
$bearsamppBins->getMariadb()->getRootUser() .
'\';
',
122 '/^\$mariadbRootPwd\s=\s/
' => '$mariadbRootPwd = \
'' .
$bearsamppBins->getMariadb()->getRootPwd() .
'\';
'