.. index:: config.inc.php
.. _config:
Configuration
=============
Almost all configurable data is placed in :file:`config.inc.php`. If this file
does not exist, please refer to the :ref:`setup` section to create one. This
file only needs to contain the parameters you want to change from their
corresponding default value in :file:`libraries/config.default.php`.
The parameters which relate to design (like colors) are placed in
:file:`themes/themename/layout.inc.php`. You might also want to create
:file:`config.footer.inc.php` and :file:`config.header.inc.php` files to add
your site specific code to be included on start and end of each page.
.. note::
Some distributions (eg. Debian or Ubuntu) store :file:`config.inc.php` in
``/etc/phpmyadmin`` instead of within phpMyAdmin sources.
.. warning::
:term:`Mac` users should note that if you are on a version before
:term:`Mac OS X`, PHP does not seem to
like :term:`Mac` end of lines character (``\r``). So
ensure you choose the option that allows to use the \*nix end of line
character (``\n``) in your text editor before saving a script you have
modified.
Basic settings
--------------
.. config:option:: $cfg['PmaAbsoluteUri']
:type: string
:default: ``''``
Sets here the complete :term:`URL` (with full path) to your phpMyAdmin
installation's directory. E.g.
``http://www.example.net/path_to_your_phpMyAdmin_directory/``. Note also
that the :term:`URL` on some web servers are case–sensitive. Don’t forget
the trailing slash at the end.
Starting with version 2.3.0, it is advisable to try leaving this blank. In
most cases phpMyAdmin automatically detects the proper setting. Users of
port forwarding will need to set :config:option:`$cfg['PmaAbsoluteUri']`
(`more info <https://sourceforge.net/p/phpmyadmin/support-requests/795/>`_).
A good test is to browse a table, edit a row and save it. There should be
an error message if phpMyAdmin is having trouble auto–detecting the correct
value. If you get an error that this must be set or if the autodetect code
fails to detect your path, please post a bug report on our bug tracker so
we can improve the code.
.. seealso:: :ref:`faq1_40`
.. config:option:: $cfg['PmaNoRelation_DisableWarning']
:type: boolean
:default: false
Starting with version 2.3.0 phpMyAdmin offers a lot of features to
work with master / foreign – tables (see :config:option:`$cfg['Servers'][$i]['pmadb']`).
If you tried to set this
up and it does not work for you, have a look on the :guilabel:`Structure` page
of one database where you would like to use it. You will find a link
that will analyze why those features have been disabled.
If you do not want to use those features set this variable to ``true`` to
stop this message from appearing.
.. config:option:: $cfg['SuhosinDisableWarning']
:type: boolean
:default: false
A warning is displayed on the main page if Suhosin is detected.
You can set this parameter to ``true`` to stop this message from appearing.
.. config:option:: $cfg['McryptDisableWarning']
:type: boolean
:default: false
Disable the default warning that is displayed if mcrypt is missing for
cookie authentication.
You can set this parameter to ``true`` to stop this message from appearing.
.. config:option:: $cfg['ServerLibraryDifference_DisableWarning']
:type: boolean
:default: false
A warning is displayed on the main page if there is a difference
between the MySQL library and server version.
You can set this parameter to ``true`` to stop this message from appearing.
.. config:option:: $cfg['ReservedWordDisableWarning']
:type: boolean
:default: false
This warning is displayed on the Structure page of a table if one or more
column names match with words which are MySQL reserved.
If you want to turn off this warning, you can set it to ``true`` and
warning will not longer be displayed
.. config:option:: $cfg['TranslationWarningThreshold']
:type: integer
:default: 80
Show warning about incomplete translations on certain threshold.
Server connection settings
--------------------------
.. config:option:: $cfg['Servers']
:type: array
:default: one server array with settings listed bellow
Since version 1.4.2, phpMyAdmin supports the administration of multiple
MySQL servers. Therefore, a :config:option:`$cfg['Servers']`-array has been
added which contains the login information for the different servers. The
first :config:option:`$cfg['Servers'][$i]['host']` contains the hostname of
the first server, the second :config:option:`$cfg['Servers'][$i]['host']`
the hostname of the second server, etc. In
:file:`libraries/config.default.php`, there is only one section for server
definition, however you can put as many as you need in
:file:`config.inc.php`, copy that block or needed parts (you don't have to
define all settings, just those you need to change).
.. note::
The :config:option:`$cfg['Servers']` array starts with
$cfg['Servers'][1]. Do not use $cfg['Servers'][0]. If you want more
than one server, just copy following section (including $i
incrementation) serveral times. There is no need to define full server
array, just define values you need to change.
.. config:option:: $cfg['Servers'][$i]['host']
:type: string
:default: ``'localhost'``
The hostname or :term:`IP` address of your $i-th MySQL-server. E.g.
``localhost``.
Possible values are:
* hostname, e.g., ``'localhost'`` or ``'mydb.example.org'``
* IP address, e.g., ``'127.0.0.1'`` or ``'192.168.10.1'``
* dot - ``'.'``, i.e., use named pipes on windows systems
* empty - ``''``, disables this server
.. config:option:: $cfg['Servers'][$i]['port']
:type: string
:default: ``''``
The port-number of your $i-th MySQL-server. Default is 3306 (leave
blank).
.. note::
If you use ``localhost`` as the hostname, MySQL ignores this port number
and connects with the socket, so if you want to connect to a port
different from the default port, use ``127.0.0.1`` or the real hostname
in :config:option:`$cfg['Servers'][$i]['host']`.
.. config:option:: $cfg['Servers'][$i]['socket']
:type: string
:default: ``''``
The path to the socket to use. Leave blank for default. To determine
the correct socket, check your MySQL configuration or, using the
:command:`mysql` command–line client, issue the ``status`` command. Among the
resulting information displayed will be the socket used.
.. config:option:: $cfg['Servers'][$i]['ssl']
:type: boolean
:default: false
Whether to enable SSL for connection to MySQL server.
.. config:option:: $cfg['Servers'][$i]['connect_type']
:type: string
:default: ``'tcp'``
What type connection to use with the MySQL server. Your options are
``'socket'`` and ``'tcp'``. It defaults to tcp as that is nearly guaranteed
to be available on all MySQL servers, while sockets are not supported on
some platforms. To use the socket mode, your MySQL server must be on the
same machine as the Web server.
.. config:option:: $cfg['Servers'][$i]['extension']
:type: string
:default: ``'mysqli'``
What php MySQL extension to use for the connection. Valid options are:
``mysql``
The classic MySQL extension.
``mysqli``
The improved MySQL extension. This extension became available with PHP
5.0.0 and is the recommended way to connect to a server running MySQL
4.1.x or newer.
.. config:option:: $cfg['Servers'][$i]['compress']
:type: boolean
:default: false
Whether to use a compressed protocol for the MySQL server connection
or no
没有合适的资源?快使用搜索试试~ 我知道了~
微交易时间盘金属时间盘 +财经资讯+带微信登录
共2000个文件
js:1049个
css:704个
html:131个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 71 浏览量
2024-11-14
17:27:21
上传
评论
收藏 371.08MB ZIP 举报
温馨提示
服务器系统:Linux+Centos7.0以上+宝塔 服务器系统备用:Win2008+phpstudy_pro 亲测环境:Apache2.4+PHP5.6+Mysql5.5 数据库配置文件:ApplicationCommonConfconfig.php 启动行情:【浏览器打开不要关闭】 访问域名/wap/login/coller 后台地址:/User/User/login.html 代理地址:/agent/User/login.html
资源推荐
资源详情
资源评论
收起资源包目录
微交易时间盘金属时间盘 +财经资讯+带微信登录 (2000个子文件)
php_xxtea.c 6KB
php_xxtea.c 6KB
xxtea.c 2KB
xxtea.c 2KB
amazeui.css 290KB
style.css 230KB
amazeui.min.css 222KB
amazeui.widgets.css 219KB
style.css 200KB
amazeui.basic.css 197KB
weui.css 197KB
amazeui.widgets.min.css 166KB
amazeui.basic.min.css 149KB
style.css 149KB
themes.css 127KB
skin_0.css 127KB
skin_0.css 127KB
skin_1.css 126KB
skin_1.css 126KB
bootstrap_min.css 126KB
bootstrap.css 118KB
bootstrap.min.css 110KB
flat-ui.css 103KB
bootstrap-flatly.min.css 101KB
bootstrap.min.css 98KB
todc_bootstrap.css 93KB
AdminLTE.css 87KB
index.css 83KB
index.css 83KB
news2.css 73KB
news5.css 69KB
news.css 68KB
news.css 68KB
news.css 68KB
news5.css 66KB
wz.css 65KB
framework7.css 65KB
style_2_common.css 60KB
style_2_common.css 60KB
index.css 57KB
index.css 57KB
framework7.min.css 55KB
bootstrap-me.css 52KB
option_index.css 49KB
style.css 49KB
style.css 48KB
style.css 48KB
style.css 47KB
common.css 47KB
common.css 46KB
common20200826.css 46KB
ueditor.css 45KB
option_index.css 44KB
style.css 42KB
style.css 42KB
wei_webapp_new_v1.0.4.css 40KB
font-awesome-ie7.css 40KB
font-awesome-ie7.css 40KB
style.css 39KB
style.css 39KB
ionicons.css 39KB
font-awesome-ie7.min.css 37KB
font-awesome-ie7.min.css 37KB
ucenter.css 35KB
ueditor.min.css 34KB
datepicker.css 34KB
online_booking.css 34KB
success.css 33KB
ucenter.css 33KB
hotels.css 32KB
style.css 32KB
jquery-ui-1.9.2.custom.css 32KB
jquery-ui-1.9.2.custom.css 32KB
jquery-ui-1.9.2.custom.css 32KB
jquery-ui-1.9.2.custom.css 32KB
h5.css 31KB
jquery.mmenu.all.css 30KB
solarized.css 28KB
invite.css 28KB
invite.css 28KB
jquery.ui.css 27KB
jquery.ui.css 27KB
jquery.ui.css 27KB
jquery.ui.css 27KB
font-awesome.css 27KB
font-awesome.css 27KB
font-awesome.css 26KB
font-awesome.css 26KB
font-awesome.css 26KB
ambiance.css 26KB
wpa.css 24KB
wpa.css 24KB
common.css 23KB
index.css 22KB
index.css 22KB
font-awesome.min.css 22KB
font-awesome.min.css 22KB
video-js.css 22KB
font-awesome.min.css 21KB
font-awesome.min.css 21KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
破碎的天堂鸟
- 粉丝: 9336
- 资源: 2649
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功