Project

General

Profile

Install phpMyAdmin » History » Version 4

Amber Herold, 05/24/2010 04:43 PM

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