You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by bu...@apache.org on 2015/02/02 20:28:49 UTC

svn commit: r938694 - in /websites/staging/vcl/trunk/content: ./ docs/installphpMyAdminVCL.html

Author: buildbot
Date: Mon Feb  2 19:28:49 2015
New Revision: 938694

Log:
Staging update by buildbot for vcl

Modified:
    websites/staging/vcl/trunk/content/   (props changed)
    websites/staging/vcl/trunk/content/docs/installphpMyAdminVCL.html

Propchange: websites/staging/vcl/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb  2 19:28:49 2015
@@ -1 +1 @@
-1656546
+1656547

Modified: websites/staging/vcl/trunk/content/docs/installphpMyAdminVCL.html
==============================================================================
--- websites/staging/vcl/trunk/content/docs/installphpMyAdminVCL.html (original)
+++ websites/staging/vcl/trunk/content/docs/installphpMyAdminVCL.html Mon Feb  2 19:28:49 2015
@@ -80,40 +80,18 @@ the VCL web server.
 
 <ol>
 <li>
-<p>Download phpMyAdmin</p>
-<p>a. Check the version of PHP installed on the web server (you may need to perform step 
-1a of <a href="VCL232InstallGuide.html">VCL 2.3.2 Web Code Installation</a> to install httpd and php first):</p>
-<div class="codehilite"><pre>    <span class="p">:::</span><span class="n">BashLexer</span>
-    <span class="n">php</span> <span class="o">-</span><span class="n">v</span>
+<p>Install via yum package manager ( CentOS and RedHat based distributions ). Tested on clean installs of OS versions 6 and 7</p>
+<p>a. yum -y install epel-release phpMyAdmin</p>
+<p>b. Move the phpMyAdmin directory to the web server directory:</p>
+<div class="codehilite"><pre><span class="n">mv</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">share</span><span class="o">/</span><span class="n">phpMyAdmin</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">html</span><span class="o">/</span><span class="n">phpMyAdmin</span>
 </pre></div>
 
 
-<ul>
-<li>Use phpMyAdmin 2.x if the version of PHP is &lt; 5.2:
-<pre class="docnote">
-PHP 4.3.2 (cgi), Copyright (c) 1997-2003 The PHP Group
-</pre></li>
-<li>Use phpMyAdmin 3.x if the version of PHP is 5.x:<br />
-<div><pre class="docnote">
-PHP 5.3.11 (cli) (built: May  8 2012 15:53:27)
-</pre></div></li>
-</ul>
-<p>b. Download the appropriate version of phpMyAdmin from:
-    <pre>
-    <a href="http://www.phpmyadmin.net/home_page/downloads.php">http://www.phpmyadmin.net/home_page/downloads.php</a> for 3.x series
-    <a href="http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/">http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/</a> for 2.x series
-    </pre></p>
-</li>
-<li>
-<p>Extract the phpMyAdmin package:</p>
-<div class="codehilite"><pre><span class="n">tar</span> <span class="n">xf</span> <span class="n">phpMyAdmin</span><span class="o">-</span>2<span class="p">.</span>11<span class="p">.</span>11<span class="p">.</span>3<span class="o">-</span><span class="n">english</span><span class="p">.</span><span class="n">tar</span><span class="p">.</span><span class="n">bz2</span>
-</pre></div>
-
-
-</li>
-<li>
-<p>Move the phpMyAdmin directory to the web server directory:</p>
-<div class="codehilite"><pre><span class="n">mv</span> <span class="n">phpMyAdmin</span><span class="o">-</span>2<span class="p">.</span>11<span class="p">.</span>11<span class="p">.</span>3<span class="o">-</span><span class="n">english</span> <span class="o">/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">html</span><span class="o">/</span><span class="n">phpmyadmin</span>
+<p>c. Edit /etc/httpd/conf.d/phpMyAdmin.conf with your favorite editor.
+    Replace the paths created by the yum install, change each 
+    "<strong>/usr/share/phpMyAdmin</strong>" with <strong>/var/www/html/phpMyAdmin</strong> 
+    or use this sed command</p>
+<div class="codehilite"><pre><span class="n">sed</span> <span class="o">-</span><span class="nb">i</span> &quot;<span class="n">s</span><span class="o">|/</span><span class="n">usr</span><span class="o">/</span><span class="n">share</span><span class="o">/|/</span><span class="n">var</span><span class="o">/</span><span class="n">www</span><span class="o">/</span><span class="n">html</span><span class="o">/|</span><span class="n">g</span>&quot; <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">httpd</span><span class="o">/</span><span class="n">conf</span><span class="p">.</span><span class="n">d</span><span class="o">/</span><span class="n">phpMyAdmin</span><span class="p">.</span><span class="n">conf</span>
 </pre></div>
 
 
@@ -121,8 +99,16 @@ PHP 5.3.11 (cli) (built: May  8 2012 15:
 <li>
 <p>Follow the installation instructions in: /var/www/html/phpmyadmin/Documentation.txt</p>
 <p><pre class="docnote">
-The instructions must be followed in order to secure phpMyAdmin
+The instructions must be followed in order to secure phpMyAdmin</p>
+<p>At a minimum set the MySQL user and password in the config.inc.php file
+Edit the /etc/phpMyAdmin/config.inc.php
+Set the follow variables to match the LockerWrtUser(typically vcluser) and wrtPass from /etc/vcl/vcld.conf</p>
+<p>$cfg['Servers'][$i]['user']          = 'vcluser';<br />
+$cfg['Servers'][$i]['password']      = ''; 
 </pre></p>
+</li>
+<li>
+<p>Restart httpd service and test</p>
 <p>If you receive 403-Forbidden errors after installing phpMyAdmin, the problem is likely caused by SELinux. Run the following command to correct the problem:
 <pre class="docnote">
 chcon -R -t httpd_sys_content_t /var/www/html/phpmyadmin
@@ -136,7 +122,7 @@ provided in the mysql directory in the A
 pma_table_info table in the phpmyadmin database. These entries cause corresponding 
 information to be displayed when you hover over a value in the VCL database.</p>
 <p>Import the SQL file into the phpmyadmin database:</p>
-<div class="codehilite"><pre><span class="n">mysql</span> <span class="n">phpmyadmin</span> <span class="o">&lt;</span> <span class="n">apache</span><span class="o">-</span><span class="n">VCL</span><span class="o">-</span>2<span class="p">.</span>3<span class="p">.</span>2<span class="o">/</span><span class="n">mysql</span><span class="o">/</span><span class="n">phpmyadmin</span><span class="p">.</span><span class="n">sql</span>
+<div class="codehilite"><pre><span class="n">mysql</span> <span class="n">phpmyadmin</span> <span class="o">&lt;</span> <span class="n">apache</span><span class="o">-</span><span class="n">VCL</span><span class="o">-</span>2<span class="p">.</span>4<span class="o">/</span><span class="n">mysql</span><span class="o">/</span><span class="n">phpmyadmin</span><span class="p">.</span><span class="n">sql</span>
 </pre></div>