Hello,
I have CentOS 32bit with Webmin/Virtualmin on it. I want to install phpmyadmin to easy manage MySQL DB and SquirrelMail which i find is better and more user friendly mail software than usermin that is build in webmin already.
I have looks over the net and i can`t find any stable tutorial how to install phpmyadmin or SquirrelMail on centos.
I have add epel repository and try to install it from yum install phpmyadmin and yum install SquirrelMail. At first they looks like they work fine but when i create the first hosting account ( virtual server in Virtualmin ) i start to get error message on both SquirrelMail and phpmyadmin. I have try to change the PHP execution mode in virtualmin from FCGI to Apache and its working but the i get problems with the permissions and owner:group files and folder on the scripts ( joomla, wordpress … ) that im hosting. I have seen VPS that have FCGI PHP execution mode enabled and installed phpmyadmin & SquirrelMail that are working fine on Webmin/Virtualmin Centos server i there must be solution or there must be something i need to configure differently to make them work.
I even try to manual install phpmyadmin & SquirrelMail and i get the same error/problems. I can get them to work ONLY if i put the phpmyadmin & SquirrelMail folders in home/user/public_html folder like scripts but i only can them use them only from that account/domain domain1.com/phpmyadmin ( i`m setting Alias in apache ) if i try from second domain/hosting account for example domain2.com/phpmyadmin i get the same problem error.
Error that i get with phpmyadmin:
' . "\n"; /** * Displays the mysql server related links */ if ($server > 0) { require_once './libraries/check_user_privileges.lib.php'; // why this? a non-priv user should be able to change his // password if the configuration permits //$cfg['ShowChgPassword'] = $is_superuser = PMA_isSuperuser(); $is_superuser = PMA_isSuperuser(); if ($cfg['Server']['auth_type'] == 'config') { $cfg['ShowChgPassword'] = false; } } ?> 0) { // robbat2: Use the verbose name of the server instead of the hostname // if a value is set $server_info = ''; if (!empty($cfg['Server']['verbose'])) { $server_info .= htmlspecialchars($cfg['Server']['verbose']); if ($GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ' ('; } } if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) { $server_info .= PMA_DBI_get_host_info(); } if (!empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } // loic1: skip this because it's not a so good idea to display sockets // used to everybody // if (!empty($cfg['Server']['socket']) && PMA_PHP_INT_VERSION >= 30010) { // $server_info .= ':' . $cfg['Server']['socket']; // } $mysql_cur_user_and_host = PMA_DBI_fetch_value('SELECT USER();'); // should we add the port info here? $short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose']) ? $GLOBALS['cfg']['Server']['verbose'] : $GLOBALS['cfg']['Server']['host']); echo '...............................ETC
Error that i get on squirrelmail :
( even i have configure SquirrelMail from /conf.pl )
ERROR: Config file ’ . '“config/config.php” not found. You need to ’ . 'configure SquirrelMail before you can use it.
'; exit; } // If we are, go ahead to the login page. header(‘Location: src/login.php’); ?>
I think is some apache or PHP problem becouse i get error on both phpmyadmin and SquirrelMail when i create hosting account.
Any idea what can be the problem ?