拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对Linux的了解非常局限,还是花了一番功夫,同时学了很多东西,在这里记一下。没有试图写一篇“手把手教你搬WP”,只是记录一些我觉得有帮助的东西,希望做同样的事情的且同样不是那么牛逼的Linux学习者们有用:)
虽说是WordPress搬家,但是任何一个小型网站搬家都差不多这样了吧,嘿嘿。
如果用cPanel和MySQLAdmin之类的东西可能就很傻瓜,但是第一cPanel太贵了(竟然要425多刀一年,我都笑了),第二VPS都买了必须必须要抓住每一个学Linux的机会啊。
过程如下(断断续续弄了好几天…):
环境
虚拟主机和VPS都是host2ez的,最牛逼的主机提供商。系统是CentOS Linux 5.6,apache(现在改名叫httpd)已经装好了,再装
yum php mysql mysql-server
就成。
文件
这个简单,cPanel把虚拟主机上文件打包,VPS上wget下来就好。WP的独立性做的好,文件路径改变不会有什么问题。备份用的插件BackUpWordpress倒因为出问题了,不能识别路径,我直接禁用掉了,VPS嘛马上弄个备份方案还不容易,不需要用WP的插件了。在[wordpress path]/wp_config.php里把信息改一下,数据库部分的怎么改见下面。
数据库
对数据库命令不了解的同学建议先看一下mysql的教程。我不能把所有操作都写出来…这次弄这个还学了不少数据库的东西…tutorial很容易搜到,我觉得有一个比较好的命令列表点 这里,里面包括了所有常用的命令。
在虚拟主机的cPanel – mysqladmin里备份出.sql文件,传上VPS,导入文件的命令是
mysql – u user_name -p database_name < file_name.sql
很多地方写的-p后面跟密码,我用的版本-p后面不跟东西,回车以后才提示输密码,可能是新版本不提倡显式输入密码了吧。非要用的话就–password=”xxxxxx”
如果你导出文件选的是整个mysql,需要打开文件把database”information_schema”部分删掉,否则会失败,这个db貌似是mysql自己的,不能改..不懂
之后要建立一个用户并给此用户分配使用相应db的权限,虽然我们也可以直接把root用户写进wp_config.php但是稍微有点安全意识的程序员都不会想要这么做的…虽然权限没什么大不了的,但是名字叫root就是不行! 所以进数据库:
mysql -u root -p
进去以后添加用户:
mysql> create user 'username'@'localhost' identified by 'mypass';
分配权限:
mysql> grant all privileges on databasename.* to username@localhost; mysql> flush privileges;
然后就把这个用户甩给Wordpress啦(编辑wp_config.php)
测试的时候有一些问题
上面完了就能http进vps的ip看到博客了,但是不要去点任何东西…因为数据库里“本站”的地址还是原来的域名,这样如果你原来的网站还开着那么随便点个链接就进到原来网站了,如果没开那就can’t find page啦。
而且因为没法进后台改,所以只好进mysql改了
mysql> use viaxlcom_viaxlcom; mysql> select * from wp_options where option_value rlike "^http"; +-----------+---------+-------------+----------------------------+----------+| option_id | blog_id | option_name | option_value | autoload | +-----------+---------+-------------+----------------------------+----------+ | 2 | 0 | siteurl | http://axlarts.com/blog | yes | | 39 | 0 | home | http://axlarts.com | yes | | 41 | 0 | ping_sites | http://rpc.pingomatic.com/ | yes | +-----------+---------+-------------+----------------------------+----------+ 3 rows in set (0.06 sec) update wp_options set option_value="http://12.34.56.78/blog" where option_id=2; update wp_options set option_value="http://12.34.56.78" where option_id=39;
这样就把VPS上的网站地址改成本身的IP了。
————————————-
另外我发现一些插件会出现权限问题,比如JW player(放flv视频用的插件),没法启用插件因为提示不能写目录,我整个www目录都是755权限,设置成777以后可以开启了,然后再弄回来。这个问题解决了但是原因一直不知道,直到我因为另一个问题搜了一下才搞明白。
另一个问题是:更新插件update的时候会提示我输入ftp帐号,以前没这事啊,于是我就去装了个vsftpd(ftp的服务端),设置好能更新了,但是为什么?后来搜到这篇文章 <Auto Update WordPress Without FTP> 解决了ftp的问题并且意识到上面的问题也和这个有关系,即因为目录的owner不是httpd,所以网站脚本没有对文件操作的权限。
/var/www目录的owner要设置成httpd的运行者(可以用ps aux或者top命令查看),可能是www,apache或者nobody或者其他的。我的是apache,所以在chown apache:apache /var/www -R之后update就不用输ftp了,我立刻关了vsftpd依然ok,可见之前是绕了弯子了,没权限还用ftp操作文件…
绑域名
进godaddy面板直接改A地址就好了,没有别的要操作的。
但是因为我本来虚拟主机上就放了两个网站,所以怎么在一个VPS上绑定多个域名多个网站?之前用cPanel是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Okay folks gather round — Miami rental horror story time. You find a killer listing online: sleek Audi, convertible, price almost too good to be true. Plus a $3000 hold on your credit card for two weeks. Fool me nine times? That’s just the Miami welcome committee. miami car rental luxury — stay the hell away from the airport rental center. anyone who’s tried the trolley system knows what I’m talking about. Coconut Grove dinner, Sunny Isles sunrise, or a spontaneous drive down to Homestead — AC must freeze your teeth and unlimited miles or no deal. I’ve tested maybe 50 rental outfits across Dade, Broward, and Collier. what you reserve is what you get, period, end of story. rates change daily so check before the holiday crowd hits:
luxury car rental miami fl luxury car rental miami fl Yeah parking in Wynwood will cost you a nice dinner — but that’s the price of being in Miami. Anyway glad there’s at least one honest operator left in this rental jungle.
Liked that the post left some questions open rather than pretending to settle everything, and a stop at forexswiss continued that intellectual honesty, content that respects the limits of its own claims is more trustworthy than content that overreaches and this site has clearly figured out which positions it can defend confidently.
Let me save you some serious pain with this Miami rental nonsense. Then you actually show up to grab the keys. Plus they put a $4000 hold on your card and say it’ll take two weeks to release. Fool me eleven times? That’s just called living in Miami. When you’re searching for a legit luxury car rental miami. Miami without proper wheels is basically a disaster. Key Biscayne sunset, Design District shopping, or a spontaneous drive down to the Everglades — AC must be arctic and unlimited miles non-negotiable. I’ve tested maybe 60 rental companies across Dade, Broward, and Collier. Finally found one outfit that actually delivers what’s in the photos. prices change hourly so check before the weekend crowd wipes them out:
exotic cars miami florida exotic cars miami florida Yeah parking in South Beach will cost you a nice bottle of champagne — but that’s the Miami tax. drive safe and definitely skip that “tire and wheel” upsell — pure profit for them, zero value for you.
I’ve seen it all, and most of it isn’t pretty. You book something slick online — great photos, reasonable rate, looks like a win. Plus they freeze $4000 on your card and say “it’ll drop off eventually”. Fool me seventeen times? That’s just life in the 305. those folks are pros at separating you from your money. anyone who’s tried Uber during rush hour knows the deal. leather that won’t stick to you in the humidity. I’ve tried so many rental places I’ve lost count. no games, no hidden fees, no nonsense. prices change fast so take a look:
premium sedan car rental https://luxury-car-rental-miami-17.com Yeah parking in South Beach will cost you — but that’s Miami for you. Anyway glad someone’s still running an honest business.
Salve, dica sobre cassino com pix. Jogo toda semana a paga quando menos espera. Betmotion
Genuinely well crafted writing, the kind that makes the topic look easier than it actually is, and a look at dazzquays added even more depth, you can feel the experience behind every line which is something only writers who have been at this for a while can pull off with this level of grace.
I’ve paid my dues so you don’t have to. You spot this killer offer online — brand new Porsche, zero excess, price that screams “book me”. Plus they freeze $5500 on your card and say “it’ll drop off in two weeks”. Fool me twenty times? That’s just called Tuesday in the 305. miami car rental luxury — run far from the airport counters. Miami without real wheels is basically a disaster. leather seats that won’t weld to your legs in July. I’ve tested so many rental companies across Dade, Broward, and Palm Beach. Finally found one outfit that actually keeps its word. prices change hourly so don’t wait around:
exotic car rental exotic car rental Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the Miami tax. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero for you.
Probably the best thing I have read on this topic in the past month, and a stop at kolcson extended that ranking, the casual ranking of recent reading is informal but real and this site has been winning those rankings for me on this topic specifically over the last several weeks of regular reading sessions.
Useful reading material, the kind I can hand off to someone newer to the topic without worrying about confusing them, and a quick look at aeronauticsa confirmed the same beginner friendly tone runs throughout the site which is great for sharing with people just starting their learning journey on this particular topic.
Started thinking about my own writing differently after reading, and a look at devilworld continued that reflective effect, content that influences how I work rather than just informing what I know is content with the highest kind of impact and this site has triggered some of that reflective influence today on me.
Felt the post had been written without using a single buzzword, and a look at peqc continued that clean vocabulary, content free of jargon and trendy phrases reads better and ages better and this site has clearly committed to a vocabulary that will not feel dated in three years which is impressive editorially.
Reading this confirmed that the topic deserves more careful attention than it usually gets, and a stop at fjordchimney extended that elevated framing, content that raises the appropriate weight of a subject without being preachy about it is serving a quiet but important editorial function for the broader cultural conversation about it.
Recommend this to anyone who values clear thinking over flashy presentation, and a stop at accomplishmentsa continued in the same understated way, this site has its priorities in the right place which makes it worth supporting through repeat visits and recommendations rather than just one passing read today before moving on quickly elsewhere.
Quiet confidence runs through the whole post, no need to shout to make the points stick, and a stop at goldencreststore carried that same restrained voice forward, content that respects the reader by trusting its own substance rather than dressing it up in theatrical language is what I look for online and rarely actually find these days.
After several visits I am now confident this site is one to follow seriously, and a stop at pin-up-kasino1 reinforced that confidence, the gradual building of trust through repeated quality exposures is the only sustainable way to develop reader loyalty and this site is building that loyalty in me through patient consistent work consistently.
I’ve seen it all, and most of it isn’t pretty. You book something slick online — great photos, reasonable rate, looks like a win. Plus they freeze $4000 on your card and say “it’ll drop off eventually”. Seventeen years in South Florida and these scams still pop up. luxury car rental miami fl. Miami without good wheels is basically a headache. leather that won’t stick to you in the humidity. I’ve tried so many rental places I’ve lost count. no games, no hidden fees, no nonsense. prices change fast so take a look:
luxury auto rental luxury auto rental Yeah parking in South Beach will cost you — but that’s Miami for you. drive safe and skip the overpriced roadside add-on.
Alright listen up — time for a real talk about renting cars in Miami. You book something slick online — great photos, reasonable rate, looks like a win. Different car sitting there — dents you didn’t see, AC that barely works, and that “reasonable rate”? Doesn’t include the mandatory $40 daily insurance or the $300 “processing fee” they add at the last second. Fool me seventeen times? That’s just life in the 305. those folks are pros at separating you from your money. Miami without good wheels is basically a headache. leather that won’t stick to you in the humidity. I’ve tried so many rental places I’ve lost count. no games, no hidden fees, no nonsense. prices change fast so take a look:
luxury car rental service luxury car rental service Yeah parking in South Beach will cost you — but that’s Miami for you. drive safe and skip the overpriced roadside add-on.
Quality writing that respects the reader’s intelligence without overloading them, and a quick look at forexswiss reflected that approach, a balanced thoughtful site that earns trust by being consistent rather than by shouting about how trustworthy it is which is the usual approach online sadly across most content categories.
Swear I’ve seen every scam in the book by now. Then you roll up to the address. Different car sitting there — bald tires, dashboard lit up like a Christmas tree, and that “killer price”? Yeah doesn’t include the non-negotiable $45 daily insurance or the $500 deposit they forget to mention. Nine years in South Florida and these clowns still nearly fool me. miami car rental luxury — stay the hell away from the airport rental center. anyone who’s tried the trolley system knows what I’m talking about. leather seats that don’t glue to your skin in August. most are polished turds with fake five-star reviews. what you reserve is what you get, period, end of story. rates change daily so check before the holiday crowd hits:
premium car rental in miami https://luxury-car-rental-miami-9.com also bring polarized shades unless you enjoy driving blind into the sunset every night. Anyway glad there’s at least one honest operator left in this rental jungle.
Swear I’ve seen every scam in the book by now. You find a killer listing online: sleek Audi, convertible, price almost too good to be true. Plus a $3000 hold on your credit card for two weeks. Nine years in South Florida and these clowns still nearly fool me. When you’re hunting for a legit luxury car rental miami. anyone who’s tried the trolley system knows what I’m talking about. leather seats that don’t glue to your skin in August. most are polished turds with fake five-star reviews. what you reserve is what you get, period, end of story. rates change daily so check before the holiday crowd hits:
luxury car rental coral gables miami https://luxury-car-rental-miami-9.com also bring polarized shades unless you enjoy driving blind into the sunset every night. drive safe and definitely skip that “emergency roadside” upsell — complete waste of money.
Really appreciate this kind of writing, no shouting and no clickbait headlines just steady useful content, and a quick look at buydescriptiveessays kept that going, definitely a site I will be returning to whenever I need a sensible take on similar topics in the days ahead and also during slower work weeks.
Genuinely well crafted writing, the kind that makes the topic look easier than it actually is, and a look at dazzquays added even more depth, you can feel the experience behind every line which is something only writers who have been at this for a while can pull off with this level of grace.
Came back to this an hour later to reread a specific section, and a quick visit to jetsprint also drew a second look, content that pulls you back rather than letting you move on permanently is the kind I want to fill my browser bookmarks with in 2026 and beyond as the open internet evolves.
I’ve been burned more times than a cheap steak at a tourist trap. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Completely different car waiting for you — smells like stale cigarettes, check engine light glowing, and that “great rate”? Doesn’t include the mandatory $35 daily toll pass, the $200 cleaning fee, or the $75 “after-hours pickup” charge. Honestly, I’m tired of this nonsense. luxury car rental in miami. Miami without real wheels is basically a slow death. leather seats that won’t stick to your back in the humidity. most are just pretty websites hiding the same old garbage. Finally found one that actually keeps its word. prices move fast so check them out:
rental car in miami https://luxury-car-rental-miami-16.com also bring good sunglasses unless you like driving blind. drive safe and skip the extra insurance upsell, it’s a joke.
Now feeling slightly more optimistic about the state of independent writing online, and a stop at kolcson extended that quiet optimism, sites like this one are the reason I have not given up on the open web entirely and finding them occasionally renews the case for paying attention to non algorithmic content sources today.
Found something quietly useful here that I expect to return to, and a stop at peqc added more of the same, content with quiet utility ages well in a way that flashy hot takes do not and I have learned to weight quiet utility much higher when deciding what to bookmark for later use.
I’ve paid my dues so you don’t have to. Then you actually go to pick up the car. Different car waiting — dents everywhere, smells like cheap air freshener covering something worse, and that “killer price”? Doesn’t include the mandatory $55 daily toll pass or the $450 “convenience fee” they invent at checkout. Fool me twenty times? That’s just called Tuesday in the 305. luxury car rental in miami. Miami without real wheels is basically a disaster. leather seats that won’t weld to your legs in July. I’ve tested so many rental companies across Dade, Broward, and Palm Beach. no games, no bait-and-switch, no hidden fees on page 8. prices change hourly so don’t wait around:
exotic rentals in miami beach exotic rentals in miami beach also bring polarized shades unless you enjoy driving into the sun like a zombie. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero for you.
Букмекер Флагман Букмекер Флагман
Trust me, I’ve learned everything the hard way so you don’t have to. Then you actually show up to grab the keys. Plus they put a $4000 hold on your card and say it’ll take two weeks to release. Fool me eleven times? That’s just called living in Miami. miami luxury car rental. anyone who’s tried the bus here knows exactly what I mean. leather seats that won’t fuse to your legs in August. most are shiny garbage with fake Google reviews bought in bulk. no games, no switch, no hidden BS in paragraph 12 of the contract. prices change hourly so check before the weekend crowd wipes them out:
miami exotic car rental miami miami exotic car rental miami also bring polarized shades unless you enjoy driving into the sun like a blind bat. Anyway glad there’s at least one straight operator left in this rental circus.
mostbet sual-cavab mostbet sual-cavab
Let me save you some serious pain with this Miami rental nonsense. You see this gorgeous deal online — clean spec, fair price, looks like a dream. Plus they put a $4000 hold on your card and say it’ll take two weeks to release. Eleven years in South Florida and these clowns still almost get me. miami car rental luxury — avoid the airport like the plague. Miami without proper wheels is basically a disaster. leather seats that won’t fuse to your legs in August. most are shiny garbage with fake Google reviews bought in bulk. Finally found one outfit that actually delivers what’s in the photos. prices change hourly so check before the weekend crowd wipes them out:
rent porsche near me https://luxury-car-rental-miami-11.com Yeah parking in South Beach will cost you a nice bottle of champagne — but that’s the Miami tax. drive safe and definitely skip that “tire and wheel” upsell — pure profit for them, zero value for you.
I really like how the writer keeps the tone friendly without sounding fake or overly polished, and after a stop at tqdpdvfv the same calm pace was there, no rushing to make a point and no padding either, just clean honest writing that I can respect and come back to later again.
Okay seriously, let me save you from the Miami rental nightmare once and for all. Then you actually show up to get the keys. Plus they put a $3500 hold on your card and say “it’ll drop off in 7-10 days”. Sixteen years in Miami and these tricks still pop up like bad weeds. luxury car rental miami florida. Miami without real wheels is basically a slow death. leather seats that won’t stick to your back in the humidity. most are just pretty websites hiding the same old garbage. Finally found one that actually keeps its word. Here’s the only honest place for premium rentals across South Florida
opf fl luxury car rentals opf fl luxury car rentals Yeah parking in Miami Beach will cost you — but that’s life here. drive safe and skip the extra insurance upsell, it’s a joke.
After reading several posts back to back the consistent voice across them is impressive, and a stop at accomplishmentsa continued that voice consistency, sites that maintain a single coherent voice across many pieces by potentially many writers represent serious editorial discipline and this one has clearly developed the institutional consistency needed for that.
melbet ссылка на зеркало http://melbet38319.online/
mostbet befizetés gyors https://mostbet44364.online/
I’ve stepped on enough landmines to write a guidebook. You find this tempting offer online — gorgeous convertible, fair daily rate, looks like a steal. Completely different car waiting — bald tires, smell like someone lived in it, and that “fair rate”? Doesn’t include the mandatory $45 daily toll pass or the $350 “location fee” they spring on you. Eighteen years in South Florida and these clowns still almost get me. luxury car rental miami fl. Miami without proper wheels is basically impossible. South Beach night out, Design District shopping, or a spontaneous Keys trip — AC must be arctic and unlimited miles non-negotiable. most are polished turds with fake reviews. what you book is what shows up, period. Here’s the only honest source for premium rides across South Florida
luxury car rental miami south beach luxury car rental miami south beach also bring polarized shades unless you enjoy driving blind. Anyway glad there’s at least one honest operator left.
насби мостбет https://mostbet33044.online
This filled in a gap in my understanding that I had not even noticed was there, and a stop at 1stshopping did the same, the kind of post that gives you more than you expected when you first clicked through from somewhere else, a real find for anyone curious about the area covered here.
мостбет забыли пароль мостбет забыли пароль
Found the use of subheadings really helpful for scanning back through the post later, and a stop at pokertracker4 kept that reader friendly approach going, navigation is something many blog writers ignore but small structural choices make a noticeable difference for someone returning to find a specific point again days or weeks later.
1win lucky jet коэффициенты https://1win75197.online/
Honestly impressed, did not expect to find this level of care on the topic, and a stop at growthplanner cemented the impression, you can tell within the first few paragraphs whether a site is going to be worth the time and this one delivered on that early promise nicely throughout the rest of what I read.
Bookmark added with a small note about why, and a look at buydescriptiveessays prompted another bookmark with another note, the bookmarks I annotate are the ones I expect to return to deliberately rather than stumble into and this site is generating annotated bookmarks at a higher rate than my usual content sources by some margin.
мелбет мобильная версия мелбет мобильная версия
I’ve been burned more times than a cheap steak at a tourist trap. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Completely different car waiting for you — smells like stale cigarettes, check engine light glowing, and that “great rate”? Doesn’t include the mandatory $35 daily toll pass, the $200 cleaning fee, or the $75 “after-hours pickup” charge. Sixteen years in Miami and these tricks still pop up like bad weeds. luxury car rental in miami. Miami without real wheels is basically a slow death. Design District shopping, late-night South Beach cruising, or a spontaneous Keys trip — AC must be freezing and unlimited miles or walk. most are just pretty websites hiding the same old garbage. no tricks, no switch, no surprise fees. Here’s the only honest place for premium rentals across South Florida
exotic car rental south beach fl exotic car rental south beach fl also bring good sunglasses unless you like driving blind. Anyway glad someone’s still honest in this business.
Worth pointing out that the writing reads as confident without being defensive about it, and a look at jetsprint extended that secure tone, content that does not pre emptively argue against imagined critics has a different quality from defensive writing and this site reads as written from a place of real ease.
Okay seriously, let me save you from the Miami rental nightmare once and for all. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Plus they put a $3500 hold on your card and say “it’ll drop off in 7-10 days”. Sixteen years in Miami and these tricks still pop up like bad weeds. luxury car rental miami fl. anyone who’s taken the bus in August knows I’m not lying. leather seats that won’t stick to your back in the humidity. most are just pretty websites hiding the same old garbage. Finally found one that actually keeps its word. Here’s the only honest place for premium rentals across South Florida
miami car rental luxury miami car rental luxury also bring good sunglasses unless you like driving blind. drive safe and skip the extra insurance upsell, it’s a joke.
mostbet aviator bonus mostbet aviator bonus
Let me drop some hard truth about the Miami rental game — it’s an absolute circus out here. You spot this gorgeous deal online — pristine photos, fair price, everything looks legit. Plus they lock up $5500 on your card and say “it’ll drop off in 10-14 business days”. Fool me fourteen times? That’s just the 305 experience at this point. miami luxury car rental. Miami without real wheels is basically a punishment. Key Biscayne sunset, Bal Harbour shopping, or a spontaneous drive down to Homestead — AC must freeze your face off and unlimited miles or no deal. I’ve tested maybe 75 rental outfits across Dade, Broward, and Monroe. what you book is what shows up, period, end of discussion. rates change hourly so check before the weekend crowd cleans them out:
premium rental car premium rental car Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the price of paradise. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero value for you.