![]() ![]() ![]() | |||||
![]() ![]() ![]() | |||||
|
![]() Secure phpMySQL with iTools 7 tutorial phpMyAdmin is an application written in the PHP language that provides a web-based interface for the administration of mySQL databases. A version of phpMyAdmin has been customized by Tenon to easily install and function in your iTools server. This version installs ready for you to enter a few lines of configuration information and then connect to your mySQL server on the same server. When you access phpMyAdmin from iTools Administration Server the first time, you will be presented with these warning messages: The $cfg['PmaAbsoluteUri'] directive MUST be set in your configuration file! Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole. Follow the steps below to configure a previously installed phpMyAdmin program for use with your database server on the MySQL database.
/** * Server(s) configuration */ $i = 0; // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. // You can disable a server config entry by setting host to ''. $i++; $cfg['Servers'][$i]['host'] = 'your-hostname'; // MySQL hostname $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection // (requires PHP >= 4.3.0) $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings // (this user must have read-only $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user" // and "mysql/db" tables) $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)? | Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |
|