Wordpress Login - Changed URL no access - wordpress

I started a Google Cloud Account. Setup a Wordpress site. All was good. I changed the URL in the backend of Wordpress to match the new domain. Was not setup right. So I changed the URL back again to the IP address. However, I am locked out. Nothing works. How can I access the Wordpress account to update the URL in case I did it wrong or entered the wrong IP address?

The only way would be to access the MYSQL database and manually change it from there, that is if you have access to the database through PHPmyadmin or putty to the server directly.
your problem is not an easy fix sorry, I would recommend burning it down and restore from a backup.

Related

Error: "This site can’t be reached" after change domain GCP + openLiteSpeed

Hello First of all I want to mentioned that I'm using Google cloud platform VM instance, openLiteSpeed + wordpress site.
I'm on fly more than a year with some domain and everything works well.
Today I bought a new domain and set it to my website and from this moment I can't enter to my site even if I'm using the External IP of my instance.
For now I deleted all my records in DNS section to try to handle this problem and still it does not work.
I also changed the virtual mapping on Listener section in openLiteSpeed dashboard.
I don't have idea what todo next, I try to solve this more than 5 hours.
Any suggestions how can I solve it ?
I reproduced your scenario in my own project-- I installed “openlitespeed-wordpress” solution.
I realised that this solution doesn't reserve an External IP, so when I stopped the instance and started it again, I wasn’t able to access my WordPress because my original IP was ephemeral, and it changed when I started my VM Instance again.
I solved this problem by modifying 2 fields in the DB, if you have the same issue you can follow the next steps:
In the Google Cloud Console, go to the VM instances page to check the new IP for your openlitespeed-wordpress Instance.
Use your new IP to access to your phpMyAdmin:
https://{Your-New-IP}/phpmyadmin/
If you don't know your credentials to access to phpMyAdmin you can get this information with the following command using ssh:
sudo sed -n 1p /home/ubuntu/.db_password
Once you have access, go to wordpress -> wp_options
Then you edit the option name
siteurl
home
After this action I was able to access my site again with my New IP.
To avoid this issue in the future you could reserve your IP:
In the Cloud Console, go to the VM instances page.
Click the name of the instance that you want to assign an external IP to.
The instance details page displays.
From the instance details page, complete the following steps:
a. Click Edit.
b. Under Network interfaces, click the edit button.
c. Under External IP, select Static external IP address to assign to the instance.
d. Click Done and Save.
Also I found some documentation that might help you to troubleshoot your issue.

Firebase Hosting custom domain suddenly stopped working while trying to add www redirect

I had completed setup firebase hosting custom domain after verifying TXT records and A records with IP addresses. and today I tried to add another domain to redirect www.mysite.com to mysite.com. in the process I deleted previous A records and re-added new records and firebase hosting stopped working soon after. I'm very new to firebase and I have no idea what happened. My domain is purchased from namecheap.com. I also re-added A records hoping it will fix the issue but it didn't.
it says mysite.com is connected but when I try to access it I get following error.
It started working again automatically a few minutes after resetting A records. But firebase support told me that there should only be A records with IP address in DNS configurations.

Same Domain WordPress login on different server wp-admin

Quick Question.
A guest house was bought by the original owner and scenario as follows.
The Website for that guesthouse is on its own Hosted WordPress installation at the current host
The login address would be https://Example/wp-admin
I re-created that user account on our hosted WHM as I need to transfer the website and Domain to myself.
Can I login to the newly created WP-admin on my server while the A record is Pointed to the current hosts IP?
Example
Current Host
Example/WP-admin
IP:46.0.0.0
Example
New Host
Example/WP-admin
IP:76.0.0.0
How Can I login to the WP on the new host if the DNS is pointing to the IP:46.0.0.0 (Current Host)
FYI - most will ask why don't I point the A record, that's because the current host does not have the logins for the Cpanel, nor are they answering calls
THANKS,
hope this makes sense in the way I phrased it.
On your local machine you can change the hosts file to point Example webstie to 76.0.0.0 and then you can flush the dns cache and web browser cache. From now on Example website will point to 76.0.0.0 for your computer only. If you have a Windows machine and admin access, you can modify the hosts file under c:\Windows\System32\Drivers\etc\hosts ( change c partition to the partition that you have installed your windows on, if its different then "c" ) then you can add following line:
76.0.0.0 example.com www.example.com
Please make sure you flush the dns cache and clear the web browser cache afterwards.
If you want the whole world to see Example website from 76.0.0.0 you would have to change the A record.

How to access Wordpress wp-admin dashboad after domain is expired?

I had a domain name called: http://p2pproductions.in
Which expired a few months back since we are moving to a new site.
I have downloaded the Site files and Database scripts.
I wanted to log in to the existing WP dashboard but since the domain is expired I have no way to login to it.
You will need to edit your local computer's hosts file. This will make your browser to locally resolve the domain to the IP that it was previously hosted on.
The file is usually present in
Windows: C:\Windows\System32\Drivers\etc\hosts.
Linux: /etc/hosts
Mac: /etc/private/hosts OR /etc/hosts
In there you need to find your cPanel's IP, then append the line
IP www.domain.com domain.com
7.7.7.7 www.p2pproductions.in p2pproductions.in
After that save and close your hosts file, clear your browser's cache and access your site again - you will resolve it from your cPanel account.
Alternatively you can also use the same manner by visiting https://hosts.cx/ - in the Server Address enter your cPanel account's IP and in the Website name - p2pproductions.in
You have to access to your database and change the URL at the wp_option(instead of wp_, maybe you are using another prefix) table.
The field name you have to change is siteurl.
P.D: If you are at localhost, change it to localhost (also take a look if you're using a port, like 8080).

Why does my openshift site say "Welcome to Firebase Hosting"?

I haven't made any changes to the code, but now my site (http://www.tagalogreader.com/) says "Welcome to Firebase Hosting".
Have I been hacked? What should I do?
This is the page you get when you create a firebase website, but have not hosted any content.
If you are using Firebase go here to host your content.
If not go to your domain provider and check your records, if you see anything with firebase in it get rid of it and update it to what it should be
It seems like you( or your client has changed the nameservers ) of you domain...
Your website is no more linked to the nameserver it used to query earlier...
If that doesn't help check out your A and CNAME records... They might be pointing to firebase servers.
And that is probably the servers default page you are seeing, so doesn't look like it's hacked :)

Resources