We are getting mixed content errors for our Bitnami Wordpress Instance with Let's Encrypt. When we go to change the URL in settings > general > URL, they are greyed out - Screenshot:
https://i.stack.imgur.com/ZX30e.png
We cannot find the wp-config file in the SSH Filezilla - Screenshot:
https://i.stack.imgur.com/BgchM.png
We feel that the wp-config file is not setup correctly and need some directions on how to download the config file and upload a new one to fix the mixed content error messages.
Thanks for your input,
Pete
Related
I have imported my live website to localhost xampp after setup i am unable to open link associated to it for example :- my website address locally is localhost/abc i am unable to open localhost/abc/contact-us.
You need to change all domain occurrences to your local domain
If you're using wp-cli
you can do it with
wp search-replace "your-domain-name.com" "localhost/abc"
if not you can open your sql dump in text editor and do find-replace there
Also there are a lot of different plugins like https://wordpress.org/plugins/wp-migrate-db/
Also check that your permalinks are configured correctly and you have proper .htaccess file
I changed my Wordpress website site URL prematurely and now it tells me Not found The Requested URL was not found on this server. I've been struggling with this and trying to find a fix but everything I've done has not fixed it. I've gone into the config file to update the URL, define the URL, you name it, I've done it. So I'm pretty desperate at this point and any help would be appreciated.
P.s I'm also running the server off of a Digital Ocean droplet. So I haven't been able to access the DB through MyPhpAdmin.
Thank you!
To change the WordPress site URL you need to do it manually as you can’t do it from your WordPress admin panel. There are two ways to do that:
Method 1 - Change WordPress site URL by editing wp-config.php file. This is the easiest way;
Add the following code to the end of wp-config.php file and save the file.
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', ' http://www.example.com');
*Change www.example.com with your site domain.
Method 2 -
Please try to change the URL from PHP MY ADMIN > select your database > goto wp_options and change the URL
Using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides, access phpMyAdmin on your host, then find your DB, there check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure site URL field and home field are correct.
I found the fix!!
When the site URL changed so did the root directory. The root directory added another folder to the path. So it looked something like this var/www/html.old/html.
Apache was still trying to access the site through var/www/html.
So I adjusted the file path and boom! Apache was able to make the connection and the website is now showing.
To get to the apache folder it was /etc/apache2/site-available/. I was then able to nano into the 000-default.conf file and adjust the file path through there.
For some unknown reason my live wordpress fot blocked, showing following message on each hit
"This site has been temporarily disabled, please try again later."
So, In order to recover data I copied my wordpress site files from domain to my PC. I uploaded the database to phpmyadmin, updated the wp-config.php file for my localhost but every time when I try to hit the site from browser* i.e. "http://localhost:8080/my-site-name/" it keeps me redirecting to the url "http://localhost/my-site-name/"
*my localhost is set up to the port 8080
open database, wp_options table, find row with site_url, home_url.... it's using old value, change them with new address.
Directly copying files from your live WordPress directory and import live database into local will not work as expected.
For this you need to updated all links in you local database with
local server link (Use search in phpmyadmin for domain and replace
with local one.
You may need to updated your .htaccess file according
your local server.
For getting backup from live to local you use
plug-in like Duplicator.
Here is a link duplicator where you will find plugin for backup and restore.It backup both php files and database.so need to import db on local mysql
There is a quick hack to this also. You can create a dummy post on WordPress and publish it. Later you can delete the post. It works for me the most time.
I am a WordPress beginner and in the dashboard, under Settings --> General I changed WordPress address (URL) to http://a.com and Site Address (URL) also to http://a.com just in the curiosity to try the feature unknowing of the fact that it will lock me out.
I am using xampp for a localhost environment.
The canonical article to resolve this problem is on the WordPress website.
If you have a local copy of the website, you can edit your wp-config.php file and upload it to the site. Or, if you have SSH access to your site you can use a curses-based text editor such as Nano to make the necessary amendments remotely.
You need to override the domain settings you have made, and you can do so using this code:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Upload this file if necessary, and then refresh your admin screen. You may have to log in again. Once you get access to your control panel, fix your incorrect settings. You can then revert the changes to your wp-config.php file.
I been a little stupid. I admit.
I just started creating and developing a new site using a live subdomain I had. So now I'm trying to move it off that live server to a local MAMP server, and then finally import it to the actual final domain.
I've downloaded all the WordPress files from the live server to the appropriate folder.
I then logged into the phpMyAdmin and exported the WP database. .zipped it and imported it into the local phpMyAdmin.
Created a new user with the db_username and db_password from wp-config.
Edited the "home" and "siteurl" in the wp_options table to http://localhost/foldername
Restarted MAMP.
But now when I point to that new local url in the browser I get an 404 Error, page not found. And all links stil points to the live domain. So content is still pulled from there and soon as I click a link.
I would grateful for any help. I'm really lost here.
It's because the data from your database is using your "live URL".
I suggest that you do the following.
Export the live "DB SQL" dumb via phpMyAdmin.
Open the .sql using any text editor (notepad++, atom, sublime, etc..)
Use search and replace. Search for the live URL (http://www.live.com) and replace it with the local URL (http://localhost/cubo/).
Import the altered .sql in your localhost via phpMyAdmin.
Go to your localhost dashboard (wp-admin).
Go to permalinks
Click "Save" to force flush rewrite.