拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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://intertools.com.ua и строительстве: от выбора фундамента до финишной отделки. Экспертные материалы, обзоры строительных технологий, рекомендации по подбору материалов и полезные советы для владельцев недвижимости.
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, 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.
I literally spent last month comparing maybe twenty different companies, but I eventually found a service with no bait, no switch, and no weird fine print. If you are looking for the only straight shooter for premium rentals across South Florida, check the details here: exotic car hire miami exotic car hire 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.
Speaking as someone who used to recommend blogs frequently and got out of the habit this site is rekindling that impulse, and a look at eliteledge extended the rekindling, the recovery of an old habit triggered by encountering work that justifies it is itself a small kind of pleasure and this site is providing that recovery experience.
Will be coming back to this for sure, too much good content to absorb in one sitting, and a stop at glassmeadowvendorparlor only added more pages I want to dig through, this site is going onto my regular rotation list because it consistently delivers something worth the visit lately rather than empty filler.
Different feel from the algorithmically optimised posts that dominate the topic, and a stop at islemeadow 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.
Recommended without hesitation if you care about careful coverage of this topic, and a stop at fernharborcommercegallery reinforced the recommendation, the bar I set for unhesitating recommendations is fairly high and this site has cleared it through the cumulative weight of multiple consistently good pieces rather than through any single standout post which is meaningful.
Now planning to recommend this site in a context where my recommendations are taken seriously, and a stop at palminlet confirmed I should make that recommendation soon, the small but real act of recommending content into spaces where my taste matters is something I take seriously and this site is worth the recommendation.
Thanks for treating the topic with the seriousness it deserves without becoming pompous about it, and a stop at leafdawn continued that balanced treatment, the gap between earnest and self serious is huge and writers who can stay on the right side of it earn my respect when I find them online today.
Люди, подскажите, долго выбирал нормальную платформу, но в выходные таки попробовал сделать пару ставок в mel bet. Честно? Зашло прям на ура,. Особенно если вам надо скачать мелбет на андроид — у меня модель достаточно бюджетная, но приложение работает плавно.
В общем, гляньте сами все условия по ссылке: мелбет скачать мелбет скачать. Кстати, кто спрашивал про мелбет приложение — там установочный файл чистый и без вирусов. И кешбек на баланс регулярно капает. Я уже выводил выигранные средства — служба поддержки вообще не тупит. Всем советую присмотреться. Удачи всем!
Народ, всем здравствуйте. Долго выбирал, где найти что-то реально редкое. Перерыл кучу сайтов, но нормального магазина премиальных товаров — раз два и обчёлся. А тут наткнулся сам в обсуждении. В общем, сам гляньте по ссылке: магазин эксклюзивных товаров магазин эксклюзивных товаров Кстати, если ищете премиальные подарки для мужчин — там глаза разбегаются. Я себе заказал ручку из лимитки — упаковка люкс. И цены соответствуют качеству. Лучший вариант для эксклюзива. Надеюсь, поможет.
Друзья, кто в теме. Долго сомневался, где найти что-то реально редкое. Перерыл кучу магазинов, но нормального магазина эксклюзивных товаров — раз два и обчёлся. А тут по совету зашёл. В общем, все подробности и ассортимент вот тут: магазин элитных подарков магазин элитных подарков Кстати, если ищете элитные подарки для мужчин — там выбор реально офигенный. Я себе взял кожаную сумку — впечатление мощное. И цены соответствуют качеству. Всем советую, кто ценит статусные вещи. Надеюсь, поможет.
Honestly the simplicity is what makes this work, the topic is not buried under filler words or overly complex examples, and a quick look at dazzquay showed the same sensible style, I left with what I came for and no headache from over reading which is a real win these days.
During a quiet evening reading session this provided just the right depth without being heavy, and a stop at daisycovecraftcollective 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.
Давно хотел найти надёжный вариант, честно говоря, много где в итоге разочаровался. Но случайно наткнулся на живое обсуждение про mel bet. Решил не полениться и затестить — и очень даже зашло,.
В общем, вся нужная инфа доступна вот тут: скачать мелбет казино скачать мелбет казино. Кстати, если кому надо melbet скачать — там всё работает стабильно и без глюков. Я себе установил софт прямо на телефон — полёт отличный. И вывод денег действительно шустрый, Доволен как слон, честно говоря. Надеюсь, эта рекомендация кому-то пригодится.
Liked the careful selection of which details to include and which to skip, and a stop at createactionableprogress reflected the same editorial judgement, knowing what to leave out is just as important as knowing what to include and this site has clearly figured out where that line sits for the topics it covers regularly.
Now adding the homepage to my regular check rotation rather than waiting for individual links to find me, and a stop at hazelharborartisanexchange confirmed the rotation upgrade, the move from passive discovery to active checking is a vote of confidence in a sites ongoing quality and this site has earned that active engagement clearly.
Reading this fit naturally into my afternoon walk because I was reading on my phone, and a stop at cadetgrail continued well in that walking format, content that survives mobile reading without becoming awkward is content with format flexibility and this site has clearly thought about how it reads across different devices today.
Thanks for taking the time to write this, it is clear that some thought went into how each point would land, and after I went through flintmeadowcommercegallery I had a better grip on the topic, real value without the usual marketing noise people have to put up with online when searching for answers.
Ребята, всем привет! долго не решался завести аккаунт, но недавно таки попробовал сделать пару ставок в мелбет. Честно? теперь постоянно туда захожу. Особенно если вам надо скачать melbet на андроид — у меня смартфон далеко не новый,, но никаких тормозов вообще нет.
В общем, гляньте сами все условия по ссылке: мелбет приложение мелбет приложение. Кстати, кто спрашивал про мелбет приложение — там есть удобный отдельный раздел,. И бонусы на первый депозит отличные дают,. Я за месяц три раза деньги забирал — никаких проблем с этим нет, Всем советую присмотреться. Удачи всем!
Случается, когда уже не до раздумий — человек в ступоре , а везти в больницу нет сил. Моя семья такое пережила недавно. Руки опускаются, время идёт. Начинаешь обзванивать знакомых , а вокруг одни обещания . Пока случайно не наткнулся на один нормальный проверенный вариант. Если нужна срочная помощь — а везти самому нет возможности , то нужно вызывать врача на дом. Я про наркологическую помощь на дому . У нас в Самаре, если честно, тоже полно левых контор без лицензии. Вся проверенная информация ниже по ссылке: нарколог вызвать https://narkolog-na-dom-samara-13.ru Откровенно говоря, после того как прочитал , понял, как правильно действовать. И про снятие запоя на дому, и про консультацию . И цены адекватные, без разводов. Советую не откладывать.
Came in for one specific question and got answers to three I had not even thought to ask, and a look at novalog extended that bonus value pattern, the kind of resource that anticipates reader needs rather than just answering the literal question asked is the gold standard and this site reaches it.
Adding this site to my regular reading list, the post earned that on its own, and a quick stop at figfeat sealed the decision, the kind of place worth checking back with from time to time because it consistently produces material that holds up against a critical reading too which I really value.
Started reading without much expectation and ended on a high note, and a look at kavqaro continued that arc, content that builds rather than peaks early is a sign of a writer who knows how to structure a piece for sustained reader engagement rather than relying on a strong hook to do all the work.
Reading this brought back the satisfaction I used to get from blogs ten years ago, and a stop at growwithpurposeandfocus kept that nostalgic quality alive, sites that capture what was good about an earlier era of internet writing are increasingly precious and this one is doing that without feeling like a deliberate throwback at all.
Look, I’ve been around the block with these Miami car rentals. Or worse — they freeze your credit card for an extra two grand and smile like it’s totally normal. No thanks, I am completely done with that circus. 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. Everyone who lives here knows that having a solid car is essential, whether you are heading to Brickell, Coconut Grove, or just driving down to Key Biscayne.
Most of these local agencies are just fancy websites hiding a garbage fleet, 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: luxury car hire luxury car hire. Yeah, finding parking in downtown is still its own separate nightmare, but that’s on you. Just drive safe out there and don’t let them upsell you on unnecessary insurance nonsense. let me know if you guys know any other clean spots.
Все об автомобилях https://avto-drug.com на одном автопортале. Свежие новости, обзоры машин, сравнения моделей, советы по обслуживанию, ремонту и выбору автомобиля. Полезный ресурс для владельцев авто и будущих покупателей.
Женский портал https://superwoman.kyiv.ua о красоте, здоровье, моде и саморазвитии. Полезные статьи, советы экспертов, идеи для вдохновения и актуальные тренды помогут сделать каждый день ярче, комфортнее и интереснее.
Вот такая тема выматывает , когда близкий просто срывается в штопор . Ищешь варианты , а вокруг одна потёмки . Мне вот потребовался срочный метод . Пьют успокоительное , но это ерунда . Нужно именно врачебное вмешательство . Я перелопатил кучу сайтов , пока понял одну простую вещь: без круглосуточного наблюдения ничего не выйдет . Потому что дома срыв гарантирован . Если ищешь где сделать качественного вывода из запоя с помещением в клинику — тогда тебе сюда . В Нижнем , кстати, тоже полно шарлатанов . Лучше сразу перейти на сайт, где нет вранья про кодирование от алкоголизма и выезд врача . Подробности по ссылке: наркологическая клиника нижний новгород наркологическая клиника нижний новгород Честно скажу , сам удивился , сколько нюансов в этой теме. И кстати, цены адекватные. Для нашего города это реально стоящий вариант.
Знаете ситуацию реально бесит , когда родственник просто не может остановиться . Ищешь варианты , а вокруг одна потёмки . Знакомому потребовался срочный метод . Пьют успокоительное , но это не помогает . Нужно именно профессиональная помощь . Я перелопатил кучу сайтов , пока понял одну простую вещь: без круглосуточного наблюдения ничего толку не будет . Потому что дома срыв стопроцентный . Если ищешь где сделать качественного вывода из запоя с помещением в клинику — тогда тебе сюда . В Нижнем , кстати, развелось этих “центров” . Лучше сразу перейти на сайт, где нет вранья про кодировку от алкоголя и работу нарколога . Подробности по ссылке: кодирование от алкоголизма нижний новгород кодирование от алкоголизма нижний новгород После прочтения , сам удивился , сколько подводных камней в этой теме. Главное — анонимность и палаты. Для Нижнего это реально стоящий вариант.
Worth recognising that this site does not chase the daily news cycle, and a stop at palminlet 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.
Closed and reopened the tab three times before finally finishing, and a stop at caramelharborvendorparlor held my attention straight through, sometimes content fights for time against my own distraction and the times it wins say something positive about its quality and this post clearly won that fight today afternoon for me.
Люди, подскажите, долго не решался завести аккаунт, но в выходные таки попробовал сделать пару ставок в mel bet. Честно? Зашло прям на ура,. Особенно если вам надо скачать мелбет на андроид — у меня смартфон далеко не новый,, но приложение работает плавно.
В общем, убедитесь сами, если перейдете: мелбет казино скачать на андроид мелбет казино скачать на андроид. Кстати, кто спрашивал про мелбет казино скачать на андроид — там есть удобный отдельный раздел,. И бонусы на первый депозит отличные дают,. Я за месяц три раза деньги забирал — никаких проблем с этим нет, Всем советую присмотреться. Удачи всем!
1win sloturi demo Moldova https://1win11397.help/
mostbet bonus ishlatish https://www.mostbet61024.help
1win canlı mərc qaydaları 1win canlı mərc qaydaları
During a quiet evening reading session this provided just the right depth without being heavy, and a stop at daisycovecraftcollective 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.
A thoughtful read in a week that has been mostly noisy, and a look at dazzquay carried that thoughtful quality across more pages, finding pockets of considered writing in a week of distractions is one of the small wins of careful curation and this site is providing those pockets at a sustainable rate.
Closed three other tabs to focus on this one and never opened them again, and a stop at elitefests similarly held attention exclusively, content that crowds out other reading from working memory is content with real density and this site has demonstrated that density across multiple pages I have visited so far this morning.
Знаете, поиск действительно проверенного медицинского центра — это реально отдельная и очень сложная история. Нередко в жизни бывает так, когда родным или близким людям срочно понадобилась грамотная помощь врачей. И в этот момент обычно начинается паника просто из-за банальной нехватки информации.
Мой коллега по работе долго искал действительно надежный медицинский вариант. В интернете сейчас столько мусора и дорвеев, что голова идет кругом. Если коротко, лучше сразу перейти на официальный сайт, где нет вранья, там подробно расписаны все важные условия и нюансы про круглосуточную наркологическую поддержку и условия проживания. В общем, не тяните время и долго не раздумывайте,, чтобы четко во всем разобраться.
Вся актуальная информация и контакты доступны прямо здесь: клиника вывода из запоя со стационаром http://www.narkologicheskij-staczionar-sankt-peterburg-12.ru. Честно говоря, после изучения всех условий, насколько там много полезных нюансов и скрытых факторов, включая комфортные условия содержания, современные палаты и полную анонимность. В Питере это определенно достойный внимания и доверия медицинский центр, так что рекомендую сохранить себе в закладки на всякий случай.
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 indir android 1xbet indir android. Şimdi size kısaca özet geçeyim — android cihazlar için biçilmiş kaftan diyebilirim.
kurulumu da üç dakikadan kısa sürdü yani rahat olun. Birçok apk denedim ama bunda karar kıldım — başka yerde vakit kaybetmeyin yani. Umarım siz de memnun kalırsınız…
Давно присматривался к разным платформам, честно говоря, много где в итоге разочаровался. Но случайно наткнулся на живое обсуждение про melbet. Решил лично проверить систему — и теперь сам рекомендую знакомым.
В общем, сами гляньте все условия по ссылке: скачать мелбет скачать мелбет. Кстати, если кому надо скачать мелбет — там всё работает стабильно и без глюков. Я себе поставил официальное приложение — всё сделано очень удобно. И бонусы на первый депозит приятные, Сам теперь только туда захожу. Надеюсь, эта рекомендация кому-то пригодится.
On reflection this is the kind of writing that improves my taste for what is possible in the format, and a look at caramelharborcommercegallery continued raising that bar, content that elevates my expectations rather than lowering them is doing important work in calibrating my standards and this site is participating in that elevation reliably.
Полезный строительный https://bastet.com.ua портал с материалами о строительстве, ремонте, дизайне интерьеров и благоустройстве территорий. Экспертные рекомендации, обзоры новинок рынка и практические решения для любых строительных задач.
Все для мужчин https://hand-spin.com.ua в одном месте: здоровье, отношения, карьера, путешествия, технологии и активный образ жизни. Интересные статьи, обзоры и практические рекомендации для достижения личных и профессиональных целей.
Look, I’ve been around the block with these Miami car rentals. 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. When you are trying to find a reliable premium fleet down here, make sure to check the actual fleet reviews before signing anything. 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, until I finally stumbled across one that actually delivers what it promises. If you are looking for an honest source for premium rentals across Florida, check the details here: car rentals in miami https://luxury-car-rental-miami-2.com. Oh, and definitely bring polarized sunglasses, because that Florida sun is absolutely no joke. Anyway, at least there’s one trustworthy service left in this town, hope this helps someone save a few bucks.
A clear cut above the usual noise on the subject, and a look at explorefreshgrowthstrategies only made that gap wider in my view, the kind of place that earns its visitors through quality rather than through aggressive marketing or sponsored placements which is increasingly the only way most sites stay afloat across the modern web.
Came in for one specific question and got answers to three I had not even thought to ask, and a look at novalog extended that bonus value pattern, the kind of resource that anticipates reader needs rather than just answering the literal question asked is the gold standard and this site reaches it.
Solid recommendation from me to anyone working in the area, the perspective here is grounded, and a look at cadetgrail adds even more useful angles, the kind of site that becomes a reference rather than just a one time read which is a higher bar than most blogs ever reach today on the modern web.
Big thanks to whoever wrote this, you saved me a lot of time hunting for the same info on other sites, and a stop at eliteledge only added more useful detail without going off topic, that kind of focus is honestly hard to come across these days when most posts wander everywhere.
Decided to write a short note to the author if there is contact info anywhere, and a stop at hazelharborartisanexchange extended that intention, the urge to thank the writer directly is a strong signal of content quality and this site has triggered that urge in me today which is a fairly rare event for my reading.