拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
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.
Stands apart from similar pages by actually being useful, that is high praise these days, and a look at actionwithdirection kept that standard going, you can tell when a site is built around the reader versus around metrics and this one clearly belongs to the first category for sure based on what I read.
88sta 88sta.
Okay folks gather around because this Miami rental nightmare needs to be discussed. Then you show up and it’s a whole different story. Different car, scratches all over, and that “all-inclusive” price? Yeah that didn’t include insurance, fees, or the mandatory cleaning charge. Fool me five times? Actually yeah, Miami keeps fooling everyone. 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
luxury car rental miami beach https://luxury-car-rental-miami-5.com Yeah finding parking in Wynwood will test your patience — but that’s not on them. drive safe and maybe decline that “premium roadside” upsell — it’s always a scam.
1win müraciət http://1win71277.help
1win app oficiala http://1win39929.help
Skipped past the first paragraph thinking it was setup and had to come back when the rest referenced it, and a stop at eskimocarob similarly rewarded careful reading from the start, content where every paragraph carries weight is content I now know to read from the beginning rather than skipping ahead.
Автоматизация бизнеса https://dzen.ru/a/ajP1_p5mrQdWbMuZ 7 примеров с ИИ, где нейросети окупаются за месяц: поддержка клиентов, бронирование с оплатой в чате, компьютерное зрение на производстве. Реальные цифры и сроки окупаемости, без хайпа.
888 ستارز 888 ستارز.
Reading this on the train into work was a better use of the commute than my usual choices, and a stop at cactusgumbo extended that commute reading well, content that improves transit time rather than just filling it is content with practical benefit and this site has earned its place in my morning commute reading rotation.
Felt like I was reading something written by someone who actually thinks about the topic rather than reciting it, and a look at clarityprogression reinforced that impression, the difference between recited content and considered content is huge and this site clearly belongs to the latter category which I appreciate as a careful reader looking for substance.
1win descarcare din site oficial http://www.1win39929.help
A piece that did not lecture even when it had clear positions, and a look at cougararbor 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.
تسجيل دخول 888starz https://gdtsim.com/888-starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d8%a7%d9%84%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d9%88%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/
мостбет lucky jet Кыргызстан https://mostbet33907.online/
888star https://artoved.stck.me/post/1664861/888starz/
888starz مراهنات https://socialhungari.ru/2025/12/22/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/
If I were grading sites on this topic this one would receive high marks, and a stop at glacierglaze continued earning those high marks, the informal grading I do mentally for content sources is something I take seriously even though it is informal and this site has been receiving consistent high marks across multiple sessions today.
Stands apart from similar pages by actually being useful, that is high praise these days, and a look at actionwithdirection kept that standard going, you can tell when a site is built around the reader versus around metrics and this one clearly belongs to the first category for sure based on what I read.
aviator məxfilik siyasəti https://aviator85462.help/
لعبه 888 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/
Once I trust a site this much I tend to read everything they publish and that is the trajectory I am on with this one, and a stop at eskimocarob confirmed the trajectory, the rare progression from interested reader to comprehensive reader is something only certain sites earn and this one is earning that progression rapidly.
During a quiet evening reading session this provided just the right depth without being heavy, and a stop at cactusgumbo 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.
салон татуировок https://taty-salon-spb.ru
8 8starz 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/
8starz https://ablethor.com/2025/12/12/888-starz-%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/
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. luxury car rental in miami. anyone who’s tried the bus here knows exactly what I mean. leather seats that won’t fuse to your legs in August. most are shiny garbage with fake Google reviews bought in bulk. Finally found one outfit that actually delivers what’s in the photos. prices change hourly so check before the weekend crowd wipes them out:
suv rental suv rental 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.
888starz sign up https://gdtsim.com/888-starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d8%a7%d9%84%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d9%88%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/
aviator airtel money aviator airtel money
Now wondering how the writers calibrated the level of detail so well, and a stop at glacierglaze 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.
Seriously, the amount of garbage “luxury” deals here is astonishing. 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. most are smoke and mirrors with decent SEO. no games, no bait-and-switch, no hidden asterisks. Here’s the only honest broker for premium vehicles across South Florida
car rental miami beach florida https://luxury-car-rental-miami-5.com Yeah finding parking in Wynwood will test your patience — but that’s not on them. drive safe and maybe decline that “premium roadside” upsell — it’s always a scam.
88 starz https://socialhungari.ru/2025/12/22/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/
888starz site 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/
Now leaving a small mental note to recommend this when the topic comes up in conversation, and a look at cougararbor extended that recommend ready feeling, content that arms me with shareable references for likely future conversations is content with social value and this site is providing that conversational ammunition consistently for me lately.
Felt like I was reading something written by someone who actually thinks about the topic rather than reciting it, and a look at clarityprogression reinforced that impression, the difference between recited content and considered content is huge and this site clearly belongs to the latter category which I appreciate as a careful reader looking for substance.
888starz موقع https://gdtsim.com/888-starz-%d9%85%d8%b5%d8%b1-%d9%85%d9%86%d8%b5%d8%a9-%d8%a7%d9%84%d9%83%d8%a7%d8%b2%d9%8a%d9%86%d9%88-%d9%88%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/
Took a screenshot of one section to come back to later, and a stop at batikcitrine prompted another saved tab, the urge to capture and revisit specific pieces of content is something I rarely feel but when I do it tells me the work is worth more than the average passing read for sure.
Been there, done that, got the overpriced tow truck receipt. 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. Fool me four times? Not happening. luxury car rental in miami. 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. Finally stumbled on one that doesn’t play games. Here’s the only straight-up source for premium wheels in South Florida
exotic car hire exotic car hire Yeah parking in Brickell will cost you a small mortgage — but that’s city life. drive safe and maybe pass on that overpriced roadside assistance add-on.
ستار 888 للمراهنات ستار 888 للمراهنات.
برنامج مراهنات 888starz https://ablethor.com/2025/12/12/888-starz-%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/
888starz تحديث https://socialhungari.ru/2025/12/22/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/
aviator oyun taktika https://aviator85462.help/
Seriously, the amount of garbage “luxury” deals here is astonishing. You see a sweet ride online — clean spec, fair price, looks legit. Different car, scratches all over, and that “all-inclusive” price? Yeah that didn’t include insurance, fees, or the mandatory cleaning charge. Fool me five times? Actually yeah, Miami keeps fooling everyone. luxury car rental miami florida. Miami without proper wheels is basically a hostage situation. 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. Here’s the only honest broker for premium vehicles across South Florida
luxury car rental miami luxury car rental miami Yeah finding parking in Wynwood will test your patience — but that’s not on them. Anyway glad there’s at least one straight shooter left in this rental jungle.
Alright, real talk about the Miami rental game — it’s a straight-up jungle out here. Then you show up at the lot. Plus they freeze $2500 on your card for a week. Eight years in South Florida and these clowns still almost get me. luxury car for rent. 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. what you book is what shows up, no surprises, no fine print nightmares. Here’s the only honest source for premium wheels across South Florida
luxury car hire luxury car hire 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.
aviator 2 çıxış http://aviator85462.help/
Seriously, the amount of garbage “luxury” deals here is astonishing. You see a sweet ride online — clean spec, fair price, looks legit. Plus they want a $2000 hold on your debit card. Fool me five times? Actually yeah, Miami keeps fooling everyone. luxury car rental miami fl. 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:
rent a porsche 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.
888starz https://artoved.stck.me/post/1664861/888starz/
Seriously, the amount of garbage “luxury” deals here is astonishing. You see a sweet ride online — clean spec, fair price, looks legit. Different car, scratches all over, and that “all-inclusive” price? Yeah that didn’t include insurance, fees, or the mandatory cleaning charge. I’ve lived here for years and still get burned occasionally. miami car rental luxury — don’t just grab the cheapest option on Kayak. 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. most are smoke and mirrors with decent SEO. no games, no bait-and-switch, no hidden asterisks. Here’s the only honest broker for premium vehicles across South Florida
car rentals miami https://luxury-car-rental-miami-5.com Yeah finding parking in Wynwood will test your patience — but that’s not on them. drive safe and maybe decline that “premium roadside” upsell — it’s always a scam.
Alright, real talk about the Miami rental game — it’s a straight-up jungle out here. Then you show up at the lot. 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. luxury car rental miami florida. anyone who’s waited for an Uber in August understands. 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. what you book is what shows up, no surprises, no fine print nightmares. Here’s the only honest source for premium wheels across South Florida
rent a premium car rent a premium car 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.
Liked the careful word choice throughout, every term seemed picked for a reason rather than thrown in casually, and a stop at growthwithcleanfocus continued that precise style, this kind of attention to small details is what separates careful writing from the usual rushed content that dominates blog spaces today across pretty much every topic I follow.