PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 11, 2022

[FIXED] How can I secure or change phpmyadmin for my wordpress site that is hosted on Google Cloud Platform?

 October 11, 2022     debian, google-cloud-platform, mysql, phpmyadmin, wordpress     No comments   

Issue

I'm using GCP for hosting my Wordpress website, which is using php 7.4 and Debian. I followed the steps for Google Click to Deploy and I am able to access <IP/Domain>/phpmyadmin to get to the database. How can I make this more secure or change the URL??

I've looked at other solutions and cannot find the file or path for /etc/phpmyadmin/apache.conf or /etc/apache2/conf.d/phpmyadmin.conf


Solution

I don't know GCP specifically, but you've mentioned Debian so I'll take a stab at this.

The phpMyAdmin package for Debian configures this as part of the Alias statement at the top of /etc/phpmyadmin/apache.conf:

Alias /phpmyadmin /usr/share/phpmyadmin

You can change the path to anything you'd like (although note that, depending on your settings, it might get reverted when you update the package), such as

Alias /superSecretObscurePath /usr/share/phpmyadmin

Afterwords, you'll have to reload or restart Apache.



Answered By - Isaac Bennetch
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing