I'm not a programer I just play around html and css. Few weeks ago I was asked to make a Wordpress site for a friend. Thinking that the best idea would be to do it on XAMPP and then move it to live, I worked on it for quite some time.
Just when I was about to finish, something happened with powersurge and my computer got totaled, motherboard, graphics, power, all fried, all except for hard disc that somehow survived.
Now I got a laptop and new XAMPP instalation, but I have no idea how to transfer site from my old Hard disc to new. Any ideas?
Thanks in advance!
Edit: I have moved files from old xampp folder to new, but problem is database.
Usually(default) xampp is installed on the C drive, you can find it at:
C:\xampp\
projects are stored in the htdocs file inside of that, move the project(or projects if you have multiple) in its entirety from the old htdocs file to the new one.
Get your MySQL Data Files from C:\XAMPP\mysql\data and follow the instructions here
You can do this by following this steps:
1) copy your site from c:/xampp/htdocs/[copy your site name folder]
(before just check that your xampp install in which drive. common is C drive).
2)export database from phpmyadmin
type in URL : http://localhost/phpmyadmin/
then select your database and export it.
3)paste your folder in new PC's xampp/htdocs
4)import your database in your new Xampp.
I tried this way and its working good.
Install xammp and wordpress on new computer.
copy wordpress folder from C:\xampp\apps folder
Export wordpress folder from phpmyadmin.
replace the wordpress folder to new system and drop all table from wordpress db and
import the old db datas.
Notes:
If you config or merge other tools like phpbb means you have to change that also to
the new location.
Related
I'm running up a local WordPress server with WAMPSERVER, and I'm working on editing the theme's child theme.
I also setup virtual server on my network. In the past few days I don't see any issue, everything work perfect. Until yesterday the virtual server look like not able to connect via my mobile phone and other computer in the same network.
Today I'm trying to work on the editing. It just can't load to the homepage or even wp-admin. So I took a look at the console in developer mode and I had this error.
I have try to do all the research like changing the port at httpd.conf and wp_option in wordpress to localhost. It just don't work at all.
UPDATE:
I have solve the issue with reinstall the WAMPSERVER and WordPress manually. I'll keep this post and make a guide for the future use.
Firstly I have no idea what to do because I can't even load to /wp-admin. So I decided to backup and restore everything manually.
1. Backup directory
Open up where your WordPress installed.
Click on the WAMP icon at the taskbar. If you don't see it probably is hidden inside the up arrow icon. Left click on the WAMP icon and navigate to www directory.
You don't need to copy and backup all the files in here. Navigate to yoursite/wp-content and copy plugins, themes and uploads.
Paste at any place in your computer as a backup except C:\wamp64. Because it will delete all the files when you uninstall the WAMPSERVER.
I'm using WAMPSERVER 3.1.7, older version might be different. Please Google where is my www directory in wampserver replace.your.version or original path which you can find at C:\wamp64\www.
2. Backup database
We need to backup our database in order to recover the page, post or portfolio we created in the WordPress.
In your browser navigate to localhost/phpmyadmin and select your WordPress database at the right panel then select export button on the top and press GO. Make sure your Format: SQL before you press press the go.
All the pages, posts and portfolios that you created are store inside the database, not in the WordPress folder. Read more at here.
Uninstall WAMPSERVER
Update later...
Reinstall WAMPSERVER
Update later...
Prepare to install WordPress
Update later...
Holla
Update later...
Hope the above guide will solve your issue. I'm not a professional IT guy but it does work for me at least :).
Feel free to edit or suggest if you think I have mistake in the guide.
I have came up with an issue.
My last Windows got crashed; all I could do was to recover my XAMPP folder in C drive, after doing so, I reinstalled a new windows and also installed xampp.
Now I want to recover my old database in the previous windows to the new one (in the new xampp).
I have moved my old mysql/data folder contents to the new one in c:/xampp/mysql/data and also moved my htdocs folder content to the new one. (c:/xampp/htdocs)
After doing so, when I try to access my projects the contents are unreadable.
there is a page like this my crashed project
almost all of my projects are crashed somehow.
Also on some projects, when I try to load them in htdocs, mysqld.exe stops working and crashes. I'm pretty sure there's a problem with mysql, but I don't know what is it.
Some additional information that may help :
My OS is Windows 10
My projects are Wordpress websites
I'm using XAMPP Control Panel v3.2.2
Before deleting xampp folder you should always export your SQL database. So that after installing xampp again you could import the database. But since you have no backup. You have no option, you have to make tables again and enter data.
There is one hope for you. Read this post link
I hope this link help you resolve the issue.
https://techubber.blogspot.com/2017/06/how-to-website-from-xampp-one-computer-to-another-computer.html
I am trying to make very quick and easy css changes to a website that is wordpress site. I dont want make them while the site is live. is there a way to make them locally and then upload? what do you recommend?
people tell me that doing it locally is a big hassle because of the way the server is. is there a plug in that will let me make changes without them going live?
Thank you very much in advanced...sorry this is my first time with wordpress
What you can do is the following:
a) Install wamp server on your pc. (google where to get it)
b) Install a version of wordpress locally - in case you already have a version online that want to work on you will have to transfer it locallly. check this: http://codex.wordpress.org/Moving_WordPress
Actually you are saving your wordpress database, download all the files inside your wamp\www folder and then import the database through phpmyadmin to your local wamp server and change a couple of options in the db > options table (there are two options to change the website that is loaded so that it looks locally)
c) Your work on the offline version. I assume you mean that you need only styling, so you can edit your style.css file. As soon as you are pleased with it, you just upload it on your web server replacing your old file!
same as #scooterlord .
You can use nginx and php-cgi too on your Windows if ya wanna move to nginx in future.
Just install wamp then then download Wordpress version and then download your theme or plugin on which ya wanna work.
So ya will able to work offline and its not effect ur website.
yeah. I ya download db from ur site u need to change url of wordpress in DB.
u can do it by using phpmyadmin.
or by using These lines in your themes function file.:
update_option('siteurl','http://your.site.url:port/yourblog');
update_option('home','http://your.site.url:port/yourblog');
I am using XAMMP and WordPress.
My old computer has broken and I restored files of my site from /htdocs/MySite and database files from /mysql/data/MySite
In new comp and XAMMP I've added site files and it's OK but how to install database only from these files? Mention I haven't it exported - only that folder in data mysql.
Thanks for any advices and ideas!
You only need to copy the .frm files to new C:\xampp\mysql\data stop mysql and than start the mysql and it will start working hopefully.
well you have the files, but no mapping. I would create a new database (fresh install), create a new entry via the user interface, see how it appears in the database, and map your files along the same pattern.
im doing a php project. all is fine doing it in xp webserver which im using iis..but now i have set up a new pc with windows 7 and iis.
problem is when i copy my php files which is in a folder(e.g portal1) from the xp wwwroot to the windows 7 wwwroot, i cant access it on the browser. it returns an internal server error.
now i assumed i didnt properly set up my web server or even php. i have done it a dozen times following tutorials and im pretty sure its all correct.
i have done a further research on the folder itself and has led me to a theory that this has to do with permissions.
when i copy directly the whole thing,it wont run, BUT if i CREATE a folder and the subfolder with all the same names as the one i copied and just take the php files and put it accordingly, it runs ok!!
now that has something to do with inherited permission i think. how do i overcome this?
i dont want to everytime take the updated work folder from my partner which is done in xp and i have to create new folder and its subfolder with all the same name on my machine and then copy the php files accordingly. thats a lot of work!!
i just want to copy the folder and put it in my wwwroot folder and run it on the browser without problems. how do i overcome this permission issue?
any ideas?
By the sounds of things, you're working on a project with someone else. Copying & pasting is the absolute worst way of sharing files when working on a project with multiple people. You should really be using versioning like git. That's pretty hard to set up and learn though. An easy solution which will work for the time being (but won't manage conflicts well) is to use Dropbox. Set up a free Dropbox account, and create a folder in that called www or whatever you want. Then install WAMP (way better than IIS), and create an alias to the www folder in your Dropbox. Do this on both machines. Now every time your partner makes a change, it will be instantly reflected on your machine, and vice versa. Easy, free, and will work while you learn a versioning tool.
I know this doesn't address your actual problem, but it should be more helpful to you.