Difference between revisions of "PHPMyAdmin"
Unnilennium (talk | contribs) |
Unnilennium (talk | contribs) |
||
Line 86: | Line 86: | ||
=== Additional information === | === Additional information === | ||
+ | * '''NEVER''' MODIFY MYSQL ROOT user PASSWORD | ||
+ | |||
* Adminaccess with admin username/password via: https://yourdomain/phpmyadmin | * Adminaccess with admin username/password via: https://yourdomain/phpmyadmin | ||
− | * multiaccess with the '''Mysql user account of a database''' and its password via: https://your-sme-ip/phpmyadmin-multi | + | |
+ | * multiaccess with the '''Mysql user account of a database''' and its password via: https://your-sme-ip/phpmyadmin-multi (or https://yourdomain/phpmyadmin if admin access disabled) | ||
* The password is changed using the privileges section of phpmyadmin. (Locate the admin user and assign a new password there). | * The password is changed using the privileges section of phpmyadmin. (Locate the admin user and assign a new password there). | ||
+ | |||
+ | * Did we mention : '''NEVER''' MODIFY MYSQL ROOT user PASSWORD | ||
More information about PhpMyAdmin can be found on the [http://www.phpmyadmin.net PHPMyAdmin] site. | More information about PhpMyAdmin can be found on the [http://www.phpmyadmin.net PHPMyAdmin] site. | ||
+ | |||
=== Uninstall === | === Uninstall === | ||
yum remove smeserver-phpmyadmin phpmyadmin | yum remove smeserver-phpmyadmin phpmyadmin |
Revision as of 18:53, 22 June 2013
PHPMyAdmin for SME Server
Maintainer
JP Pialasse (aka Unnilennium)
Description
PHPMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web.
Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges,export data into various formats.
This contrib provides PHPMyAdmin for SME Server.
Installation
This contrib can be found in the smecontribs repository. To install this contrib you will have to get shell access as root user, and issue the following command:
yum --enablerepo=smecontribs install smeserver-phpmyadmin
and either
signal-event post-upgrade; signal-event reboot
or
expand-template /etc/phpMyAdmin/config.inc.php expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
Configuration
By default, access to phpmyadmin is restricted to the local network, and to any trusted networks. To make phpmyadmin accessible to external networks (the internet), the configuration parameter for access has to be changed. Changing this parameter requires you to use the SME Server shell.
To view the current access setting:
config show phpmyadmin
This would output something like this:
phpmyadmin=configuration access=private adminaccess=enabled multiaccess=disabled
To change the current setting:
private or public access
config setprop phpmyadmin access (private|public) signal-event ibay-modify
admin access only (default)
set to enabled (enabled|disabled) to use with the url https://your-sme-ip/phpmyadmin with the SME admin account and its password.
config setprop phpmyadmin adminaccess enabled
and do these commands
expand-template /etc/phpMyAdmin/config.inc.php expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
multiuser access
set to enabled (enabled|disabled) to use with the url https://your-sme-ip/phpmyadmin-multi with the Mysql user account of a database and its password. Only the database concerned is seen in the phpmyadmin management web page.
config setprop phpmyadmin multiaccess enabled
and do these commands
expand-template /etc/phpMyAdmin/config.inc.php expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
prevent the admin access
in certain cases you may want to forbid the adminaccess and allow only the multiaccess, so you have to set the adminaccess to disabled and the multiaccess to enabled
config setprop phpmyadmin adminaccess disabled config setprop phpmyadmin multiaccess enabled
and do these commands
expand-template /etc/phpMyAdmin/config.inc.php expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
therefore the access for multi user will be available through the url https://your-sme-ip/phpmyadmin (instead of phpmyadmin-multi)
Additional information
- NEVER MODIFY MYSQL ROOT user PASSWORD
- Adminaccess with admin username/password via: https://yourdomain/phpmyadmin
- multiaccess with the Mysql user account of a database and its password via: https://your-sme-ip/phpmyadmin-multi (or https://yourdomain/phpmyadmin if admin access disabled)
- The password is changed using the privileges section of phpmyadmin. (Locate the admin user and assign a new password there).
- Did we mention : NEVER MODIFY MYSQL ROOT user PASSWORD
More information about PhpMyAdmin can be found on the PHPMyAdmin site.
Uninstall
yum remove smeserver-phpmyadmin phpmyadmin signal-event post-upgrade; signal-event reboot
Bugs
Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-phpmyadmin component or use this link .