I use wordpress as a CMS(NOT A BLOG) build a information site. I use wordpress 3.04 + buddypress 1.26 + Exec-PHP(only 2 plungins).
I built my site in my computer, winxp + Apache/2.2.13 + PHP/5.2.11 the path is in e:/www/wordpress. I made a custom buddypress theme in E:\www\wordpress\wp-content\themes\mynewtheme and I store all the Template, css, js, images under this theme path. Then I open settings->Permalink Settings->Custom Structure set a path like http:/localhost/wordpress/index.php (For I am a newbie, I tried this, but pass the test). I add all my new pages through admin dashboard->pages->add new. Then I can test my pages, type a url like localhost/wordpress/computers/apple.
I have already finished my site, so I want move these files to another computer for a last test. The new computer win7 + Apache/2.2.13 + PHP/5.2.11 the path is in c:/www/wordpress, I copied all the page files from first computer e:/www/wordpress to new computer c:/www/wordpress and copied all database through phpmyadmin.
I just copied page files and database, nothing more. But when I type the url http:/localhost/wordpress, the home page just load little, and localhost/wordpress/computers/apple was a broken link. I checked the html source code , find all the css, js, images under my custom theme are all missed. Is it because my first settings->Permalink Settings->Custom Structure setting wrong? Or other mistake caused?
How to solve? I am almost crazy. Waiting for a help. Thanks.
If you first installed WordPress in a WAMP server, there can be problems when migrating server. I know of two options:
While in your WAMP server, before doing the migration, under Settings, enter the domain that you will be moving to your site. It will most likely work once you migrate.
(This is what I use), after performing the migration, you can edit the domain in PHPMyAdmin. Log in to PhpMyAdmin and choose the database that you use for WordPress. Under list, look for wp_options.
Under the field option_name, seek site URL. The site URL should be listed as localhost. Change it to your site's new URL.
Did wordpress installed correctly? Is it a theme issue?
Related
I am new to WordPress. I have a WordPress woocommerce application, which I want to copy to local server.
But all the links still point to the same server. E.g. when I login it takes me to live website as the action target is sth like : www.example.com/wp-login.php.
How to change all links to point to local servers so that I can develop locally.
I have done the same with WP CLONE Plugin.
https://wordpress.org/plugins/wp-clone-by-wp-academy/
Try this.
WordPress has absolute links inside its database, i.e. http://yoursite.org. To make site functional on another domain or localserver you have to change all links inside database. Any manual manipulation with database may corrupt it.
The robust way to move your site is usage of Duplicator plugin.
Easiest way is to use WP All in One plugin, you export whole wordpress and woocommerce, and only thing you need to change when you set it to localhost are permalinks
I am experiencing a problem with the wordpress migration.
I held my website on localhost beofre (xampp server in computer). It all worked fine so I decided to move it to a real domain. The website is http://www.cupavortex.ga .
I exported the database from phpMyAdmin in xampp, and imported it in the new database in the wordpress site. wp-config.php is already configured
The only thing working is the homepage and the buttons.
The images are not appearing.
And when I try to click on any link it redirects me to the old addresses (for example, when I try to click on “Desfasurare”, it redirects me to localhost/CupaVortex/desfasurare because that was the old link. I can’t acces wp-admin nor any administrative tools but phpMyAdmin and FileZilla.
Also, the site is hosted at 000webhost.com, and yes, I modified the mysql name to mysql4.000webhost.com from localhost, and replaced utf8mb4 with utf8 in order for everything to work. I just want to find out how to replace the links, I don’t really care about the images.. Theme used is Astrid.
Thanks in advance
Have you updated your database 'home' and 'site' url entries? This is done in wp_options, both need to be the new base url! After that, if thats the issue, you'll probably want to refresh your permalinks in the wp-admin settings section.
Go Back to your old local host website for a sec.
Steps:
Go to Settings->Permalinks and set it to numeric values.
Check if you have not used a custom link inside the website for any images or post or anything. If you do then change it to the new numeric values from it.
Now just export the sql datasheet and website back up from old host to new host.
Make sure you update ALL absolute links to posts, images, files etc.. by running the following plugin: "Velvet Blues Update url's"
What this will accomplish is (according to own personal experience and taken from plugin developer's page is)
FEATURES:
Users can choose to update links embedded in content, excerpts, or custom fields
Users can choose whether to update links for attachments
View how many items were updated
Last edited by Dimitar Coklev on Feb 18, 2018
I have a problem with moving my wordpress website from Localhost to Webserver .. In the server, I have an old website (wordpress to) .. so when i finished uploading the website I edited the wp-options siteurl and wp-posts guid from "Localhost:4455/ruepress" to "mydomain.com/ruepress2" because i have already another website exactly in the public_html directory .. when i enter to my website it loads the page but some pictures doesn't appear .. and when i click on an articles it redirects me to the old website and it shows the coming soon page (because i made the old website on under-construct mode) .. so whats the problem ? i think the problem is in the siteurl but I changed it ?
+1 for:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
However, if you do not wish to use that rout for any reason, I can suggest an easier option:
On your local site, install this plug-in:
https://wordpress.org/plugins/duplicator/
Next, generate a Duplicator package (via the plug-in's menu on wp-admin dashboad).
Once the package is generated, download the two package files (installer.php and the archive/zip file) to some folder on your PC. Next, upload these two files to the live site folder where you wish to create the site. Next, open the following link in your browser:
http://{your_domain}/{folder}/installer.php
and follow on-screen instructions. Your site should get created and everything should work fine.
This is a very common issue. You have to change all URLs in the database, not just wp_options, i.e. in post/page content, widgets, theme options. and more.
Try interconnectit.com WordPress Serialized PHP Search Replace Tool. It's specifically made for this. And see Moving WordPress « WordPress Codex, which mentions the same Interconnect script.
Use the developer tools in Firefox (or Firebug) or Chrome or Safari or IE to check the path of the missing images before and after using the script.
I've finished the styling changes on WordPress and I'm ready to move it from MAMP to my domain.
Will this involve any changes to the WordPress files or can I just drag it over to my new domain once I purchased it?
The main start you must make is update your wp-config.php
define('WP_HOME','http://www.mynewdomain.com');
define('WP_SITEURL','http://www.mynewdomain.com');
That way wordpress knows what domain it MUST run from.
The reason you do that is because without this you may not be able to access admin, login, etc etc.
When this is working and you have logged in, go to wp-admin and go to your permalink settings.
Make a NOTE of your settings, then change them to default (and woocommerce settings etc).
Go to your home page and a few others, and notice how messed up your urls look :)
Now go back to permalink settings and restore them (the point of this is to make sure your .htaccess file that wordpress depends upon is set correctly)
Finally, have a look at https://github.com/veloper/WordPress-Domain-Changer to change your sql etc if needed.
note this method is very handy for developers so you just update your wp-config.php for localhost or development or production (not for testing purposes, don't use your local pc. copy it all up to a subdirectory of your hosting partner e.g. http://www.mynewdomain.com/mytestarea. Make sure you use a COPY of the mysql database (never point both to the same database). You now can test on the hosting platform without disturbing the live site or your development causing issues to other people.
It's been a long while for me personally, but you'll want to change the SiteURL via the options menu in wp-admin.
Otherwise, just make sure your MySQL database is exported over, your credentials and user permissions are all setup and those work too.
If you still have problems:
https://codex.wordpress.org/Changing_The_Site_URL
https://codex.wordpress.org/Moving_WordPress
The database has to be updated. What always works for me is that I export the database from phpMyAdmin or MySQL (using mysqldump) and open the exported .sql-file with a text editor, like Sublime Text.
Now you want to find any occurence of your previous URL. Let's say on your dev machine the URL to the index of your Wordpress site is http://localhost:8080/wordpress and you want it to be on a website under https://domain.com you simply do a Find & Replace using that and replace everything with https://domain.com.
For older Wordpress versions you have to update the .htaccess files if you have custom URL's.
You have to make a search replace in your database and replace your local domain ( test.lo ) with the live domain ( test.com ).
To do this you can use the script from here: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Add the searchreplacedb2.php file in your route folder and the access test.lo/searchreplacedb2.php and follow the steps there. This will replace your local domain with your live one everywhere in the database.
You can't make a simple search-replace because the local domain might be serialized in some fields in the database, and a simple search-replace will not replace those.
I have successfully moved a wordpress site from /test directory to the root, so now the website url looks like www.example.com. Fine.
However the admin section (wp-admin) still points to /test directory and so the url looks like www.example.com/test/wp-admin/...
How can I make it like www.example.com/wp-admin/...?
Please notice that I'm not interested in a simple redirection (now the customer is able to access the admin section with www.example.com/wp-admin, but then he's redirected to www.example.com/test/wp-admin/..., and it's not what he wants.
Thanks in advance
Everything is documented in http://codex.wordpress.org/Moving_WordPress
You may need to change many URLs in post/page content; if so, see https://github.com/interconnectit/Search-Replace-DB as suggested in the above Docs.
There is no need to create a new Wordpress install.
Also see http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install if you want to keep core Wordpress files and folders in a subfolder, but have the site appear to be at root for the end user.
You should not move wordpress this way. Here is what you do:
Install Clean Wordpress Installation on the new domain.
(www.original.com)
Use a plugin* to make back-up on your test domain.
(www.original.com/test/)
Install plugin* on the new domain, and restore back-up from test
domain. (www.orignal.com)
Update your style.css, header.php, index.php & footer.php if it
contains hard written links to your test domain.
You cannot simply move a wordpress installation - as most entries, links etc. are stored in the database. If you move folders in your ftp they will still point to the old database. This is why you have to duplicate your site, where the database entries will be automatically updated to your new site domain. Hard written links in any theme php files will have to be updated.
Although your problem depends on how your pointers/sites are set-up in c-panel. If you have to change pointers for your directory, you might have to back-up your website and upload it to a different domain so your new site can access the restoration back-up file via http request.
*Plugins such as wp clone, duplicator.