DigitalOcean Server Par phpMyAdmin work nahi kar raha hai?


(rahul singh) #1

Hlo Sir,
Sir maine digital ocean ki hosting per sab kuch sahi se install kr liya hai jisme maine-initial server setup of Ubuntu 16.04.,Nginx with Let’s Encrypt on Ubuntu 16.04. and installing a LEMP (Linux, Nginx, MySQL and PHP) stack on Ubuntu 16.04, ke ek ek step ko sahi se install kiya and uske baad How To Install and Secure phpMyAdmin with Nginx on Ubuntu 16.04. ko bhi acche se install kiya hai but ek hi problem face ho rahi hai ki jab bhi mai phpMyAdmin ko open karta hu username and password daal ke too wo direct phpMyAdmin ka dashboard open na hokar site pr redirect hota hai nd back par click karne par wo vapas tab phpMyAdmin ke dashboard par open hota hai.Pls meri help kare taki direct phpMyAdmin ka dashboard hi open ho.ex-
Log in -> http://server_domain_or_IP/nothingtosee
Redirect to -> http://server_domain_or_IP/index.php?token=….
back karne par->http://server_domain_or_IP/nothingtosee/index.php?token=….
pls help me.


(Ravi Kumar Sahu) #2

@iamjdk Bro… Ispar Wahi Achhe SE Reply Kar Payenge


(Jumedeen khan) #3

Aap adminer use kare database ke liye iski jankari is post me hai.


Digital ocean me wordpress blog nahi open ho rha hai
(rahul singh) #4

sir mujhe site migrate nahi karni hai mai too fresh site ko digital ocen se hi bna raha hu jisme sirf phpMyAdmin me hi problem a rahi hai pls iss problem ke baare me bataye.pls help me.


(Jumedeen khan) #5

Suggestion

First adminer ko aap sirf site migrate karne ke liye hi nahi balki baki work ke liye bhi use kar sakte ho, ye phpmyadmin ka alternative hai. Aap jo phpmyadmin se karna chahate ho isse bhi kar sakte ho. second ye phpmyadmin ki tulna me bahut jyada easy hai.

Your problem solution

Aapne phpmyadmin ko correctly install nahi kiya hai, aapse installation process me mistake huyi hai. Aap ye code nginx configuration file me add karo aur phpmyadmin open karo, work karega.

Nginx configuration file open karne ke liye ye command use karo.

sudo nano /etc/nginx/sites-available/default

Ab ye code server block me add karo.

# Phpmyadmin Configurations
    location /phpmyadmin {
       root /usr/share/;
       index index.php index.html index.htm;
       location ~ ^/phpmyadmin/(.+\.php)$ {
               try_files $uri =404;
               root /usr/share/;
               #fastcgi_pass 127.0.0.1:9000;
               #fastcgi_param HTTPS on; # <-- add this line
               fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               include fastcgi_params;
       }
       location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
               root /usr/share/;
       }
   }

   # Dealing with the uppercased letters
   location /phpMyAdmin {
       rewrite ^/* /phpmyadmin last;
   }

Agar iske bad bhi work na kare to aapko fir se phpmyadmin install karna hoga.