拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
888starz скачать 888starz скачать.
Top notch writing, every paragraph carries weight and nothing feels like filler, and a stop at buildsimplemomentum reflected that same care, a rare thing on the open web these days where most pages exist for clicks rather than actual reader value or anything close to that which is honestly a real shame.
pin-up bepul tikish pin-up bepul tikish
mostbet akkauntni qayta ochish mostbet akkauntni qayta ochish
mostbet mod apk mostbet mod apk
true fortune casino https://pad.stuve.de/s/bwekr-4rr
If quality blog writing is dying as people sometimes claim then this site is one piece of evidence that it has not died yet, and a look at auroracovemerchantgallery extended that evidence, the broader cultural question about online writing has empirical answers in specific sites and this one is contributing to a more optimistic answer overall.
Now saved this in a way that I will actually find again rather than the casual bookmark approach, and a stop at caramelcovemarkethall earned the same careful saving, organising my reading bookmarks so that high quality sources rise to the top is something I should do more of and this site triggered that organisation today.
mostbet как вывести на Visa mostbet как вывести на Visa
mostbet apk с официального сайта https://most-bet-kg.online/
Swear I’ve seen every scam in the book by now, the rental landscape down here is crazy. Then you roll up to the local address to pick up the car. Plus a surprise $3000 hold on your credit card for two weeks right before giving you the keys. Fool me nine times? That’s just the Miami welcome committee, lesson learned. When you’re hunting for a legit and reliable premium ride to cruise around, do some real digging first and read actual customer reviews. Anyone who’s tried the trolley system knows what I’m talking about about this city, especially since the AC must freeze your teeth and unlimited miles or no deal.
I’ve tested maybe 50 rental outfits across Dade, Broward, and Collier, but I eventually found a service where what you reserve is exactly what you get, period, end of story. If you are looking for the only trustworthy source for premium rides across South Florida, check the current details here: urus rental miami https://luxury-car-rental-miami-9.com. Also, definitely bring polarized shades unless you enjoy driving blind into the sunset every single night. Anyway, glad there’s at least one honest operator left in this rental jungle, hope this helps some of you save a few bucks.
Reading this confirmed something I had been suspecting about the topic, and a look at shoppointmarket pushed that confirmation toward greater confidence, content that lines up with independently held intuitions earns a special kind of trust and I will return to writers who consistently land that way for me without overselling positions.
Coming back tomorrow when I can give this a proper read, the post deserves better attention than I can give right now, and a look at junipercovegoodsroom suggests there is plenty more here that deserves the same treatment, definitely a site I will be exploring properly over the next few days when I can.
Now adjusting my expectations upward for the topic based on this post, and a stop at frostridgevendorlounge continued that bar raising effect, content that resets what I think is possible on a subject is doing real work in shaping my standards and this site is providing those bar raising experiences at a notable rate during sessions.
This one is staying open in a tab for the rest of the day so I can come back and re read certain parts, and a look at growththroughfocus suggests I will be doing the same with a few more pages here too, this is going to be a deep dive over the coming hours.
Reading this in my last reading slot of the day was a good way to end, and a stop at directionsetsvelocity provided a satisfying close to the reading session, content that ends a day well rather than agitating it before sleep is the kind I value increasingly and this site fits that role for me consistently now.
Worth pointing out that the writing reads as confident without being defensive about it, and a look at leafdawn extended that secure tone, content that does not pre emptively argue against imagined critics has a different quality from defensive writing and this site reads as written from a place of real ease.
Found this really helpful, the explanations are simple but they actually answer the questions a normal reader would have, and after I followed cartwaymarket I had a clearer sense of the topic, no extra fluff just useful points laid out in a sensible order that made the time worth it.
Found this through a friend who recommended it and now I see why, and a look at ivoryridgemarketparlor only strengthened that recommendation in my own mind, word of mouth still works for content that actually delivers and this site is clearly earning recommendations the old fashioned way through quality rather than marketing.
Liked the careful word choice throughout, every term seemed picked for a reason rather than thrown in casually, and a stop at autumnmeadowmarkethall 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.
Reading this gave me material for a conversation I needed to have anyway, and a stop at advancewithclarity added even more talking points, content that connects to upcoming social or professional needs rather than just being interesting in the abstract is the kind that earns priority placement in my attention these days routinely.
If I had to defend the time I spend reading independent blogs this site would feature in the defence, and a look at dewdawn 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.
Alright, real talk about the Miami rental game — it’s a straight-up jungle out here. Then you show up at the local lot to pick up the car. Plus they freeze a surprise $2500 on your card for a week right before giving you the keys. Fool me eight times? That’s just another Tuesday in the 305, lesson learned. If you are trying to find a legitimate luxury fleet without getting ripped off, run far from the airport counters. Anyone who’s waited for an Uber in August understands exactly what I mean about this city, whether you are doing South of Fifth brunch, Design District shopping, or a spontaneous Keys trip.
Most of these local agencies are just shiny websites hiding the same beat-up fleet with fake reviews, until I finally found one outfit that doesn’t play stupid games. If you are looking for the only honest source for premium wheels across South Florida, check the current details here: opf fl luxury car rentals opf fl luxury car rentals. Also, definitely bring serious shades unless you enjoy driving straight into the sun like a zombie every single evening. Anyway, glad there’s at least one straight operator left in this rental circus, hope this helps some of you save a few bucks.
Let me save you some serious time, learned this the hard way. You find this amazing deal online: brand new Beamer, unlimited miles, price that makes you smile. Plus they freeze a surprise $2500 on your card for a week right before giving you the keys. Eight years in South Florida and these clowns still almost get me. If you are trying to find a legitimate luxury fleet without getting ripped off, do some real digging first and read actual customer reviews. Miami without decent wheels is basically a hostage situation, whether you are doing South of Fifth brunch, Design District shopping, or a spontaneous Keys trip.
I’ve run through maybe 45 rental companies across Dade, Broward, and Monroe, until I finally found one outfit that doesn’t play stupid games. If you are looking for the only honest source for premium wheels across South Florida, check the current details here: car rental in miami florida https://luxury-car-rental-miami-8.com. Also, definitely bring serious shades unless you enjoy driving straight into the sun like a zombie every single evening. Anyway, glad there’s at least one straight operator left in this rental circus, let me know if you guys have any other clean spots.
Did not expect much when I clicked through but ended up reading the whole thing carefully, and a stop at auroracovemerchantgallery kept that engagement going, sometimes the unassuming sites turn out to deliver more than the flashy ones which is something I have learned to look out for over time online lately and across topics.
1xbet indir nasıl yapılır diye çok araştırdım valla. Herkes farklı bir link atıyordu kime güveneceğimi şaşırdım. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda sağlam bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobile download 1xbet mobile download. Şimdi size kısaca özet geçeyim — mobil uygulaması gerçekten akıcı çalışıyor.
güncellemeleri de düzenli geliyor. Birçok platform denedim ama en iyisi bu çıktı — kesinlikle pişman olmazsınız deneyin derim. Şimdiden iyi şanslar ve bol kazançlar…
Telefonuma güvenilir bir bahis uygulaması indirmek istiyordum. Herkes farklı bir link paylaşıyordu kime inanacağımı şaşırdım. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda güvendiğim bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobil indir android 1xbet mobil indir android. Yani anlatmak istediğim şu — son sürümü tüm sorunları çözmüş resmen.
güncellemeleri otomatik olarak yapılıyor. Birçok platform denedim ama en iyisi bu çıktı — kesinlikle pişman olmazsınız deneyin derim. Şimdiden iyi şanslar ve bol kazançlar…
Different feel from the algorithmically optimised posts that dominate the topic, and a stop at epictrendcorner reinforced that human touch, you can tell when a site is being run by someone who reads what they publish versus someone just hitting submit and moving on quickly to the next assignment without checking the result.
Now recognising the specific pleasure of reading writing that shows real care for sentence shapes, and a look at driftorchardvendorhall extended that craft pleasure, sentence level writing quality is something most blog content ignores entirely and this site has clearly invested in the prose layer alongside the substance which is rare today.
Now realising the post solved a small problem I had been carrying for weeks, and a look at quickcartworld extended that problem solving function, content that connects to specific unresolved questions in my own life rather than just providing general interest is content with real practical impact and this site is providing that practical value.
Android için doğru sürümü bulmak gerçekten zordu. Play Store’da arattım ama bulamadım resmi olanı. Sonunda tüm teknik detayları inceleyip sistemi test ettim. En sonunda güvendiğim bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobil indir android 1xbet mobil indir android. Valla bak net söyleyeyim — son sürümü her şeyi düşünmüş resmen.
kurulumu da oldukça basitti yani rahat olun. Kendi deneyimlerimi aktarıyorum size — kesinlikle pişman olmazsınız deneyin derim. Şimdiden iyi şanslar ve bol kazançlar…
1xbet mobil indir nasıl yapılır diye çok kafa yordum valla. Güncel apk dosyasını nereden indireceğimi bulmak çok zordu. Adımları doğru sırayla uyguladıktan sonra erişim sorunsuz açıldı. En sonunda sağlam bir kaynağa ulaştım und size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobile yukle 1xbet mobile yukle. Valla bak net söyleyeyim — mobil uygulaması inanılmaz stabil ve hızlı çalışıyor.
kurulumu da oldukça basit ve hızlıydı yani rahat olun. Kendi deneyimlerimi aktarıyorum size — kesinlikle pişman olmazsınız deneyin derim. Şimdiden iyi şanslar ve bol kazançlar…
Solid information that lines up with what I have been hearing from other reliable sources, and after my visit to apricotharborcraftcollective I was even more certain of that, this site checks out which is something I value highly when so many places online play loose with the facts to chase a quick click.
Will be sharing this with a couple of people who care about the topic, and a stop at cartwaymarket added more material worth passing along, the kind of site that is generous with quality content and does not make you jump through hoops to access it which is appreciated more than the team probably realises.
Mobil uygulama indirme konusunda çok araştırma yaptım valla. Herkes farklı bir adres söylüyordu kime güveneceğimi şaşırdım. Sonunda tüm teknik detayları inceleyip sistemi test ettim. En sonunda güvenilir bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobil indir 1xbet mobil indir. Valla bak net söyleyeyim — son sürümü her şeyi düşünmüş resmen.
güncellemeleri otomatik yapıyor çok memnunum. Kendi deneyimlerimi aktarıyorum size — başka yerde vakit kaybetmeyin yani. Şimdiden iyi şanslar ve bol kazançlar…
Excellent post, balanced and well organised without showing off, and a stop at junipercovegoodsroom continued in that same vein, this site has clearly figured out the formula for content that works for readers rather than for search engine ranking signals which is harder than it sounds today and worth real recognition from anyone.
Now placing this in the small category of sites whose updates I would actually want to know about, and a stop at caramelcovemarkethall confirmed that placement, the difference between sites I want to follow and sites I just consume from is real and this one has crossed into the active follow category from the casual consumption side.
Bookmark folder created specifically for this site, and a look at dawnmeadowgoodsroom 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.
Строительный журнал https://buildingtips.kyiv.ua для тех, кто строит, ремонтирует и обустраивает недвижимость. Полезные публикации о технологиях строительства, дизайне интерьеров, выборе подрядчиков и современных материалах.
Мир автомобилей https://auto-club.pl.ua в одном месте: автоновости, обзоры, рейтинги, советы по ремонту и обслуживанию. Следите за новинками автопрома, узнавайте о характеристиках моделей и тенденциях автомобильного рынка.
Все о современном https://dcsms.uzhgorod.ua доме: строительство, ремонт, интерьер и благоустройство. Экспертные статьи, обзоры материалов и полезные рекомендации для создания комфортного пространства для жизни.
Практический портал https://dsmu.com.ua о ремонте, строительстве и обустройстве жилья. Реальные советы, инструкции и обзоры помогут сократить расходы, повысить качество работ и добиться отличного результата.
Строительство без ошибок https://donbass.org.ua начинается здесь. Узнавайте о новых технологиях, популярных строительных материалах, особенностях ремонта и эффективных решениях для жилой и коммерческой недвижимости.
Genuinely good work, the kind that holds up over multiple readings without losing its appeal, and a stop at growthwithdirection kept that going, definitely a site I will be returning to and probably mentioning to others who work in or care about this particular area of interest today and in coming weeks.
1xbet indir nasıl yapılır diye çok araştırdım valla. Apk’yı nereden indireceğimi bilemedim bir türlü. Adımları doğru sırayla uyguladıktan sonra erişim sorunsuz açıldı. En sonunda sağlam bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet nouvelle version à télécharger 1xbet nouvelle version à télécharger. Şimdi size kısaca özet geçeyim — mobil uygulaması gerçekten akıcı çalışıyor.
güncellemeleri de düzenli geliyor. Kendi deneyimlerimi aktarıyorum size — başka yerde vakit kaybetmeyin yani. Herkese hayırlı olsun…
Android için son sürümü bulmak gerçekten zordu açıkçası. Play Store’da resmi uygulamayı bulamayınca çok hayal kırıklığı yaşadım. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda güvendiğim bir kaynağa ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet mobile download 1xbet mobile download. Yani anlatmak istediğim şu — mobil uygulaması inanılmaz stabil çalışıyor.
kurulumu da çok hızlıydı yani rahat olun. Birçok platform denedim ama en iyisi bu çıktı — en sağlam uygulama bu oldu artık. Umarım siz de memnun kalırsınız…
Probably one of the more reliable sources I have found for this kind of careful coverage, and a look at dewdawn reinforced the reliability, the small group of sources I would describe as reliable for a given topic is curated carefully and this site has earned a place in that small group through consistent performance.
Skipped the related products section because there was none, and a stop at advancewithclarity also lacked any aggressive monetisation, content that is not constantly trying to convert me into a customer or subscriber is content that has confidence in its own value and that confidence shows up as a different reading experience.
mostbet aviator qachon tushadi http://www.mostbet10093.help
pin-up cashout qanday pinup77432.help