拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
aviator qeydiyyat səhifəsi http://www.aviator85462.help
I’ve got the scars to prove it. 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. Fool me eight times? That’s just another Tuesday in the 305. luxury car rental miami florida. 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 suv rental miami luxury suv rental miami 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.
1win бк 1win бк
A satisfying piece in the way that good meals are satisfying rather than just filling, and a look at ferrethopper 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.
как играть в plinko mostbet как играть в plinko mostbet
1вин барномаи расмӣ https://1win52867.help
Will recommend this to a couple of friends who have been asking about this exact topic, and after baronbarley I have even more reason to do so, the kind of site that earns word of mouth rather than chasing it through aggressive marketing or paid placements is always a treat to find online.
Quietly enthusiastic about this site after the past few hours of reading, and a stop at floraridgecraftcollective extended that enthusiasm, the calibration of enthusiasm to evidence is something I try to maintain and this site has earned a calibrated quiet enthusiasm rather than the loud excitement that usually fades within a day or two of finding something.
Really grateful for content like this, it does not waste my time and it does not insult my intelligence either, and a quick look at eskimoarbor was the same, balanced respectful writing that makes a person feel welcome rather than rushed through pages of forced engagement just to keep clicking around.
Worth recognising that this site does not chase the daily news cycle, and a stop at condorferret confirmed the longer publication arc, sites that resist the pressure to comment on every passing event are sites with genuine editorial discipline and this one has clearly chosen depth over volume which I respect deeply.
Felt this in a way I cannot quite explain, the topic just hit different here, and a stop at ideasneedpathways continued in that vein, sometimes you find a site whose perspective lines up with how you have been thinking and reading their work feels like a small relief which I appreciated more than I expected.
Most blog writing on this subject reaches for the same handful of arguments and this post avoided them, and a look at claritychannel continued the original treatment, content that finds its own path through territory other writers have flattened is content with real authorial energy and this site has plenty of that distinctive energy.
888starz التسجيل 888starz التسجيل.
1win бк 1win бк
Really like that the writer trusts the reader to follow simple logic without restating every previous point, and a stop at hedgecattail kept that respect going, treating an audience as capable adults rather than as people who need constant hand holding makes a noticeable difference in the reading experience for me.
88starz 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/
A slim post with substantial content per word, and a look at buttecanoe maintained the same density, the content per word ratio is something I track informally and this site scores high on that ratio compared to most sources I read regularly which is a quiet indicator of careful editorial work behind the scenes.
1win conectare cu facebook https://www.1win39929.help
1win depunere Neteller 1win depunere Neteller
Liked how the post handled an objection I was forming as I read, and a stop at geyserdenim 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.
888statz 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/
A genuine compliment to the writer for keeping the post focused on what mattered, and a look at eskimoarbor continued that disciplined focus, focus is a editorial choice that compounds across many small decisions and this site has clearly made those small decisions consistently across what I have read so far this week here.
I’ve got the scars to prove it. 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. those guys are professional grifters in polo shirts. 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. most are shiny turds with five-star fake reviews on Google Maps. 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
south beach exotic car rentals south beach exotic car rentals Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the Miami tax. Anyway glad there’s at least one straight operator left in this rental circus.
8.8 starz 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/
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. I’ve lived here for years and still get burned occasionally. luxury car rental in miami. ask anyone who’s tried Ubering across the 305 during rush hour. leather seats that don’t fuse to your skin in August. most are smoke and mirrors with decent SEO. Finally found one outfit that actually delivers what’s in the listing. check availability before spring break crowds wipe them out:
south beach exotic car rentals 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.
استارز888 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/
Anyone curious about this topic would do well to start here, the foundation laid is solid, and a stop at ideasneedpathways would round out their understanding nicely, this is the kind of resource I would point a friend toward without hesitation if they asked me where to begin learning about anything in this area.
Started reading skeptically because the headline seemed overconfident, and the post earned the headline by the end, and a look at ferrethopper continued that pattern of earning its claims, sites that can back up their headlines without overpromising are rare and this one has clearly developed editorial calibration on that front consistently.
aviator sürətli giriş http://www.aviator85462.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. miami car rental luxury — run far from the airport counters. Miami without decent wheels is basically a hostage situation. South of Fifth brunch, Design District shopping, or a spontaneous Keys trip — AC must be arctic cold and unlimited miles non-negotiable. 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
luxury car rental miami south beach luxury car rental miami south beach 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.
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. I’ve lived here for years and still get burned occasionally. 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. 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
luxury auto rental luxury auto rental 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.
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. Nine years in South Florida and these clowns still nearly fool me. miami luxury car rental. 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:
escalade for rent near me 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.
Liked that the post resisted a sales pitch ending, and a stop at claritylaunchpad maintained the no pitch approach, content that ends without trying to convert me into a customer or subscriber is content that has confidence in its own value and this site is clearly playing the long game on reader trust.
Now sitting with the thoughts the post triggered rather than rushing on to the next thing, and a stop at buttecanoe extended that reflective pause, content that earns time for thought after closing the tab is content of higher value than the merely interesting and this site has clearly produced that lasting effect today.
Просмотр видео https://avtoshop174.ru/product/888-starz-%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/
1вин бк 1вин бк
1win limita varsta Moldova http://www.1win39929.help
Closed my email tab so I could read this without interruption, and a stop at geyserdenim 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.
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. When you genuinely need a proper luxury car rental 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. rates change daily with demand so don’t sleep on it:
luxury vehicle rentals luxury vehicle rentals 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.
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. that’s exactly how they hook you. 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. Here’s the only honest broker for premium vehicles across South Florida
suv rental near me https://luxury-car-rental-miami-5.com 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.
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. I’ve lived here for years and still get burned occasionally. 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. check availability before spring break crowds wipe them out:
miami car rentals https://luxury-car-rental-miami-5.com 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.
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. those guys are professional grifters in polo shirts. Miami without decent wheels is basically a hostage situation. 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
miami beach car rental locations miami beach car rental locations 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.
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. When you need a proper luxury car rental miami. Miami without decent wheels is basically a hostage situation. South of Fifth brunch, Design District shopping, or a spontaneous Keys trip — AC must be arctic cold and unlimited miles non-negotiable. most are shiny turds with five-star fake reviews on Google Maps. what you book is what shows up, no surprises, no fine print nightmares. prices swing like crazy so check before the weekend rush:
rent a porsche near me https://luxury-car-rental-miami-8.com 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.
starz888 https://czb.grafikmk.pl/tsjyl-ldkhwl-l-888starz-stmt-blb-lkzynw-br-lntrnt-fy-msr/
888 888.
888 stars https://tmfashionpath.com/888starz-%d9%85%d8%b5%d8%b1-%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-%d9%88%d8%a7%d8%ac%d9%87%d8%a9/
Brazilian Serie A has been incredibly competitive this year. Chef’s kiss!
бк 1вин бк 1вин
1win бк 1win бк
Been there, done that, got the overpriced tow truck receipt. Swear some of these “luxury” fleets should be in a museum. Plus the fine print says you can’t even drive to Orlando. Fool me four times? Not happening. luxury car for rent. any local will tell you the same thing. leather that doesn’t glue to your legs in July heat. 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:
rental luxury car miami rental luxury car miami 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.