-
LINUX > installer phpmyadmin sur un serveur LEMP (nginx)
1 INSTALLATION
sudo apt-get install phpmyadmin
- Lorsque phpmyadmin demandera de configurer avec dbconfig > Cliquer sur oui.
- Lorsque phpmyadmin demandera de choisir un serveur (apache ou lighttpd) > touche TAB et sélectionner aucun des deux.
CONFIGURATION
Créer un lien symbolique entre phpMyAdmin et le répertoire des sites :
sudo ln -s /usr/share/phpmyadmin/ /chemin/vers/sites
Redémarrer nginx :
sudo service nginx restart
On peut désormais atteindre la page de phpmysadmin via :
http://adresse-ip/phpmyadmin.ERREURS
I have this error: The mysqli extension is missing. What’s wrong?
Fixed it by commenting this line on php.ini > mysqli.allow_local_infile = On—
Got this error after completing the installation: phpMyAdmin: Cannot load mcrypt extension. Please check your PHP configuration
@eticonleong You have to install the php mcrypt extension: sudo apt-get install php5-mcrypt—
Managed to get it to work after adding location /phpmyadmin { index index.php; } to my /etc/nginx/site-available/default file.
Check php5-fpm’s error log: tail /var/log/php5-fpm.log
If you get an error like this: The mysqli extension is missing. Please check your PHP configuration. All you have to do is restart FastCGI Process Manager with sudo /etc/init.d/php5-fpm restart