Get the most out of your Centmin Mod LEMP stack
Become a Member

phpmyadmin and wordpress

Discussion in 'Add Ons' started by ngindave, Nov 23, 2015.

Tags:
  1. ngindave

    ngindave New Member

    4
    1
    3
    Nov 22, 2015
    Ratings:
    +1
    Local Time:
    11:45 PM
    After installing Wordpress from option 22 I then installed phpmyadmin using the add-on. It seems that the script ran normally and when I access the url I get the http authentication prompt. But the Wordpress site shows up and gives a 404. I've tried adding a sym link to the phpmyadmin folder but no luck.How to make it work?
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,001
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    11:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    Could be some conflict in your newdomain.com.conf and your main hostname's vhost file at /usr/local/nginx/conf/conf.d/virtual.conf

    When you create a new nginx vhost domain via centmin.sh menu option 2 or /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags | Centmin Mod Community as well as contents of /usr/local/nginx/conf/conf.d/virtual.conf

    A few things to try
    • If you upgraded PHP after you installed phpmyadmin addon, try clearing browser cache and restarting nginx and php-fpm
    • Check nginx error and access log - FAQ item 19 and Config Files page for overview.
    • Ensure you have a valid DNS for the main hostname pointing to your server's IP address
    • Ensure main hostname is setup as per step 1 of Getting Started Guide where main hostname is not the same as a site's nginx vhost domain name. They have to be different as outlined in the difference and summary of Getting Started Guide.
      This allows the main hostname vhost to house all the PHP and nginx statistic pages and phpmyadmin urls.
    • So ensure the server_name listed in main hostname vhost at /usr/local/nginx/conf/conf.d/virtual.conf isn't referenced in other nginx domain vhost files.