I developed a Wordpress site locally using MAMP.
I'm trying to transfer it on my home server to show to the client, so I used the plugin "Duplicator".
Everything seemed to work fine but all the links are now broken.
I put the .zip archive and the installer.php inside a folder inside the "html" folder of apache and run installed.php from the browser.
I'm not familiar with the 'duplicator' plugin, but when you transfer a Wordpress site to a new server, you usually have to do three things.
Edit the wp_options table and change the siteurl and home field to the URL of the new site.
Update the wp-config.php file to have the correct settings for the new server.
Use a search and replace tool to bulk replace the old URL with the new URL in all your posts and pages. The best tool I have found is to install wp-cli (http://wp-cli.org/) and then run:
wp search-replace oldurl.com newurl.com
You obviously need to use wp search-replace carefully, as you could mess up a lot of posts if you do it wrong. So obviously keep a backup around.
Related
I have a live wordpress website, due to some problem my database table become empty. Now I have only files and folders of my website. So please guide me how to create a clone of my website in my wamp server localhost with existing file/folders in root directory without database file?
This plugin is an excellent tool to migrate from live to local and vice versa All in one wp migrator copies all files and database. But in your case not sure if it will help .
To copy the files locally all you need is filezilla and the ftp credentials which may be the same as cpanel credentials. Then copy all files to local folder for website of your wamp. Php myadmin on your live site dump the sql and import into your local wamp php .
Can you check if you have a back up via the cpanel under softaculous installer you may be able to restore a back up of the site.
If your database is empty and there is no backup then all the contents of your website (except for photos) are lost.
Your hosting company may have made automatic backups and you ought to contact them right away.
You can make a MAMP clone using your current files and images, but none of your old content will appear and your images will not appear in the Media Manager. The images will need to be re-imported.
To make a local MAMP site with your existing files, first create a new blank Wordpress installation using the following instructions:
https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
A new contentless Wordpress database will be created in this process.
Then remove all the Wordpress files except wp-config.php and copy all your old live site's files into the folder. When you reload Wordpress it will be running off the live site's code and plugins.
I'm making my first steps learning how to develop a Wordpress theme. I installed Wordpress in local, I designed a theme and now I'm learning how to export it to a live site.
I have the server address, the user and the password of my client. I downloaded filezilla, I logged in and I decided to make a subdirectory in his actual site to install the wordpress site. So it woud be something like this www.clientsite.com/wordpressnewsite.
The thing is that I suppose that I have to install phpMyAdmin in this subdirectory so like this I can import my database.
I downloaded phpMyAdmin, I saved all the files in my subdirectory and I created a config directory inside with all the permissions.
Now I tried to go to http://www.clientsite.com/wordpressnewsite/phpmyadmin/setup/ to continue the installation but it shows a white page without a message or something.
Do you have some recommendation?
Couple of things:
Its likely if you use cpanel you already have phpmyadmin. its not advisable to leave it in a accessible web directory, or hackers gonna get you.
If you have that phpmyadmin folder under your wordpress install its likely that it may not work as the htaccess file for wordpress is trying to send everything through wordpress.
In the phpmyadmin folder you could enter the following in the htaccess file.
RewriteEngine Off.
I am currently developing a WordPress project on a Windows machine (XAMPP) with my partner on a Mac (MAMP).
I installed WordPress on my local /htdocs, edited themes etc.
At the end of this all, I exported my WordPress database through PhpMyAdmin for my partner to install the whole project on his machine.
He has the /wordpress folder and imported the SQL with correct database names etc.
But whenever he goes to localhost:8888/wordpress it results in a 404 page not found error.
why?
The problem is, there are a lot of serialized things in the wordpress database, what you can not just find / replace.
I moved from localhost to production a ton of times wordpress sites.
So what you need to do is to:
Dump the database from local
Copy the files to production server
Import the database, but do not open the site in browser!
Download the script from here.
Unzip, and upload this into a wp-replace directory
Go to http://example.com/wp-replace/
Follow the instructions. Replace the olddomain.com to newdomain.com/wordpress (do not use http and trailing slash, add port if needs)
Go to the dashboard, login, and refresh the permalinks.
Done
I have a wordpress site and I want to be able to make one of the pages 'standalone' html so that I can display it in a browser that's not connected to the internet. Any ideas?
To get a local copy of your actual page view user Ctrl+s. This will not include all css/js and might be not what you want. Its a better screenshot.
To get a fully working local version install xampp to get a webserver and a mysql server.
https://www.apachefriends.org/
Download you WordPress instance and move it in the htdocs directory that is inside the xampp installation.
Create a mysqldump of your wordpress database and load it into your local mysqlserver.
Configure your local WordPress instance so it can connect to the database.
I've got a Wordpress blog hosted on Linode under Cherokee web server, but the performance has been problematic the last weeks and I'd like to give a chance to Nginx.
So I've made a DB backup of the current site, setup a LEMP platform, installed wordpress, and the "new" wordpress, with no articles (yet) on it works as expected.
But when I restore the mysql database from the current blog, the site shows a blank page. I've copied all the wp-content directory onto the new WordPress directory, and I've tried to disable all the plugins, but nothing changes.
In fact, there's an even more important problem: I can't login with my old admin/pass account, that should be inherited from the old database. In fact when I do a SELECT on the wp_users table, everything seems to be fine (equal to the old installation), but I can't login no matter what I do.
I've even tried to change the admin password with an UPDATE and the MD5 function under mysql, and although the table is updated, the pass does not work either.
So all I get is a restore I can't access
The issue causing the blank page is likely that your old install used a theme other than the default, and since you haven't copied wp-content over, it's looking for a theme that doesn't exist. I find that with importing an installs database, this happens rather than it just reverting to a default theme, as it does when you delete the current theme on an active install.
Something you may consider trying to get around the login problems is doing a WordPress export (Tools -> Export). This will work if you don't have much media attached to your current posts, as it will only copy post contents, and not attachments. Import that export to a fresh WP install on your new platform and both problems should be solved.
Could be a plugin problem; rename your plugin folder to "oldplugins" and see what happens.
Reupload fresh copies of all WO core files/folders, except for wp-config.php and wp-content
Could be a permissions problem; check http://codex.wordpress.org/Changing_File_Permissions
And: did you change DB table prefixes?
I had this problem but eventually successfully restored it by trial and error.
The steps that worked were something like this:
uninstalled wordpress
installed a version that was working before the upgrade
activated same plugins (same version) that were installed before
restored the database
here's where it gets fuzzy, but had login problems and content would show but no theme, and admin login redirected to root site
did this procedure for changing site URL:
http://codex.wordpress.org/Changing_The_Site_URL
don't know why that was necessary but after a few minutes, the links started working. And after having to request a new admin login by email several times throughout the process, I was able to admin login again.