FeaturesWP CloudPricingEE CLIContactMy Account
Features
Team Access & User Permissions
Install
Resources
Community
CLEAR
Tutorials
PHP
Installing PhpMyAdmin Quickly
Topics
On this page
-
- Getting Started
- Git and File-System Layout (non-default setup)
- Version Constraints
- Managing Themes and Plugins (for entire WordPress site)
- Updating Themes and Plugins (for entire WordPress site)
- Adding Composer Support to Your Own Themes and Plugins (for developers)
- Using Composer to Manage Own Theme/Plugin Dependencies (for developers)
-
- Assigning Multiple IP Addresses to Single LAN Card
- Disable IPv6 on Ubuntu 12.04
- dsh – distributed shell
- fdupes – find & replace duplicate files with hardlinks
- GPG Keys Cheatsheet
- Increase "Open Files Limit"
- kill all php, nginx, mysql or any kind of processes
- Passwordless Authentication for SSH
- Screen
- search replace in multiple files useing grep xargs sed
- Setup sftp
- sysctl.conf
- Timezone Sync
- Using Google Public DNS on Ubuntu Server
- Using openssl to match private key, cerificate and CSR
- Configure Postfix to Use Gmail SMTP on Ubuntu
- Logrotate Example for Custom Logs
- PHP 5.5, MySQL, Postfix, Nginx and WordPress on Ubuntu
- Serverdensity
- Upgrade Ubuntu 10.04 to 12.04
- Using find and sed to replace strings in multiple files
- Webmin
-
- .my.cnf – mysql user & password
- Analyse slow-query-log using Anemometer
- Improving MySQL Query Cache
- MySQL Query Profiling
- Reset MySQL root password
- tuning-primer.sh – an alternative for mysqltuner
- Using MariaDB 10
- Install/Upgrade to MySQL 5.6 on Ubuntu 12.04 LTS
- Change WordPress Domain Name
- Character Sets and Collations
- Enable innodb_file_per_table
- Enable Remote Access (Grant)
- Installing Percona Toolkit
- Using tmpfs for temporary folder creation
- YARPP and InnoDB
- Convert MyISAM to InnoDB
- Using tmpfs for mysqldump & mysqlimport
- Convert from INNODB to MYISAM
- Analyse slow-query-log using mysqldumpslow & pt-query-digest
- mysqlcheck with cron to optimize automatically
- Using MySQLTuner to Optimize MySQL configuration
-
-
- Directly connect to PHP-FPM
- Generating core-dump for php5-fpm
- GeoIP
- Having php5 and php7 on same system.
- Install Xdebug and configure it with webgrind
- Installation of PHP Code Review Tools
- memcache
- PHP's Zend Opcache Config & Web Viewer
- Setting Sqlite support with PHP
- Using HHVM with PHP-FPM Fallback
- Using Redis for PHP Sessions on Ubuntu Server
- Installing PhpMyAdmin Quickly
- Moving PHP's session storage to tmpfs
- Install Xdebug and configure it with Netbeans
- Nginx – Enable PHP-FPM Status Page
- PHP-FPM: Socket vs TCP/IP and sysctl tweaking
- APC Cache Optimization & Monitoring Using Web Interface
- Checking if PHP/WordPress can send mails
- Debugging PHP Scripts Using slow_log and more
- Increase file upload size limit in PHP-Nginx
- Increase PHP script execution time with Nginx
-
- Performance Optimization
- Remove Query string of css/js files
- Setup ElasticSearch with ElasticPress
- Using Redis for WordPress Object-Cache
- WooCommerce Window Shopping Caching Technique
- Moving WordPress To New Server (Faster)
- Better wp-cron using linux's crontab
- 404 error- Page not Found!!!
- Debugging WordPress with Nginx
Installing PhpMyAdmin in a subdirectory
Installing PhpMyAdmin on a separate subdomain
Installing PhpMyAdmin Quickly
EasyEngine users can install phpMyAdmin quickly with command
ee stack install --phpmyadmin
Since phpMyAdmin does not ship with all the dependancies anymore, you will have install the dependancies manually with the following commands.
Note that you will have to install Composer for these commands to work.
cd /var/www/22222/htdocs/db/pma/
composer install --no-dev
Non EasyEngine Users will have to follow below steps.
Installing PhpMyAdmin in a subdirectory
Assuming example.com site has PHP support enabled.
Run following commands:
cd /var/www/example.com/htdocs/
git clone https://github.com/phpmyadmin/phpmyadmin.git phpmyadmin
cd phpmyadmin
composer update --no-dev
It will install latest PhpMyAdmin which can be accessed from http://example.com/phpmyadmin
Installing PhpMyAdmin on a separate subdomain
You need to first create a site like mysql.example.com site with PHP support. You can use this tutorial to create a virtual-host with PHP support. Just skip WordPress downloading and database setup part.
Then, run following commands:
Run following commands:
cd /var/www/example.com/htdocs/
git clone https://github.com/phpmyadmin/phpmyadmin.git .
composer update --no-dev
This will install latest phpMyAdmin which can be accessed from http://mysql.example.com/
Using Redis for PHP Sessions on Ubuntu Server
PREVIOUS
Moving PHP's session storage to tmpfs
NEXT
Comments
-
dillon
HI, I used your easy engine to ‘install all’ but it seems as if phpmyadmin is returning 403 access forbidden. Any ideas why it would do so?
-
Mitesh Shah
Hii Dillon,
To access phpmyadmin you have to add your ip address in following file
vim /etc/nginx/common/allowed_ip.conf allow 1.1.1.1;Replace 1.1.1.1 with your ip address and then reload nginx by using following command
nginx -t && service nginx reloadYou can access phpmyadmin by using example.com/pma
-
dillon
Thanks for the quick response. I now get this after restarting nginx:
[alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)-
dillon
also:
[emerg] 16721#0: open() "/var/run/nginx.pid" failed (13: Permission denied)nginx: configuration file /etc/nginx/nginx.conf test failed
-
-
Mitesh Shah
Its seems like you try to reload nginx with non-privilege user try to run reload nginx with following command
sudo nginx -t && sudo service nginx reload -
dillon
Ok that worked for reloading nginx, but now It still shows 403 access forbidden
-
dillon
Disregard that, I had left
deny all;after my ip.
Thanks so much.
-
-
GlenN
Just confirming that the
deny all;does indeed to be removed for this to work and still be secure?Thanks.
-
deny allwill make your phpmyadmin accessible to everyone.Its better to add your IP with allow line and keep
deny allas it is. This is assuming you have a static IP.If you do not have a static IP, then you can remove
deny all. You can HTTP auth then to protect phpmyadmin area – External link to wiki.nginx.orghttp://wiki.nginx.org/HttpAuthBasicModule
-
Features
- Server Setup & Management
- Site Creation & Management
- Create WP Cloud Sites
- Speed & Caching
- Firewall Protection
- Backups & Recovery
- Logs & Monitoring
- Deployments & Developer Tools
- Team Access & User Permissions
Useful Links
Product
Other Products
Subscribe for curated product updates, tips, and announcements.
"*" indicates required fields
Comments
This field is for validation purposes and should be left unchanged.
Email*
SIGN ME UP
Δ
© rtCamp, since 2009. All rights reserved.