59 if ($this->bearsamppConfRaw !==
false) {
67 if (!is_dir($this->currentPath)) {
70 if (!is_dir($this->symlinkPath)) {
74 if (!is_file($this->bearsamppConf)) {
77 if (!is_file($this->conf)) {
98 Util::logDebug(($sub > 0 ? str_repeat(
' ', 2 * $sub) :
'') .
'Update ' . $this->name .
' ' .
$version .
' config');
101 if (is_file($alias)) {
103 '/^Alias\s\/adminer\s.*/' =>
'Alias /adminer "' . $this->
getSymlinkPath() .
'/"',
104 '/^<Directory\s.*/' =>
'<Directory "' . $this->
getSymlinkPath() .
'/">',
112 '/^\$mysqlPort\s=\s(\d+)/' =>
'$mysqlPort = ' .
$bearsamppBins->getMysql()->getPort() .
';',
113 '/^\$mysqlRootUser\s=\s/' =>
'$mysqlRootUser = \'' .
$bearsamppBins->getMysql()->getRootUser() .
'\';
',
114 '/^\$mysqlRootPwd\s=\s/
' => '$mysqlRootPwd = \
'' .
$bearsamppBins->getMysql()->getRootPwd() .
'\';
'
117 if ($bearsamppBins->getMariadb()->isEnable()) {
118 Util::replaceInFile($this->getConf(), array(
119 '/^\$mariadbPort\s=\s(\d+)/
' => '$mariadbPort =
' . $bearsamppBins->getMariadb()->getPort() . ';
',
120 '/^\$mariadbRootUser\s=\s/
' => '$mariadbRootUser = \
'' .
$bearsamppBins->getMariadb()->getRootUser() .
'\';
',
121 '/^\$mariadbRootPwd\s=\s/
' => '$mariadbRootPwd = \
'' .
$bearsamppBins->getMariadb()->getRootPwd() .
'\';
'
124 if ($bearsamppBins->getPostgresql()->isEnable()) {
125 Util::replaceInFile($this->getConf(), array(
126 '/^\$postgresqlPort\s=\s(\d+)/
' => '$postgresqlPort =
' . $bearsamppBins->getPostgresql()->getPort() . ';
',
127 '/^\$postgresqlRootUser\s=\s/
' => '$postgresqlRootUser = \
'' .
$bearsamppBins->getPostgresql()->getRootUser() .
'\';
',
128 '/^\$postgresqlRootPwd\s=\s/
' => '$postgresqlRootPwd = \
'' .
$bearsamppBins->getPostgresql()->getRootPwd() .
'\';
'