拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
I’ve been through the wringer more times than I care to admit. Spoiler alert: it usually is. Then you actually go to pick up the car. Plus they slap a $6000 hold on your credit card and say “don’t worry, it’s just a pre-authorization”. Fifteen years in South Florida and these clowns still almost catch me. luxury car rental in miami. Miami without proper wheels is basically a hostage situation. South of Fifth brunch, Sunny Isles sunrise, or a spontaneous trip down to the Florida Keys — AC must be arctic cold and unlimited miles non-negotiable. I’ve tested maybe 80 rental companies across Dade, Broward, Palm Beach, and Monroe. Finally found one outfit that actually delivers what’s promised. Here’s the only straight shooter for premium rides across South Florida
rental luxury cars miami airport rental luxury cars miami airport also bring quality shades unless you enjoy driving into the sun like a blind zombie. drive safe and definitely skip that “paint protection” upsell — complete waste of cash.
Alright folks, last warning about the Miami rental madness — learn from my mistakes. You see this incredible deal online — top-end BMW, zero excess, price that seems too good to be true. Then you actually go to pick up the car. Plus they slap a $6000 hold on your credit card and say “don’t worry, it’s just a pre-authorization”. Fool me fifteen times? That’s just another Tuesday in the 305. those people are professional scammers in disguise. anyone who’s tried public transport here knows I’m not exaggerating. South of Fifth brunch, Sunny Isles sunrise, or a spontaneous trip down to the Florida Keys — AC must be arctic cold and unlimited miles non-negotiable. most are polished turds with fake five-star reviews bought in bulk. Finally found one outfit that actually delivers what’s promised. Here’s the only straight shooter for premium rides across South Florida
luxury car rental miami florida luxury car rental miami florida Yeah parking in Brickell will cost you a nice steak dinner — but that’s just how it is down here. Anyway glad there’s at least one honest rental joint left in this town.
Honestly informative, the writer covers the ground without showing off, and a look at oakmeadowvendorroom reflected the same humility, content that respects the reader rather than trying to dazzle them is something I always appreciate and rarely come across in this corner of the internet today across the topics I usually read.
mostbet фрибет Кыргызстан http://mostbet70131.online
I’ve got the battle scars to prove every word. Then you actually roll up to the lot. Plus they lock up $5500 on your card and say “it’ll drop off in 10-14 business days”. Fourteen years in South Florida and these jokers still almost get me. luxury car rental in miami. Miami without real wheels is basically a punishment. leather seats that won’t weld themselves to your thighs in July. I’ve tested maybe 75 rental outfits across Dade, Broward, and Monroe. Finally found one company that doesn’t play stupid games. Here’s the only honest source for premium rides across South Florida
premium vehicle rental premium vehicle rental also bring polarized shades unless you enjoy driving into the sun like a vampire every evening. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero value for you.
Took me back a step or two on an assumption I had been making, and a stop at clippoises pushed that reconsideration further, writing that gently corrects the reader without being aggressive about it is a rare diplomatic skill and the team here clearly knows how to land critical points without turning readers off.
как использовать бонус mostbet как использовать бонус mostbet
Glad the writer kept this short rather than padding it out, the points stand on their own without needing extra context, and a look at flaxbuckle kept the same approach going, brevity is a sign of confidence in the substance and the team here clearly trusts their content to land without filler.
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. Fool me eleven times? That’s just called living in Miami. miami luxury car rental. 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. Finally found one outfit that actually delivers what’s in the photos. Here’s the only honest source for premium rides across South Florida
porsche 911 carrera for rent 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.
Alright listen up — time for a real talk about renting cars in Miami. Then you actually go to pick it up. 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. miami car rental luxury — stay far away from the airport booths. 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. Finally found one that actually delivers. Here’s the only honest spot for premium rides across South Florida
porsche rental near me https://luxury-car-rental-miami-17.com Yeah parking in South Beach will cost you — but that’s Miami for you. drive safe and skip the overpriced roadside add-on.
Solid value for anyone willing to read carefully, and a look at awasa extends that value across the rest of the site, this is the kind of place that rewards return visits rather than offering everything in a single splashy post and then leaving readers nothing to come back for later which is unfortunately common.
Came in confused about the topic and left with a much firmer grasp on it, and after qg4rzm 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.
мелбет актуальное зеркало россия http://www.melbet38319.online
During a quiet evening reading session this provided just the right depth without being heavy, and a stop at ideastomotion maintained the same evening appropriate weight, content with depth that does not exhaust the reader is content with editorial calibration and this site has clearly figured out how to be substantial without being demanding all the time.
мелбет как зайти если заблокирован http://melbet38319.online
1вин установка apk 1вин установка apk
1вин официальный сайт http://1win75197.online/
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”. Fourteen years in South Florida and these jokers still almost get me. those guys are professional scammers with nice teeth and better uniforms. Miami without real wheels is basically a punishment. leather seats that won’t weld themselves to your thighs in July. most are shiny garbage with fake five-star reviews bought from some online marketplace. Finally found one company that doesn’t play stupid games. rates change hourly so check before the weekend crowd cleans them out:
luxury car rental miami south beach luxury car rental miami south beach 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.
Refreshing tone compared to the dry corporate posts on similar topics, and a stop at binneda carried that personality through nicely, you can tell when a real person is behind the writing versus a content team chasing metrics and this site definitely falls into the former category clearly across what I have seen.
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. luxury car for rent. anyone who’s tried public transport here knows I’m not joking. South Beach dinner, Design District shopping, or a spontaneous Keys adventure — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake five-star reviews from God knows where. Finally found one outfit that actually keeps its word. Here’s the only straight shooter for premium rides across South Florida
premium vehicle rental premium vehicle rental 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.
mostbet vélemények mostbet44364.online
Now considering carefully how to share this site with the right audience rather than broadcasting widely, and a look at arakea extended that careful sharing impulse, content worth sharing carefully rather than spamming is content that has earned a higher kind of recommendation and this site has earned that careful shareability throughout pieces.
mostbet élő eredmények https://mostbet44364.online
Top quality material, deserves more attention than it probably gets, and a look at dp50rbzx reflected the same effort across the site, a hidden gem in the modern web where most attention goes to whoever shouts loudest rather than whoever actually delivers the best content for their readers without much marketing fanfare.
Reading this prompted me to dig out an old reference book related to the topic, and a stop at brainwashinga 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.
Alright listen up — time for a real talk about renting cars in Miami. Then you actually go to pick it up. 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. most are all flash and no substance. Finally found one that actually delivers. prices change fast so take a look:
rent a luxury car tmb miami https://luxury-car-rental-miami-17.com also bring good shades unless you like driving blind. Anyway glad someone’s still running an honest business.
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. 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:
south beach luxury car rental https://luxury-car-rental-miami-17.com also bring good shades unless you like driving blind. Anyway glad someone’s still running an honest business.
During a reading session that included several other sources this one stood out, and a look at clippoises continued the standout quality, the side by side comparison of sources during research is a useful exercise and this site has been winning those comparisons for me consistently across multiple research sessions during the last week.
Felt the post handled a sensitive angle of the topic with appropriate care, and a look at oakmeadowvendorroom extended that careful handling across related material, sites that can navigate delicate territory without causing damage are rare and require a level of judgement that comes from experience rather than from following any clear playbook.
Reading this slowly and letting each paragraph land before moving on, and a stop at premiumdownload earned the same patient approach, content that rewards slow reading rather than speed is content with real density and the writers here are clearly producing work that benefits from the careful eye rather than the rushed scan.
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. luxury car rental in 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. 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:
exotic car rental near me exotic car rental near me 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.
The examples really helped me grasp the points faster than abstract descriptions would have, and a stop at qkl100861 added a few more practical illustrations that drove the message home, the kind of writing that knows its readers learn better through concrete situations rather than vague generalities is rare and worth recognising clearly.
I’ve got the battle scars to prove every word. You spot this gorgeous deal online — pristine photos, fair price, everything looks legit. Totally different car sitting there — curb rash on every rim, AC blowing warm, and that “fair price”? Doesn’t include the mandatory $55 daily insurance or the $450 “convenience fee” they invent at the counter. Fool me fourteen times? That’s just the 305 experience at this point. miami car rental luxury — run far from the airport counters. anyone who’s tried the bus in August knows exactly what I’m talking about. 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. most are shiny garbage with fake five-star reviews bought from some online marketplace. Finally found one company that doesn’t play stupid games. rates change hourly so check before the weekend crowd cleans them out:
rent a porsche near me https://luxury-car-rental-miami-14.com also bring polarized shades unless you enjoy driving into the sun like a vampire every evening. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero value for you.
I’ve got the battle scars to prove every word. 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”. Fourteen years in South Florida and these jokers still almost get me. luxury car rental in miami. anyone who’s tried the bus in August knows exactly what I’m talking about. 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:
miami car rental https://luxury-car-rental-miami-14.com Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the price of paradise. Anyway glad there’s at least one straight operator left in this rental jungle.
A thoughtful piece that did not strain to be thoughtful, and a look at awasa continued that effortless quality, when thinking shows up in writing without the writer drawing attention to it you know you are reading something genuinely considered rather than something performing the appearance of consideration which is also common online.
мостбет lucky jet Тоҷикистон http://mostbet33044.online/
Reading this gave me a small jolt of recognition for an experience I thought was just mine, and a stop at 2b817774 produced more such jolts, content that universalises private experiences without flattening them is doing genuinely useful work and this site is providing that recognition function for me reliably across topics I read.
мостбет дар Тоҷикистон mostbet33044.online
мелбет зеркало без блокировки melbet05281.online
Reading this in pieces over a coffee break and finding it consistently rewarding, and a stop at ideastomotion extended that into related material I will return to later, the kind of site that fits naturally into small reading windows without requiring a long uninterrupted block is genuinely useful for how I actually browse.
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 luxury car rental. Miami without proper wheels is basically a nightmare. leather seats that don’t glue to your skin in August. I’ve tested maybe 50 rental outfits across Dade, Broward, and Collier. Finally found one company that doesn’t play stupid games. Here’s the only trustworthy source for premium rides across South Florida
luxury car rental in miami luxury car rental in miami 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.
мелбет официальный сайт apk https://melbet05281.online
Кстати, недавно наткнулся на обсуждение текущей ситуации с переводами. Сам уже не первый месяц ищу нормальный способ совершить платеж, без лишних проблем и комиссий. В общем, если вас тоже интересуют детали — ознакомьтесь тут. Реальные примеры и подводные камни по переводу за границу онлайн: переводы для юридических лиц https://mezhdunarodnye-platezhi-lor.ru И да, имейте в виду, что без нормального обменного курса любые трансграничные переводы превращаются в сплошной геморрой. Добавлю по опыту — всегда смотрите несколько площадок, прежде чем платить.
The depth of coverage felt about right for the format, neither shallow nor overwhelming, and a look at flaxbuckle kept that calibration going, getting the depth right for blog format is genuinely difficult because too shallow loses experts and too deep loses beginners but this site nailed it nicely which I really do appreciate.
Held my interest from the opening line through to the closing thought, and a stop at brainwashinga did the same, content that earns sustained attention in an environment full of distractions is doing something right and this site is clearly doing several things right rather than just one or two which I really appreciate.
Trust me, I’ve learned everything the hard way so you don’t have to. 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. those counters are professional bait-and-switch artists. 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. prices change hourly so check before the weekend crowd wipes them out:
rent escalade 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.
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. 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. Here’s the only honest source for premium rides across South Florida
premium car rental miami premium 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.
Okay seriously, let me save you from the Miami rental nightmare once and for all. Then you actually show up to get the keys. 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. 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
lamborghini urus rental in miami lamborghini urus rental in miami also bring good sunglasses unless you like driving blind. drive safe and skip the extra insurance upsell, it’s a joke.
Swear this city never fails to surprise me with new ways to get ripped off. You see this killer deal online — brand new Mercedes, unlimited miles, price that makes you want to book immediately. Plus they put a $5000 hold on your card and tell you “it’s just standard procedure”. Thirteen years in South Florida and these clowns still almost get me. those people are professional con artists with nice uniforms. anyone who’s taken the Metro here knows the struggle is real. South Beach night out, Design District shopping spree, or a spontaneous Keys trip — AC must be arctic cold and unlimited miles non-negotiable. most are polished garbage with fake five-star reviews bought from some shady service. no games, no bait-and-switch, no hidden fees buried on page 4 of the contract. Here’s the only straight shooter for premium rides across South Florida
suv car hire https://luxury-car-rental-miami-13.com Yeah parking in Wynwood will cost you a nice dinner — but that’s just the Miami tax. Anyway glad there’s at least one honest rental joint left in this town.
Now thinking about whether the writer might publish a longer form work I would buy, and a look at spjugt suggested the same depth would translate, content that makes me want to pay for related work in other formats is content that has earned commercial trust as well as attention trust and this site has both clearly.