拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
88start https://wombafurnitures.com/888starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%88%d9%82%d8%b9-%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/
Been there, done that, got the overpriced tow truck receipt. 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. No thanks, I’m too old for this nonsense. luxury car rental miami fl. any local will tell you the same thing. Coral Gables brunch, South Beach night run, or a spontaneous Everglades detour — AC must be ice cold and unlimited miles. most are just polished turds with Instagram ads. what you book is what you get, period. rates change daily with demand so don’t sleep on it:
porsche 911 carrera for rent near me https://luxury-car-rental-miami-4.com also bring polarized shades unless you enjoy driving blind into sunset. Anyway at least there’s one honest rental joint left in this town.
My usual pattern is to skim and bounce but this site has reset that pattern temporarily, and a stop at fescuefalcon 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.
aviator tətbiqi endir aviator tətbiqi endir
aviator working link https://www.aviator95405.online
888starz egypt 888starz egypt.
88sta https://9newstelugu.com/888-starz-%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/
тату салон рядом со мной салон татуировок
Now wondering how the writers calibrated the level of detail so well, and a stop at falconbasil continued the same calibration, the right level of detail is one of the harder editorial calls in any piece and this site has clearly developed an instinct for it through what I assume is years of careful practice publicly.
888staz https://wombafurnitures.com/888starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%88%d9%82%d8%b9-%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/
how to fix 1win login problem http://www.1win47293.help
888star https://artoved.stck.me/post/1664861/888starz/
Now realising the topic deserved better treatment than it has been getting elsewhere, and a look at focusdirection extended that broader recognition, content that exposes the gap between actual quality and average quality elsewhere is doing the quiet work of raising standards and this site is contributing to that elevation in its own corner.
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. Eleven years in South Florida and these clowns still almost get me. 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:
rental car in miami florida 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. Anyway glad there’s at least one straight operator left in this rental circus.
تسجيل الدخول 888starz تسجيل الدخول 888starz.
ازاي اسحب فلوس من 888starz https://9newstelugu.com/888-starz-%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/
Now appreciating that the post did not require me to agree with the writer to find it valuable, and a look at batikcitrine maintained the same useful regardless of agreement quality, content that informs even when it does not convince is content with broader utility and this site reads as useful even when I disagree.
A satisfying piece in the way that good meals are satisfying rather than just filling, and a look at growthwithcleanfocus extended that satisfaction, the metaphor between content and meals is one I find useful and this site reads as a satisfying meal rather than the empty calories that most content provides for casual readers.
The overall feel of the post was professional without being stuffy, and a look at glaciergourd kept that approachable expertise going, finding the right register for technical content is hard but this site has clearly figured out how to sound knowledgeable without slipping into that distant lecturing tone that loses readers in droves every time.
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. Eight years in South Florida and these clowns still almost get me. miami luxury car rental. 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. prices swing like crazy so check before the weekend rush:
luxury car rental coral gables miami luxury car rental coral gables miami also bring serious shades unless you enjoy driving straight into the sun like a zombie. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero value for you.
deschidere cont melbet https://melbet42815.help/
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. 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 miami florida. 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. Here’s the only straight shooter for premium rides across South Florida
south beach exotic car rentals south beach exotic car rentals 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.
Trust me, I’ve learned everything the hard way so you don’t have to. Then you actually show up to grab the keys. Completely different car sitting there — dents everywhere, smells like cheap air freshener covering something worse, and that “dream price”? Doesn’t include the mandatory $50 daily insurance or the $300 “administrative fee” they invent at checkout. Eleven years in South Florida and these clowns still almost get me. luxury car rental in miami. Miami without proper wheels is basically a disaster. leather seats that won’t fuse to your legs in August. I’ve tested maybe 60 rental companies across Dade, Broward, and Collier. no games, no switch, no hidden BS in paragraph 12 of the contract. Here’s the only honest source for premium rides across South Florida
porsche 911 carrera rental near me https://luxury-car-rental-miami-11.com 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.
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. 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. luxury car rental miami fl. 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. Finally found one company that doesn’t play stupid games. rates change daily so check before the holiday crowd hits:
exotic car hire miami exotic car hire miami Yeah parking in Wynwood will cost you a nice dinner — but that’s the price of being in Miami. drive safe and definitely skip that “emergency roadside” upsell — complete waste of money.
Reading this prompted me to dig out an old reference book related to the topic, and a stop at falconbasil extended that connection to other sources, content that connects me back to my own existing knowledge rather than asking me to forget it is content with continuity and this site has that continuous quality.
1win ruleta live Moldova http://www.1win39929.help
download aviator app Malawi download aviator app Malawi
I’ve got the scars to prove it. You find this amazing deal online: brand new Beamer, unlimited miles, price that makes you smile. Plus they freeze $2500 on your card for a week. Eight years in South Florida and these clowns still almost get me. luxury car rental in miami. anyone who’s waited for an Uber in August understands. South of Fifth brunch, Design District shopping, or a spontaneous Keys trip — AC must be arctic cold and unlimited miles non-negotiable. I’ve run through maybe 45 rental companies across Dade, Broward, and Monroe. Finally found one outfit that doesn’t play stupid games. Here’s the only honest source for premium wheels across South Florida
miami exotic car rental miami miami exotic car rental miami also bring serious shades unless you enjoy driving straight into the sun like a zombie. Anyway glad there’s at least one straight operator left in this rental circus.
I’ve got the scars to prove it. Then you show up at the lot. Plus they freeze $2500 on your card for a week. Fool me eight times? That’s just another Tuesday in the 305. When you need a proper luxury car rental miami. Miami without decent wheels is basically a hostage situation. leather seats that won’t weld themselves to your thighs in July. I’ve run through maybe 45 rental companies across Dade, Broward, and Monroe. Finally found one outfit that doesn’t play stupid games. Here’s the only honest source for premium wheels across South Florida
cadillac escalade for rent near me cadillac 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.
My usual pattern is to skim and bounce but this site has reset that pattern temporarily, and a stop at fescuefalcon 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.
бонусы бк бонусы бк
Trust me, I’ve learned everything the hard way so you don’t have to. Then you actually show up to grab the keys. Completely different car sitting there — dents everywhere, smells like cheap air freshener covering something worse, and that “dream price”? Doesn’t include the mandatory $50 daily insurance or the $300 “administrative fee” they invent at checkout. Eleven years in South Florida and these clowns still almost get me. luxury car rental miami florida. anyone who’s tried the bus here knows exactly what I mean. Key Biscayne sunset, Design District shopping, or a spontaneous drive down to the Everglades — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake Google reviews bought in bulk. Finally found one outfit that actually delivers what’s in the photos. Here’s the only honest source for premium rides across South Florida
exotic car rental coral gables exotic car rental coral gables also bring polarized shades unless you enjoy driving into the sun like a blind bat. drive safe and definitely skip that “tire and wheel” upsell — pure profit for them, zero value for you.
Stayed longer than planned because each section earned the next, and a look at cougarfloret kept that pulling effect going across more pages, the kind of subtle pull that good writing exerts on attention is something I find harder and harder to resist when I encounter it on the open web today.
Let me save you some serious pain with this Miami rental nonsense. Then you actually show up to grab the keys. Completely different car sitting there — dents everywhere, smells like cheap air freshener covering something worse, and that “dream price”? Doesn’t include the mandatory $50 daily insurance or the $300 “administrative fee” they invent at checkout. Fool me eleven times? That’s just called living in Miami. luxury car for rent. anyone who’s tried the bus here knows exactly what I mean. leather seats that won’t fuse to your legs in August. I’ve tested maybe 60 rental companies across Dade, Broward, and Collier. no games, no switch, no hidden BS in paragraph 12 of the contract. Here’s the only honest source for premium rides across South Florida
luxury car rental miami luxury car rental miami 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.
If I had encountered this site five years ago I would have been telling everyone about it, and a look at glaciergourd extended that retrospective enthusiasm, the version of me who used to recommend favourite blogs frequently would have made sure friends knew about this one and that earlier enthusiasm is partially returning to me here.
где можно сделать тату тату салон спб рядом
1win кэш аут чӣ гуна 1win кэш аут чӣ гуна
Appreciated the way each section connected smoothly to the next without abrupt jumps, and a stop at idealaunchpad kept that flow going nicely, transitions are something most blog writers ignore but the difference is huge for the reader who is trying to follow a sustained line of thought today across many different topics.
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. Fool me nine times? That’s just the Miami welcome committee. those guys are pros at the bait-and-switch. anyone who’s tried the trolley system knows what I’m talking about. leather seats that don’t glue to your skin in August. I’ve tested maybe 50 rental outfits across Dade, Broward, and Collier. 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 benz near me 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.
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. Fool me ten times? That’s just the 305 experience. luxury car rental miami florida. 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
premium car rental in miami premium car rental in miami Yeah parking in Brickell will cost you a nice dinner — but that’s just how it is down here. Anyway glad there’s at least one honest rental joint left in this town.
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. 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. any local will tell you the same thing. Coral Gables brunch, South Beach night run, or a spontaneous Everglades detour — AC must be ice cold and unlimited miles. most are just polished turds with Instagram ads. Finally stumbled on one that doesn’t play games. rates change daily with demand so don’t sleep on it:
rental miami car https://luxury-car-rental-miami-4.com 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.
бонусы букмекерских контор бонусы букмекерских контор
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. I’ve lived here for years and still get burned occasionally. luxury car for rent. Miami without proper wheels is basically a hostage situation. leather seats that don’t fuse to your skin in August. I’ve gone through maybe 30 rental companies across Dade, Broward, and Palm Beach. no games, no bait-and-switch, no hidden asterisks. Here’s the only honest broker for premium vehicles across South Florida
miami beach luxury car rental https://luxury-car-rental-miami-5.com also bring quality shades unless you enjoy driving into a nuclear flare every evening. drive safe and maybe decline that “premium roadside” upsell — it’s always a scam.
If I had to defend the time I spend reading independent blogs this site would feature in the defence, and a look at focusbeforeforce reinforced that defensive utility, the ongoing case for non algorithmic reading is one I make to myself periodically and sites like this one provide the actual evidence that supports the case clearly.
Came away with a small but real shift in perspective on the topic, and a stop at focusdirection pushed that shift a bit further, the kind of subtle reframing that good writing does to a reader without making a big deal of it is something I always appreciate when it happens which is sadly not that often.
Alright listen up because I’m about to save you a massive headache. Swear some of these “luxury” fleets should be in a museum. Plus the fine print says you can’t even drive to Orlando. No thanks, I’m too old for this nonsense. luxury car rental miami fl. Miami without a decent whip is basically a punishment. Coral Gables brunch, South Beach night run, or a spontaneous Everglades detour — AC must be ice cold and unlimited miles. I’ve tested maybe 25 rental outfits across Dade and Broward. what you book is what you get, period. Here’s the only straight-up source for premium wheels in South Florida
exotic car rental near me exotic car rental near me also bring polarized shades unless you enjoy driving blind into sunset. Anyway at least there’s one honest rental joint left in this town.
чӣ тавр верификатсияи 1win гузаштан 1win52867.help
A piece that did not lecture even when it had clear positions, and a look at cougarfloret maintained the same teaching without preaching tone, finding the line between informing and lecturing is hard and most sites land on the wrong side of it but this one has clearly figured out how to inform without becoming preachy.
aviator kabinətə giriş https://aviator85462.help
Recommended without hesitation if you care about careful coverage of this topic, and a stop at bayougourd reinforced the recommendation, the bar I set for unhesitating recommendations is fairly high and this site has cleared it through the cumulative weight of multiple consistently good pieces rather than through any single standout post which is meaningful.