sudo nano /etc/nginx/sites-available/phpmyadmin.example. So let’s create a Nginx virtual host file for. Setup permissions for virtual host directory, sudo chown -R Now it’s time that we let Nginx know our intention of running a virtual host on /var/Procedure is same as adding a new domain or sub domain to the server. sudo mkdir -p /var//var/Change to the directory you just created, cd /var/Download and unpack phpmyadmin, sudo wget -O phpmyadmin.zip You should always replace with your sub domain. following command should take care of that. So, we’ll create an Nginx virtual host for phpmyadmin. I prefer it over having phpmyadmin on a sub directory. I’m going to use a sub domain for phpmyadmin. Because these codes are written for my Nginx setup and might need some modifications for other setups. If you’ve used a different source, it’s best to ask the author of that tutorial rather than following this. I’m going to assume that you’ve followed my LEMP server setup tutorial to set up your server. With that being said, let’s start the process of setting up phpmyadmin on Nginx server. So I prefer using command line to manage MySQL. There’s nothing more phpmyadmin can do that command line can’t. And before I get started, I would like to mention that i’m not using phpmyadmin on my server. This tutorial will walk you through the setup of phpmyadmin on your Nginx server. It’s a free software and can be installed on a Ubuntu-Nginx (LEMP) server with few commands. What phpmyadmin does is, it gives graphical user interface for admins to manage MySQL with few clicks. phpmyadmin can be used to manage MySQL on a server. Location ~* \.MySQL is a must have peice of software for any web server hosting websites. Rewrite ^/(.*/)?sitemap.xml /wp-content/uploads/sitemap.xml last Ssl_protocols TLSv1 TLSv1.1 TLSv1.2 # Dropping SSLv3, ref: POODLE Include /etc/nginx/modules-enabled/*.conf I have compared this to the backups files and they are the same. # Stop php access except to needed files in wp-includes MySQL database name for phpmyadmin: phpmyadmin. Password of the database's administrative user: mysqlsamplepassword. Name of the database's administrative user: root. Server_name index index.php index.html index.htm Connection method for MySQL database for phpmyadmin: unix socket. This is not what is configured in my sites available/enabled. It appears that my root folder has been changed to /usr/share/nginx/html. I am in the process of doing triage and can't seem to figure out what the hell happened. I have restored from backup onto a new server and site is running. This gives you temporary access to root’s capabilities. You need to authenticate to use sudo, which you do by entering your own password. sudo allows nominated users to temporarily use root-level privileges from within their own user account. Now I am just getting default Nginx page. The solution to that conundrum is the sudo command. Was working with a plugin to re-apply API so it would call back on the correct url. Was working on removing TLSv1 form Certificate path. Pushed to live environment was working as of my backup this morning.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |