拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Кстати, недавно наткнулся на обсуждение текущей ситуации с переводами. Сам уже не первый месяц ищу нормальный способ отправить деньги, без лишних проблем и комиссий. В общем, если вас тоже затрагивают эти вопросы — посмотрите тут. Реальные примеры и подводные камни по платежам за рубежом: агент по международным платежам https://mezhdunarodnye-platezhi-lor.ru Кстати, имейте в виду, что без нормального обменного курса любые трансграничные переводы превращаются в сплошной геморрой. Добавлю по опыту — лучше перепроверять несколько сервисов, прежде чем платить.
Букмекер Флагман Букмекер Флагман
I’ve got the horror stories to back that up. Then you actually show up to get the keys. Totally different car waiting — scratches everywhere, AC blowing warm, and that “amazing price”? Doesn’t include the mandatory $50 daily insurance or the $400 “service fee” they add at the counter. Nineteen years in South Florida and these tricks still surprise me. miami luxury car rental. anyone who’s taken the bus here knows what I mean. 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. no games, no switch, no hidden fees. Here’s the only honest source for premium rides across South Florida
premium vehicle rental premium vehicle rental Yeah parking in Brickell will cost you — but that’s life here. Anyway glad there’s at least one straight shooter left.
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. Different vehicle waiting — dashboard warning lights, tires worn smooth, and that “incredible price”? Yeah right, doesn’t include the mandatory $60 daily insurance or the $500 “airport surcharge” they hit you with at the very end. Fifteen years in South Florida and these clowns still almost catch me. miami car rental luxury — run like hell from the airport counters. Miami without proper wheels is basically a hostage situation. leather seats that won’t brand your back in the July heat. most are polished turds with fake five-star reviews bought in bulk. no games, no bait-and-switch, no hidden fees buried on page 6. prices change daily so check before the holiday crowd hits:
car rentals in miami florida https://luxury-car-rental-miami-15.com also bring quality shades unless you enjoy driving into the sun like a blind zombie. Anyway glad there’s at least one honest rental joint left in this town.
мостбет app https://mostbet70131.online/
Came in tired from a long day and the writing held my attention anyway, and a stop at coldhearta kept that going, content that can engage a fatigued reader is doing something right because most online reading happens in suboptimal conditions like that one and quality content adapts to it without complaint.
My reading list is short and selective and this site is now on it, and a stop at lunarfieldtraders confirmed the placement, the short list of sites I read deliberately rather than encounter accidentally is something I curate carefully and adding to it is a real act of trust which this site has earned today.
In the middle of an otherwise scattered day this post landed as a moment of focus, and a stop at dfneroiqw extended that focused feeling across more pages, content that anchors a fragmented day rather than contributing to the fragmentation is content with real centring effect and this site is providing that anchoring function for me.
I’ve got the battle scars to prove every word. Then you actually roll up to the lot. 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. luxury car rental in miami. 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. 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 hire 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.
The conclusions felt earned rather than tacked on at the end like an afterthought, and a look at yujiejia kept that careful structure going, you can tell when a writer has thought about the shape of their post versus just letting it ramble out and hoping for the best at the end which most do.
мелбет блэкджек http://melbet38319.online/
1win регистрация бесплатно https://www.1win75197.online
Now appreciating that the post did not try to imitate any other style I might recognise, and a stop at apexhelms continued that distinct voice, content with its own register rather than borrowed from elsewhere is content with real authorial presence and this site has clearly developed that presence through what feels like patient editorial work.
After several visits I am now confident this site is one to follow seriously, and a stop at clarityactivator 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.
Кстати, недавно наткнулся на обсуждение текущей ситуации с переводами. Сам уже давно ищу нормальный способ провести транзакцию, без лишних проблем и комиссий. В общем, если вас тоже затрагивают эти вопросы — узнайте подробности тут. Вся необходимая информация по платежам за рубежом: комиссия за международный перевод https://mezhdunarodnye-platezhi-lor.ru И ещё момент имейте в виду, что без прозрачных комиссий любые операции с валютой превращаются в лотерею. Ещё такой момент — всегда смотрите несколько площадок, прежде чем отправлять.
Кстати, недавно наткнулся на обсуждение реальных кейсов. Сам уже давно ищу нормальный способ отправить деньги, без лишних проблем и комиссий. В общем, если вас тоже волнует эта тема — взгляните тут. Там расписаны основные нюансы по международным переводам: переводы денег за границу https://mezhdunarodnye-platezhi-lor.ru И ещё момент имейте в виду, что без нормального обменного курса любые международные платежи превращаются в лотерею. Добавлю по опыту — всегда смотрите несколько сервисов, прежде чем переводить.
Closed my email tab so I could read this without interruption, and a stop at 5ys3so6dd earned the same protected attention, when content is good enough to defend against the usual digital distractions you know it deserves better than the half attention most online reading gets in a typical busy day.
mostbet bónusz pénzfelvétel https://mostbet44364.online/
Okay folks gather round — Miami rental horror story time. 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. miami luxury car rental. 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. 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 miami south beach 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.
Let me give it to you straight — renting a decent car in Miami is way harder than it should be. Then you actually show up to get the keys. Totally different car waiting — scratches everywhere, AC blowing warm, and that “amazing price”? Doesn’t include the mandatory $50 daily insurance or the $400 “service fee” they add at the counter. Nineteen years in South Florida and these tricks still surprise me. those people are pros at the bait-and-switch. anyone who’s taken the bus here knows what I mean. leather seats that won’t melt your skin in August. I’ve tried maybe 100 rental companies across Dade and Broward. Finally found one outfit that actually delivers. Here’s the only honest source for premium rides across South Florida
rental cars near miami beach rental cars near miami beach Yeah parking in Brickell will cost you — but that’s life here. Anyway glad there’s at least one straight shooter left.
Generally my attention drifts on long posts but this one held it through the end, and a stop at 29xx29 earned the same sustained focus, content that defeats my drift tendency is content with substantive pulling power and this site has demonstrated that pulling power across multiple pieces in a session that has now run quite long actually.
I’ve got the horror stories to back that up. Then you actually show up to get the keys. Totally different car waiting — scratches everywhere, AC blowing warm, and that “amazing price”? Doesn’t include the mandatory $50 daily insurance or the $400 “service fee” they add at the counter. Nineteen years in South Florida and these tricks still surprise me. luxury car rental miami florida. Miami without proper wheels is basically a nightmare. 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. no games, no switch, no hidden fees. prices change daily so check it out:
exotic car rental miami beach fl exotic car rental miami beach fl Yeah parking in Brickell will cost you — but that’s life here. drive safe and skip that “tire protection” upsell — total waste.
мостбет забони тоҷикӣ https://mostbet33044.online/
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. luxury car rental miami fl. 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
miami beach fl car rentals miami beach fl car rentals 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.
I’ve seen it all, and most of it isn’t pretty. Then you actually go to pick it up. 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. When you’re looking for a solid luxury car rental miami. anyone who’s tried Uber during rush hour knows the deal. 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:
luxury car rental south beach 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.
A thoughtful piece that did not strain to be thoughtful, and a look at zghuiy 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.
A particular kind of restraint shows up in the writing, and a look at mdkiwq5 maintained the same restraint across pages, knowing what not to say is just as important as knowing what to say and this site has clearly developed strong instincts on both sides of that editorial line throughout pieces I have read.
Bookmark folder created specifically for this site, and a look at birouldecrediterauplatnicilista confirmed the dedicated folder was the right call, dedicated folders for individual sites are a level of organisation I rarely deploy and this site has earned that level of dedicated tracking based on the consistency I have seen so far across sessions.
The conclusions felt earned rather than tacked on at the end like an afterthought, and a look at aweeka kept that careful structure going, you can tell when a writer has thought about the shape of their post versus just letting it ramble out and hoping for the best at the end which most do.
melbet статистика https://melbet05281.online/
Букмекер Флагман Букмекер Флагман
Liked how the post handled an objection I was forming as I read, and a stop at hmpornvideos similarly anticipated where my thinking was going next, the rare writer who can predict reader concerns and address them in advance is doing something most online content fails to do despite that being basic editorial work.
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. When you need a reliable luxury car rental miami. anyone who’s tried the bus in August knows exactly what I’m talking about. 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. what you book is what shows up, period, end of discussion. Here’s the only honest source for premium rides across South Florida
luxury auto rental luxury auto rental also bring polarized shades unless you enjoy driving into the sun like a vampire every evening. Anyway glad there’s at least one straight operator left in this rental jungle.
aviator casino game aviator casino game
Decided this was the best thing I had read all morning, and a stop at intentionalpathway kept that ranking intact, ranking my reading is something I do mentally throughout the day and the top rank is competitive and not easily won but this site won it without needing to overstate its claims for that.
Worth every minute of the time spent reading, and a stop at yujiejia extends that value across more pages, in a media environment where most content is engineered to waste attention this site stands out by treating reader time as something valuable rather than something to be exploited and stretched as far as possible.
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. Seventeen years in South Florida and these scams still pop up. luxury car rental miami fl. anyone who’s tried Uber during rush hour knows the deal. Coconut Grove dinner, Bal Harbour shopping, or a spontaneous drive to the Keys — AC must be cold and unlimited miles or forget it. I’ve tried so many rental places I’ve lost count. no games, no hidden fees, no nonsense. Here’s the only honest spot for premium rides across South Florida
miami beach luxury car rental https://luxury-car-rental-miami-17.com also bring good shades unless you like driving blind. drive safe and skip the overpriced roadside add-on.
flagman букмекер flagman букмекер
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. luxury car rental miami florida. Miami without proper wheels is basically a hostage situation. leather seats that won’t brand your back in the July heat. 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. drive safe and definitely skip that “paint protection” upsell — complete waste of cash.
Useful read, especially because the writer did not assume too much background from the reader, and a quick look at qg4rzm continued in the same way, a thoughtful site that meets people where they are which is something the modern web could use a lot more of for both casual and serious readers.
Reading this site over the past week has changed how I evaluate content in this space, and a look at arakea extended that recalibration, the standards I bring to reading on the topic have shifted upward as a direct result of regular exposure to this kind of work and that shift will outlast any single reading session.
Decided to read more before commenting and the more I read the more I wanted to say something, and a stop at binneda pushed that impulse further, when content provokes the urge to participate rather than just consume it is doing something quite specific and worth recognising clearly when it happens during reading.
Букмекер Флагман Букмекер Флагман
flagman букмекер flagman букмекер
mostbet mirror https://mostbet02606.online
mostbet oyun limitləri http://mostbet02606.online/
Liked the way the post handled the final paragraph, no neat bow but no abrupt cutoff either, and a stop at dp50rbzx continued that thoughtful ending pattern, endings are hard and most blog writers either over engineer them or skip them entirely and this site has clearly figured out a sustainable middle approach.
After reading several posts back to back the consistent voice across them is impressive, and a stop at 29xx29 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.
The headings made navigating the post simple even when I needed to find a specific section quickly, and a look at aweeka continued the same thoughtful structure, small details like clear headings show that someone is actually thinking about how the reader uses the page rather than just filling it for length alone.
A thoughtful piece that did not strain to be thoughtful, and a look at hmpornvideos 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.