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).
Related
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.
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.
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.
I have one apache server that runs wordpress blog and I registered one domain for it. Basically, the domain works fine, the domain can be accessed directly. But I found that the sub-folder php files i cannot access directly. For example, each URL like "abc.com/wp-admin/post-new.php" is not accessible, but ip address is ok. If i access URL thur ip address like "1.2.3.4/wp-admin/post-new.php", it's fine. So I don't know where the problem is?
Another question is about facebook cannot fetch the blog content if the URL is domain. For example, if I type URL "abc.com" facebook cannot fetch the blog's content, but when I change the domain to ip address such as "1.2.3.4/", it's ok.
Could anyone give me suggestion? Thanks in advance.
I manage a hosting server using WHM. I have two cPanel accounts on this server, one for exampletest.com (account name is exampletest) and one for example.com (account name example). We have a Wordpress site that was working well at exampletest.com but we keep running into problems when we try to migrate it to example.com. I believe it has to do with one WordPress plugin that doesn't migrate well.
So we had the idea to simply take the example.com domain and point it to the exampletest cPanel account, then update the domain for WordPress in the database. However, one potential issue I can see is that we have many active email addresses on the example account. I fear that associating the example.com domain to the exampletest account will break the email addresses.
Keeping the above in mind, I have a couple questions:
Will associating the example.com domain to the exampletest account break the emails? If so, is there a workaround (moving the email addresses to the new account somehow?)
Is there a better way to go about doing this that I'm not thinking of?
The best way of transferring your wordpress site would be to copy the files, create a database user with the same login details and import the database. Wordpress shouldn't be able to tell the difference.
One way would be to assign a static IP address to exampletest and point example.com's A record to that IP.
Due to the way WHM's DNS and port binding is set up it will not let you set up the same domain on two seperate accounts.
You could treat www. as a seperate subdomain and add the subdomain www.example.com to exampletest as an addon domain and remove the www A record from example first. Redirect all web traffic from example.com to www.example.com or use another sub-domain such as www2.
Another option would be transfer the emails, you can either use the transfer tools in WHM > Transfers or use http://imapsync.lamiral.info/