OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

3.2. Configuration


The configuration files for phpMyAdmin are located in /etc/phpmyadmin. The main configuration file is /etc/phpmyadmin/config.inc.php. This file contains configuration options that apply globally to phpMyAdmin.


To use phpMyAdmin to administer a MySQL database hosted on another server, adjust the following in /etc/ phpmyadmin/config.inc.php:


$cfg['Servers'][$i]['host'] = 'db_server';


image

Replace db_server with the actual remote database server name or IP address. Also, be sure that the phpMyAdmin host has permissions to access the remote database.


Once configured, log out of phpMyAdmin and back in, and you should be accessing the new server.


The config.header.inc.php and config.footer.inc.php files are used to add a HTML header and footer to phpMyAdmin.


Another important configuration file is /etc/phpmyadmin/apache.conf, this file is symlinked to /etc/ apache2/conf-available/phpmyadmin.conf, and, once enabled, is used to configure Apache2 to serve the


phpMyAdmin site. The file contains directives for loading PHP, directory permissions, etc. From a terminal type:


sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin.conf

sudo systemctl reload apache2.service


For more information on configuring Apache2 see Section 1, “HTTPD - Apache2 Web Server” [p. 214].


Top OS Cloud Computing at OnWorks: