Install phpMyAdmin » History » Version 6
  Amber Herold, 05/24/2010 04:45 PM 
  
| 1 | 1 | Amber Herold | h1. Install phpMyAdmin  | 
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | 3 | Amber Herold | You are not required to install phpMyAdmin for Appion or Leginon, however, it is a useful tool for interfacing with the mysql databases.  | 
| 5 | |||
| 6 | 6 | Amber Herold | h2. Install supporting packages  | 
| 7 | 3 | Amber Herold | |
| 8 | 1 | Amber Herold | |_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|  | 
| 9 | 3 | Amber Herold | |PHP|http://php.net/downloads.php |php||  | 
| 10 | |php-mysql| |php-mysql||  | 
||
| 11 | |||
| 12 | 6 | Amber Herold | h2. Install phpMyAdmin  | 
| 13 | 3 | Amber Herold | |
| 14 | 1 | Amber Herold | If you have not already installed phpMyAdmin, do so. The yum installation is:  | 
| 15 | 3 | Amber Herold | <pre>  | 
| 16 | sudo yum -y install phpMyAdmin  | 
||
| 17 | </pre>  | 
||
| 18 | |||
| 19 | 6 | Amber Herold | h2. Configure phpMyAdmin  | 
| 20 | 3 | Amber Herold | |
| 21 | Edit the phpMyAdmin config file @/etc/phpMyAdmin/config.inc.php@ and change the following lines:  | 
||
| 22 | |||
| 23 | <pre>  | 
||
| 24 | $cfg['Servers'][$i]['AllowRoot'] = FALSE;  | 
||
| 25 | </pre>  | 
||
| 26 | |||
| 27 | Edit the phpMyAdmin apache config file @/etc/httpd/conf.d/phpMyAdmin.conf@ and change the following lines:  | 
||
| 28 | |||
| 29 | |||
| 30 | <Directory /usr/share/phpMyAdmin/>  | 
||
| 31 | order deny,allow  | 
||
| 32 | deny from all  | 
||
| 33 | 1 | Amber Herold | allow from 127.0.0.1  | 
| 34 | 3 | Amber Herold | allow from YOUR_IP_ADDRESS  | 
| 35 | </Directory>  | 
||
| 36 | |||
| 37 | *Note:* If you want to access phpMyAdmin from another computer, you can also add it to this config file with an @allow from@ tag  | 
||
| 38 | |||
| 39 | 6 | Amber Herold | h2. Restart Web Server  | 
| 40 | 3 | Amber Herold | |
| 41 | Next restart the web server to take on the new setting  | 
||
| 42 | <pre>  | 
||
| 43 | sudo /sbin/service httpd restart  | 
||
| 44 | </pre>  | 
||
| 45 | |||
| 46 | 6 | Amber Herold | h2. Test the configuration  | 
| 47 | 3 | Amber Herold | |
| 48 | To test the phpMyAdmin configuration, point your browser to http://YOUR_IP_ADDRESS/phpMyAdmin or http://localhost/phpMyAdmin and login with the usr_object user.  | 
||
| 49 | |||
| 50 | 5 | Amber Herold | !http://emg.nysbc.org/attachments/177/phpMyAdmin.png!  | 
| 51 | 4 | Amber Herold | |
| 52 | 3 | Amber Herold | A common problem is that the firewall may be blocking access to the web server and mysql server. On CentOS/Fedora you can configure this with the system config:  | 
| 53 | |||
| 54 | <pre>  | 
||
| 55 | system-config-securitylevel  | 
||
| 56 | </pre>  | 
||
| 57 | |||
| 58 | Firewall configuration is specific to different Unix distributions, so consult a guide on how to do this on non-RedHat machines.  | 
||
| 59 | |||
| 60 | |||
| 61 | 1 | Amber Herold | |
| 62 | |||
| 63 | |||
| 64 | ______  | 
||
| 65 | |||
| 66 | 2 | Amber Herold | [[Install the Web Interface|< Install the Web Interface]] | [[Potential Problems|Potential Problems >]]  | 
| 67 | 1 | Amber Herold | |
| 68 | ______  |