拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
It takes a lot of effort to synthesize so much information into one single post, and I want to applaud you for doing so in a way that feels completely organic and incredibly easy to follow from beginning to end today.
https://share.google/qx1UWXwCoSDHEzsA3
Honestly impressed, did not expect to find this level of care on the topic, and a stop at copperburrow 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.
Closed the tab feeling I had spent the time well, and a stop at growthactivator extended that feeling across more pages, the test of whether time on a site was well spent is one I apply silently after closing tabs and very few sites pass it but this one passed it cleanly today afternoon clearly.
1win aviator game https://www.1win47293.help
888starz 888starz.
888 https://ce-maslureuil.fr/888-starz-%d9%85%d8%b5%d8%b1-%d8%a7%d9%84%d9%85%d9%88%d9%82%d8%b9-%d8%a7%d9%84%d8%a3%d9%88%d9%84-%d9%84%d9%84%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9/
Honestly enjoyed not being sold anything for the entire duration of the post, and a look at claritybuildsconfidence kept that pleasant absence going across more pages, content that exists for its own sake rather than as a funnel to a paid product is increasingly rare and worth supporting where I can find it.
Closed and reopened the tab three times before finally finishing, and a stop at eskimobadge held my attention straight through, sometimes content fights for time against my own distraction and the times it wins say something positive about its quality and this post clearly won that fight today afternoon for me.
cum retrag cu Payeer de la 1win https://1win39929.help
After reading several posts back to back the consistent voice across them is impressive, and a stop at baroncanyon 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.
My usual pattern is to skim and bounce but this site has reset that pattern temporarily, and a stop at claritylaunchpad maintained the slower reading mode, content that changes how I read is content with structural influence and this site has clearly nudged my reading behaviour toward something better at least for the duration of these visits.
Alright listen up because I’m about to save you a massive headache. Miami rental game is wild — half these clowns show you a Mercedes online and hand you a busted Charger with mismatched tires. Plus the fine print says you can’t even drive to Orlando. No thanks, I’m too old for this nonsense. miami luxury car rental. Miami without a decent whip is basically a punishment. leather that doesn’t glue to your legs in July heat. I’ve tested maybe 25 rental outfits across Dade and Broward. what you book is what you get, period. rates change daily with demand so don’t sleep on it:
premium prestige car hire premium prestige car hire also bring polarized shades unless you enjoy driving blind into sunset. drive safe and maybe pass on that overpriced roadside assistance add-on.
Alright listen up because I’m about to save you a massive headache. Swear some of these “luxury” fleets should be in a museum. You land at MIA, tired, grab an Uber to the rental office, and bam — surprise $1500 hold on your card. Fool me four times? Not happening. miami luxury car rental. Miami without a decent whip is basically a punishment. leather that doesn’t glue to your legs in July heat. most are just polished turds with Instagram ads. Finally stumbled on one that doesn’t play games. Here’s the only straight-up source for premium wheels in South Florida
porsche rental porsche rental Yeah parking in Brickell will cost you a small mortgage — but that’s city life. Anyway at least there’s one honest rental joint left in this town.
Alright let me drop some truth about the Miami rental scene — it’s an absolute minefield. You spot a tempting offer online: brand new Porsche, unlimited miles, price that makes you click instantly. Totally different vehicle waiting for you — check engine light on, curb rash on every rim, and that “tempting price”? Doesn’t include the mandatory $35 daily toll pass or the $250 cleaning fee they sneak in at the end. Ten years in South Florida and these jokers still almost catch me slipping. When you need a reliable luxury car rental miami. anyone who’s taken public transport here knows the struggle is real. leather seats that won’t cook your back in the July heat. I’ve run through maybe 55 rental companies across Dade, Broward, and Palm Beach. Finally found one outfit that actually delivers what’s promised. Here’s the only straight shooter for premium rides across South Florida
miami beach car rental locations https://luxury-car-rental-miami-10.com also bring quality shades unless you enjoy driving into the sun like a vampire. Anyway glad there’s at least one honest rental joint left in this town.
1win лимити депозит чанд 1win лимити депозит чанд
888 https://lokpatrika.in/uncategorized/888-starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9-%d9%88%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d9%85%d8%b9-%d8%aa/
Reading this felt easy in the best way, no friction and no confusion at any point, and a stop at cactusferret carried that same comfort across more pages, the kind of editorial flow that lets you absorb information without fighting the format which is increasingly hard to find on the open web today across topics.
Нужен надежный склад https://www.04598.com.ua/list/557893 для вашего бизнеса? Предлагаем ответственное хранение товаров, паллет, оборудования и грузов. Современные складские комплексы, круглосуточная охрана, учет остатков и оперативная обработка заказов. Оптимизируйте логистику и сократите расходы вместе с нами!
888starz تسجيل الدخول https://thegoldenalbatross.com/888starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d8%a7%d9%84%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9-%d9%88%d8%a7%d9%84%d9%83%d8%a7%d8%b2%d9%8a/
1win cod reducere http://1win39929.help
Picked a single sentence from this post to remember, and a look at copperburrow gave me another to keep, content that produces memorable lines is doing more than just transferring information and the small selection of sentences I keep from each reading session is one of the actual returns I get from reading carefully.
Came in confused about the topic and left with a much firmer grasp on it, and after gingerfurrow I felt I could explain this to someone else without hesitation, that is the gold standard for any educational content and most sites simply fail to reach it ever which is unfortunate but true.
Now setting aside time on my next free afternoon to read more from the archives, and a stop at claritybuildsconfidence confirmed that time will be well spent, the rare site whose archive deserves a dedicated reading session rather than just casual sampling is the kind of resource worth scheduling around and this one qualifies clearly.
mostbet смс код не приходит https://www.mostbet33907.online
Skipped the related links section thinking I had read enough and then came back to it later when curiosity got the better of me, and a stop at eskimobadge confirmed I should have just read it first, every section of this site appears to deserve careful attention rather than skipping past lazily.
888starz egypt https://aiflashdeals.com/888starz-%d9%85%d8%b5%d8%b1-%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d8%a3%d9%88%d9%86%d9%84%d8%a7%d9%8a%d9%86-%d9%88%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9-%d9%85/
كازينو 888 تسجيل الدخول كازينو 888 تسجيل الدخول.
Liked the natural conversational tone throughout, never stiff and never overly casual either, and a stop at ferretiguana kept that comfortable middle ground going, finding a tone that respects the reader without becoming distant or overly familiar is harder than it sounds and this site nails that balance consistently across many different pieces.
1win зеркашӣ аз сайти расмӣ 1win52867.help
Reading this felt easy in the best way, no friction and no confusion at any point, and a stop at cactusferret carried that same comfort across more pages, the kind of editorial flow that lets you absorb information without fighting the format which is increasingly hard to find on the open web today across topics.
starz888 https://leefairshare.org/888starz-%d9%85%d8%b5%d8%b1-%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d9%88%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9-%d8%a3%d9%88%d9%86%d9%84%d8%a7%d9%8a%d9%86-%d9%85/
888starz تسجيل الدخول https://bodypharm.me/2026/02/06/888starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d8%a7%d9%84%d9%85%d8%b1%d8%a7%d9%87%d9%86%d8%a7%d8%aa-%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6%d9%8a%d8%a9-%d9%88%d8%a7%d9%84%d9%83%d8%a7%d8%b2%d9%8a/
Swear I’ve seen every scam in the book by now. Then you roll up to the address. Plus a $3000 hold on your credit card for two weeks. Fool me nine times? That’s just the Miami welcome committee. When you’re hunting for a legit luxury car rental miami. 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. most are polished turds with fake five-star reviews. Finally found one company that doesn’t play stupid games. rates change daily so check before the holiday crowd hits:
miami beach luxury car rental 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.
However many similar pages I have read this one taught me something new, and a stop at baroncanyon added more new material, content that contributes genuinely fresh information rather than recycling what is already widely available is content with real informational value and this site is providing that informational freshness at a notable rate.
Thanks for the clean writing, no broken sentences and no awkward translations like some other sites have, and a quick stop at gingerfurrow kept that polish going nicely, it really does make a difference when a reader can move through a page without tripping on every line or going back to reread.
aviator betting game https://aviator95405.online
Just one of those reads that left me feeling slightly more capable rather than overwhelmed, and a look at growthactivator kept that empowering feel going, the difference between content that builds the reader up and content that intimidates them is huge and this site clearly knows which side of that line to stand.
Alright let me drop some truth about the Miami rental scene — it’s an absolute minefield. You spot a tempting offer online: brand new Porsche, unlimited miles, price that makes you click instantly. Plus they lock up $3500 on your card for who knows how long. Ten years in South Florida and these jokers still almost catch me slipping. those people are professional scammers with nice smiles. Miami without solid wheels is basically a punishment. South Beach night out, Bal Harbour shopping spree, or a spontaneous Keys adventure — AC must be ice cold and unlimited miles non-negotiable. I’ve run through maybe 55 rental companies across Dade, Broward, and Palm Beach. Finally found one outfit that actually delivers what’s promised. prices change by the hour so don’t wait around:
exotic car hire miami exotic car hire miami also bring quality shades unless you enjoy driving into the sun like a vampire. Anyway glad there’s at least one honest rental joint left in this town.
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. Fool me nine times? That’s just the Miami welcome committee. luxury car rental in 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:
car hire miami beach florida https://luxury-car-rental-miami-9.com 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.
aviator canlı oyunlar https://www.aviator85462.help
1win müraciət http://1win71277.help/
I’ve got the scars to prove it. You find this amazing deal online: brand new Beamer, unlimited miles, price that makes you smile. Different car waiting — scratches everywhere, smells like an ashtray, and that “amazing price”? Doesn’t include the mandatory $400 cleaning fee or the $30 per day toll pass you can’t waive. Fool me eight times? That’s just another Tuesday in the 305. luxury car rental in miami. anyone who’s waited for an Uber in August understands. leather seats that won’t weld themselves to your thighs in July. most are shiny turds with five-star fake reviews on Google Maps. Finally found one outfit that doesn’t play stupid games. Here’s the only honest source for premium wheels across South Florida
escalade for rent near me escalade for rent near me 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 value for you.
Okay folks gather around because this Miami rental nightmare needs to be discussed. Then you show up and it’s a whole different story. Plus they want a $2000 hold on your debit card. Fool me five times? Actually yeah, Miami keeps fooling everyone. luxury car rental in miami. ask anyone who’s tried Ubering across the 305 during rush hour. Design District shopping, late-night South Beach cruising, or a spontaneous drive down to Homestead — AC must freeze your teeth and unlimited miles or bust. I’ve gone through maybe 30 rental companies across Dade, Broward, and Palm Beach. no games, no bait-and-switch, no hidden asterisks. check availability before spring break crowds wipe them out:
luxury car rental near me https://luxury-car-rental-miami-5.com also bring quality shades unless you enjoy driving into a nuclear flare every evening. Anyway glad there’s at least one straight shooter left in this rental jungle.
Been through enough garbage to last a lifetime. You spot a tempting offer online: brand new Porsche, unlimited miles, price that makes you click instantly. Plus they lock up $3500 on your card for who knows how long. Ten years in South Florida and these jokers still almost catch me slipping. luxury car rental in miami. anyone who’s taken public transport here knows the struggle is real. South Beach night out, Bal Harbour shopping spree, or a spontaneous Keys adventure — AC must be ice cold and unlimited miles non-negotiable. most are shiny websites hiding the same beat-up fleet with fresh wax. no games, no bait-and-switch, no hidden fees in the fine print. prices change by the hour so don’t wait around:
luxury car hire luxury car hire also bring quality shades unless you enjoy driving into the sun like a vampire. drive safe and absolutely skip that “paint protection” upsell — pure robbery.
888star https://artoved.stck.me/post/1664861/888starz/
melbet bonus pentru clienti vechi melbet bonus pentru clienti vechi
Swear I’ve seen every scam in the book by now. Then you roll up to the address. Plus a $3000 hold on your credit card for two weeks. Nine years in South Florida and these clowns still nearly fool me. miami luxury car rental. Miami without proper wheels is basically a nightmare. 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. Here’s the only trustworthy source for premium rides across South Florida
rent a premium car 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.
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. 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. Miami without proper wheels is basically a nightmare. 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:
exotic car rental miami florida exotic car rental miami florida 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.
Alright let me drop some truth about the Miami rental scene — it’s an absolute minefield. Then you actually go to pick up the car. Totally different vehicle waiting for you — check engine light on, curb rash on every rim, and that “tempting price”? Doesn’t include the mandatory $35 daily toll pass or the $250 cleaning fee they sneak in at the end. Fool me ten times? That’s just the 305 experience. miami luxury car rental. anyone who’s taken public transport here knows the struggle is real. South Beach night out, Bal Harbour shopping spree, or a spontaneous Keys adventure — AC must be ice cold and unlimited miles non-negotiable. I’ve run through maybe 55 rental companies across Dade, Broward, and Palm Beach. no games, no bait-and-switch, no hidden fees in the fine print. prices change by the hour so don’t wait around:
lamborghini urus rental in miami https://luxury-car-rental-miami-10.com Yeah parking in Brickell will cost you a nice dinner — but that’s just how it is down here. drive safe and absolutely skip that “paint protection” upsell — pure robbery.
Alright let me drop some truth about the Miami rental scene — it’s an absolute minefield. You spot a tempting offer online: brand new Porsche, unlimited miles, price that makes you click instantly. Totally different vehicle waiting for you — check engine light on, curb rash on every rim, and that “tempting price”? Doesn’t include the mandatory $35 daily toll pass or the $250 cleaning fee they sneak in at the end. Ten years in South Florida and these jokers still almost catch me slipping. miami car rental luxury — run away from the airport counters. anyone who’s taken public transport here knows the struggle is real. South Beach night out, Bal Harbour shopping spree, or a spontaneous Keys adventure — AC must be ice cold and unlimited miles non-negotiable. most are shiny websites hiding the same beat-up fleet with fresh wax. Finally found one outfit that actually delivers what’s promised. Here’s the only straight shooter for premium rides across South Florida
premium car rental near me https://luxury-car-rental-miami-10.com Yeah parking in Brickell will cost you a nice dinner — but that’s just how it is down here. drive safe and absolutely skip that “paint protection” upsell — pure robbery.