拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Слушайте, кто в курсе, долго выбирал нормальную платформу, но в выходные таки решил глянуть в melbet. Честно? теперь постоянно туда захожу. Особенно если вам надо скачать мелбет на андроид — у меня модель достаточно бюджетная, но приложение работает плавно.
В общем, все подробности и рабочая ссылка доступны вот тут: мелбет скачать приложение мелбет скачать приложение. Кстати, кто спрашивал про мелбет приложение — там всё сделано интуитивно понятно,. И бонусы на первый депозит отличные дают,. Я уже выводил выигранные средства — выплаты приходят максимально быстрые, Очень рекомендую этот вариант. Дерзайте, пусть повезет!
Clean writing, easy to read, and never tries too hard to impress, that combination is harder to find than people think, and after my time on growresultsorientedpath I am sure this site treats its readers well, no flashy tricks just useful content done right which is honestly all I want online.
Most of my reading time goes to a small number of trusted sources and this one is now joining that group, and a stop at ivoryridgeartisanexchange reinforced the group membership, the few sites that earn a place in my regular rotation are sites I expect ongoing returns from and this one has earned that elevated position consistently.
High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at discoverhiddenopportunity kept that going, simple direct content that actually communicates something is harder to find than it should be and this is one of the rare places that gets it right consistently across many different posts.
Reading the writers other posts after this one suggests the quality is consistent rather than peak, and a stop at oakarena confirmed the consistent quality reading, sites that hold the same level across many pieces rather than peaking on a few are sites with sustainable editorial discipline and this one has clearly developed that.
Looking through the archives suggests this site has been doing this for a while at this level, and a look at isleparish confirmed the long term consistency, sites that have maintained quality across years rather than just a recent stretch are sites with serious editorial discipline and this one has clearly been at it for a while.
Felt the writer was speaking my language without trying to imitate it, and a look at flintmeadowmarkethall continued that natural fit, when a writers default voice happens to match what you find easy to read the experience feels frictionless and that is something I notice and remember about specific sites going forward.
Thanks for sharing this with the open internet rather than locking it behind a paywall like so many sites do now, and a stop at intentionalforwardmotion kept the same vibe going, generous helpful and clearly written by someone who actually wants people to learn from it rather than just charge them.
Thanks for the practical examples scattered through the post rather than abstract theory only, and a look at meadowharborgoodsgallery continued that grounded style, abstract points are easier to remember when paired with concrete situations and the writers here clearly understand how readers actually retain information from blog content reading sessions.
Decided I would read the archives over the weekend, and a stop at elitedawns confirmed that the archives would be worth the time, very few sites have archives I would actively read through but this one has earned that level of interest based on the consistent quality across what I have sampled so far.
melbet cricket live betting https://melbet14906.help
Слушайте, кто в курсе, долго выбирал нормальную платформу, но на прошлой неделе таки попробовал сделать пару ставок в melbet. Честно? Остался полностью доволен,. Особенно если вам надо скачать мелбет на андроид — у меня модель достаточно бюджетная, но никаких тормозов вообще нет.
В общем, гляньте сами все условия по ссылке: melbet скачать на андроид melbet скачать на андроид. Кстати, кто спрашивал про мелбет приложение — там всё сделано интуитивно понятно,. И бонусы на первый депозит отличные дают,. Я уже выводил выигранные средства — служба поддержки вообще не тупит. Очень рекомендую этот вариант. Удачи всем!
Thank you for keeping the writing honest and the points easy to verify against your own experience, and a stop at fernbureau reflected the same approach, no exaggeration just steady useful content that I can take with me into my own work without second guessing every sentence I happen to read here.
Давно искал, где можно нормально играть, честно говоря, много где в итоге разочаровался. Но случайно наткнулся на живое обсуждение про мелбет. Решил лично проверить систему — и очень даже зашло,.
В общем, все подробности выложены здесь: мелбет казино скачать мелбет казино скачать. Кстати, если кому надо melbet скачать — там процесс установки занимает буквально минуту. Я себе установил софт прямо на телефон — никаких тормозов нет. И служба поддержки отвечает строго по делу. Сам теперь только туда захожу. Удачи всем на дистанции!
One of the more thoughtful posts I have read recently on this topic, and a stop at discoverhiddenopportunity added even more weight to that impression, this is genuinely good content that holds its own against far better known sites in the same space without trying to imitate any of them at all which I appreciate.
Okay so here’s the deal with renting anything decent in Miami. Half these local companies promise a custom Porsche and hand you a basic sedan with fake leather. Oh, and that pretty security deposit? Yeah, good luck getting that money back fast. Fool me thrice, shame on both of us I guess, lesson learned. When you are trying to find a reliable premium fleet down here, do some real digging first and read actual customer reviews. Miami without wheels is basically a hostage situation, whether you are doing Brickell mornings, South Beach nights, or a spontaneous Keys trip.
Most of these local agencies are just shiny websites hiding the same overpriced junk, until I finally found one outfit that actually delivers what’s in the photos. If you are looking for the only straight shooter for premium rentals across South Florida, check the details here: luxury car rental in miami luxury car rental in miami. Also, definitely bring sunglasses unless you enjoy driving completely blind in that sun. Just drive safe out there and maybe skip the extra windshield protection thing. let me know if you guys have any other clean spots.
Telefonuma güvenilir bir uygulama indirmek istiyordum. Güvenilir bir apk dosyası bulmak gerçekten çok zordu. Sonunda tüm teknik detayları inceleyip sistemi test ettim. En sonunda doğru adrese ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet android uygulama 1xbet android uygulama. Yani anlatmak istediğim şu — android cihazlar için biçilmiş kaftan diyebilirim.
güncellemeleri de otomatik geliyor gerçekten. İşin doğrusunu söylemek gerekirse — kesinlikle pişman olmazsınız deneyin derim. Umarım siz de memnun kalırsınız…
Honestly, I’ve wasted so much time on sketchy rental deals around South Beach. You book a premium ride online, show up, and they hand you keys to something with a dented bumper. Fool me once, shame on you, right. If you actually need a proper vehicle to cruise around the city, seriously, do your homework first and don’t just trust social media ads. Miami without a decent whip is pretty rough, especially if you want ice-cold AC and no ridiculous daily mileage caps.
I’ve literally compared maybe 15 different local providers last month alone, but I eventually found a service with zero hidden fees and no bait-and-switch tactics. If you are looking for an honest source for premium rentals across Florida, check the details here: exotic car hire exotic car hire. Yeah, finding parking in downtown is still its own separate nightmare, but that’s on you. Anyway, at least there’s one trustworthy service left in this town, hope this helps someone save a few bucks.
Reading this in segments because the day was busy, and the post survived the fragmented attention well, and a stop at ivoryridgeartisanexchange held up similarly under interrupted reading, content that can withstand modern distracted reading patterns rather than requiring a perfect block of focused time is increasingly the kind I prefer.
My reading list is short and selective and this site is now on it, and a stop at epicestate 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.
Знаете, ситуация бывает — человек в ступоре , а везти в больницу нет сил. Я сам через это прошёл пару лет назад . Руки опускаются, время идёт. Начинаешь обзванивать знакомых , а вокруг бабло тянут. Пока случайно не наткнулся на один реально работающий вариант. Требуется немедленная консультация — а ехать куда-то нет возможности , то нужно вызывать врача на дом. Я про вызвать нарколога на дом . В Самаре , к слову , тоже полно шарлатанов . Вся проверенная информация вот тут : наркологическая помощь на дому круглосуточно наркологическая помощь на дому круглосуточно Откровенно говоря, после того как прочитал , многое прояснилось . Там и про капельницы подробно , и про консультацию . Плюс анонимность — это важно . Советую не тянуть .
Pass this along to anyone you know dealing with similar questions, the answers here are clear, and a stop at startyourforwardmove adds even more useful material, this is the kind of resource that deserves to circulate widely rather than getting lost in the constant churn of new content online that buries good work daily.
Really appreciate the absence of stock photos that have nothing to do with the content, and a quick visit to driftorchardcraftcollective maintained the same restraint, visual filler is a tell that the writing cannot stand on its own and the lack of it here suggests the team has confidence in their content quality alone.
Found something quietly useful here that I expect to return to, and a stop at domelegend added more of the same, content with quiet utility ages well in a way that flashy hot takes do not and I have learned to weight quiet utility much higher when deciding what to bookmark for later use.
Looking back on this reading session it stands as one of the better ones recently, and a look at meadowharborgoodsgallery extended that ranking, the informal ranking of reading sessions against each other is something I do mentally and this session ranks high largely because of this site and a couple of related pages here.
Worth a quiet moment of recognition for the consistency I have noticed across multiple posts, and a stop at finkglaze continued that consistent quality, sites that maintain quality across many pieces rather than peaking on one viral post are sites with real editorial discipline and this one has clearly developed that discipline carefully.
Mobil bahise merak salalı çok oldu valla. Play Store’da bulamayınca ne yapacağımı bilemedim. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda doğru adrese ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet android apk 1xbet android apk. Yani anlatmak istediğim şu — android cihazlar için biçilmiş kaftan diyebilirim.
Hiçbir donma yaşamadım şu ana kadar. Kendi deneyimlerimi aktarıyorum size — başka yerde vakit kaybetmeyin yani. Şimdiden iyi şanslar ve bol kazançlar…
Okay so here’s the deal with renting anything decent in Miami. I swear half the “luxury” fleets down here are straight-up marketing scams. You book a premium ride online, arrive all excited, then boom — hidden service fees everywhere. I’ve been burned like three times already this year alone. If you seriously need a legit vehicle to cruise around the city, don’t just trust the first sponsored ad on social media. Miami without wheels is basically a hostage situation, whether you are doing Brickell mornings, South Beach nights, or a spontaneous Keys trip.
Most of these local agencies are just shiny websites hiding the same overpriced junk, until I finally found one outfit that actually delivers what’s in the photos. If you are looking for the only straight shooter for premium rentals across South Florida, check the details here: car rental miami beach florida car rental miami beach florida. Yeah, valet in Miami Beach will cost you an arm, but that’s not their fault. Just drive safe out there and maybe skip the extra windshield protection thing. hope this helps some of you save a few bucks.
Okay so here’s the deal with renting anything decent in Miami. I swear half the “luxury” fleets down here are straight-up marketing scams. Oh, and that pretty security deposit? Yeah, good luck getting that money back fast. I’ve been burned like three times already this year alone. If you seriously need a legit vehicle to cruise around the city, do some real digging first and read actual customer reviews. Anyone who lives here will tell you the exact same thing, especially since the AC must be arctic and you want zero mileage games.
I literally spent last month comparing maybe twenty different companies, until I finally found one outfit that actually delivers what’s in the photos. If you are looking for the only straight shooter for premium rentals across South Florida, check the details here: rental luxury car miami rental luxury car miami. Yeah, valet in Miami Beach will cost you an arm, but that’s not their fault. Anyway, glad there’s at least one honest rental joint left in this town, let me know if you guys have any other clean spots.
Android telefonumda rahatça oynamak istiyordum. Play Store’da bulamayınca ne yapacağımı şaşırdım. Adımları doğru sırayla uyguladıktan sonra erişim sorunsuz açıldı. En sonunda doğru adrese ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet android apk 1xbet android apk. Valla bak net söyleyeyim — telefonuma indirince çok memnun kaldım.
kurulumu da son derece basitti yani rahat olun. Kendi deneyimlerimi aktarıyorum size — başka yerde vakit kaybetmeyin yani. Herkese hayırlı olsun…
Found this via a link from another piece I was reading and the click was worth it, and a stop at opaldune extended the value across more material, the open web still rewards clicking through citations when the underlying writers care about each other work and this site clearly belongs to that network.
Мужики, привет. Долго думал, где найти презент, который запомнят. Перерыл кучу вариантов, но нормального премиального интернет магазина — днём с огнём не сыщешь. А тут по совету зашёл. В общем, сам гляньте по ссылке: премиум подарки премиум подарки Кстати, если ищете самые дорогие подарки — там глаза разбегаются. Я себе присмотрел часы — впечатление мощное. И цены адекватные для такого уровня. Сам теперь только там беру. Удачи с выбором!
Picked this up while looking for something else and ended up reading every paragraph because it was actually informative, and after forestcovemerchantgallery I was sure I would come back, that does not happen often when most sites bury the useful parts under endless ads and pop ups today and across most categories online.
Reading this site over the past week has changed how I evaluate content in this space, and a look at kelqiro 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.
Took the time to read the comments on this post too and they were also worth reading, and a stop at coastharbormerchantgallery suggested the community quality matches the content quality, when the conversation around a piece is as good as the piece itself you know you have found a real corner of the internet.
Знаете, поиск действительно проверенного медицинского центра — это всегда целая проблема и головная боль. Многие лично сталкивались с такой ситуацией,, когда кому-то из членов семьи срочно понадобилась грамотная помощь врачей. И в этот момент обычно начинается паника просто из-за банальной нехватки информации.
Я сам недавно детально изучал этот вопрос, искал действительно надежный медицинский вариант. Очень сложно с ходу отличить реальные отзывы пациентов от банальной рекламы. Если коротко, лучше сразу перейти на официальный сайт, где нет вранья, там действительно раскладывают по полочкам всю подноготную про анонимное снятие запоя в условиях клиники. В такой ситуации лучше один раз внимательно глянуть самостоятельно, чтобы четко во всем разобраться.
Вся актуальная информация и контакты доступны прямо здесь: наркологическая клиника стационар наркологическая клиника стационар. Честно говоря, после изучения всех условий, насколько там много подводных камней, на которые стоит обращать внимание, включая комфортные условия содержания, современные палаты и полную анонимность. В Питере это определенно достойный внимания и доверия медицинский центр, так что рекомендую сохранить себе в закладки на всякий случай.
Случается, когда уже не до раздумий — близкий совсем плох, а тащить в клинику нет сил. Моя семья такое пережила недавно. Руки опускаются, время идёт. Лезешь в интернет, а вокруг бабло тянут. Пока кто-то не подсказал один реально работающий вариант. Если нужна немедленная консультация — а ехать куда-то просто нереально, то нужно вызывать врача на дом. Я про нарколога на дом . У нас в Самаре, к слову , хватает левых контор без лицензии. Вся проверенная информация ниже по ссылке: нарколог на дом цены нарколог на дом цены Откровенно говоря, после того как вник в детали, многое прояснилось . И про снятие запоя на дому, и про последующее кодирование. И цены адекватные, без разводов. Рекомендую не тянуть .
Слушайте, кто шарит, долго не решался завести аккаунт, но вчера все-таки зарегился ради интереса в mel bet. Скажу так — теперь я их постоянный клиент. У кого система ios — тоже всё без проблем запускается,. Надо скачать мелбет на айфон? В интерфейсе даже ребёнок разберётся.
Короче, переходите, точно не пожалеете: . Кстати, кто спрашивал про скачать мелбет казино — приложение вообще не вылетает,. И фрибеты регулярно прилетают на баланс,. Я лично всё проверил на себе — всё честно и без обмана. Сам теперь только туда захожу. Удачи всем!
Vague feelings of recognition kept surfacing as I read because the writing names things I have been thinking, and a look at musebeats produced more of those recognition moments, content that gives shape to private intuitions is content that makes me feel less alone in my own thinking and this site has that effect.
Definitely a recommend from me, anyone curious about the topic should check this out, and a look at driftorchardcraftcollective adds even more reason for that, the depth and quality combine to make this site one I will be pointing people toward whenever similar conversations come up over the months ahead at work or socially.
Found this through a friend who recommended it and now I see why, and a look at learnandexecuteclearlynow 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.
Now considering the post as evidence that careful blog writing is still possible, and a look at elveecho extended that evidence, the broader question of whether the modern web can sustain quality writing has obvious empirical answers in sites like this one and seeing them is reassuring even when they remain a minority overall today.
Genuinely good work, the kind that holds up over multiple readings without losing its appeal, and a stop at domelegend 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.
Speaking from the perspective of having read widely on the topic this site offers something distinct, and a look at growwithdeliberateaction reinforced that distinctness, the rare site that contributes something genuinely original to a saturated topic is the rare site worth following carefully and this one has demonstrated that original contribution capability today.
Люди, подскажите, долго не решался завести аккаунт, но недавно таки решил глянуть в мелбет. Честно? Зашло прям на ура,. Особенно если вам надо скачать melbet на андроид — у меня модель достаточно бюджетная, но приложение работает плавно.
В общем, убедитесь сами, если перейдете: melbet melbet. Кстати, кто спрашивал про мелбет скачать приложение — там есть удобный отдельный раздел,. И бонусы на первый депозит отличные дают,. Я уже выводил выигранные средства — служба поддержки вообще не тупит. Очень рекомендую этот вариант. Удачи всем!
A piece that exhibited the kind of patience that good writing requires, and a look at finkglaze continued that patient quality, hurried writing is easy to spot and this site reads as having been written without time pressure which produces a different feel than the rushed content that dominates much of the modern blog space.
Android telefonumda rahatça oynamak istiyordum. Play Store’da bulamayınca ne yapacağımı şaşırdım. Güncel bilgileri kontrol edip süreci hatasız başlattım. En sonunda doğru adrese ulaştım ve size de tüm detayları aktarmak istedim, güncel bilgilere buradan bakabilirsiniz: 1xbet app android 1xbet app android. Şimdi size kısaca özet geçeyim — mobil versiyonu bile çok akıcı aslında.
güncellemeleri de düzenli geliyor gerçekten. Kendi deneyimlerimi aktarıyorum size — başka yerde vakit kaybetmeyin yani. Umarım siz de memnun kalırsınız…
Давно хотел найти надёжный вариант, честно говоря, много где в итоге разочаровался. Но случайно наткнулся на живое обсуждение про мелбет. Решил лично проверить систему — и ни разу не пожалел,.
В общем, вся нужная инфа доступна вот тут: мелбет скачать казино мелбет скачать казино. Кстати, если кому надо скачать мелбет — там всё работает стабильно и без глюков. Я себе установил софт прямо на телефон — всё сделано очень удобно. И служба поддержки отвечает строго по делу. Сам теперь только туда захожу. Удачи всем на дистанции!
Народ, всем здравствуйте. Долго сомневался, где найти действительно крутой подарок. Перерыл кучу магазинов, но нормального магазина эксклюзивных товаров — раз два и обчёлся. А тут наткнулся сам в обсуждении. В общем, все подробности и ассортимент вот тут: очень дорогой подарок очень дорогой подарок Кстати, если ищете самые дорогие подарки — там глаза разбегаются. Я себе заказал ручку из лимитки — впечатление мощное. И цены адекватные для такого уровня. Сам теперь только там беру. Удачи с выбором!
melbet current link melbet current link