拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
A well calibrated piece that knew its scope and stayed inside it, and a look at findyourcorelane maintained the same scope discipline, scope creep is one of the failure modes of long blog posts and this site has clearly invested in the editorial discipline to prevent it which shows up in tightly contained pieces.
Came across this and immediately thought of a friend who would enjoy it, and a stop at clippoise also reminded me of someone, content that triggers the urge to share is content that has earned my recommendation and this site has earned multiple from me already across different conversations during the week.
Liked that there was nothing performative about the writing, and a stop at apricotharborvendorroom continued that genuine quality, performative writing tries to be witnessed rather than read and the difference between performance and substance is huge for the careful reader and this site has clearly chosen substance every time clearly.
Skipped the related links section thinking I had read enough and then came back to it later when curiosity got the better of me, and a stop at crystalharborcommercegallery confirmed I should have just read it first, every section of this site appears to deserve careful attention rather than skipping past lazily.
Just nice to read something that does not feel like it was assembled from a content brief, and a stop at calmcovevendorroom kept that handcrafted feel going, you can tell when a real human with real understanding is behind the words versus a templated piece churned out for an algorithm to find.
Now sitting with the thoughts the post triggered rather than rushing on to the next thing, and a stop at forgecabins 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.
Found something quietly useful here that I expect to return to, and a stop at crystalcovecommerceatelier 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.
Если честно, сам перерыл кучу форумов в поисках нормальной ткани для мебели. Оказалось, что выбрать подходящий вариант совсем непросто. Итак, смотрите, вот здесь реально толково расписано про плотность, ворс и износостойкость для диванов и кресел, а главное — показаны варианты, которые не выцветают. Вся полезная информация доступна здесь: ткань для мебели купить в интернет магазине https://tkan-dlya-mebeli-2.ru Дальше сами гляньте каталог с ценами. Да, и не берите первое, что попалось — я уже обжёгся, когда брал дешёвую ткань для обивки мебели. Эта тема реально вывозит по соотношению цена-качество. Кстати: ткань мебельная купить лучше уже с нормальной пропиткой от грязи. Да и рвётся такое полотно гораздо меньше. В общем, советую глянуть источник.
Genuinely changed how I think about a small piece of the topic, which does not happen often online, and a look at knackpacts added another nudge in the same direction, the kind of writing that earns a small mental shift rather than just confirming what you already thought before reading is a sign of careful thought.
Once I had read three posts the editorial pattern was clear, and a look at neatmill confirmed the pattern from a fourth angle, sites where the underlying approach reveals itself through accumulated reading rather than being announced are sites with real depth and this one has that quality clearly visible across multiple pieces consistently.
stats crazy time a http://www.crazy-timeitalia.com/ .
crazy time demo free crazy time demo free .
Reading this between meetings turned out to be the most useful thing I did all afternoon, and a stop at elitefest kept that productivity feeling going, content can sometimes outperform actual work in terms of what gets accomplished mentally and this site managed that today which is genuinely a high bar to clear consistently.
Вот такая тема выматывает , когда близкий просто не может остановиться . Ломаешь голову , а вокруг одна реклама . Моему брату потребовался действительно рабочий метод . Пьют успокоительное , но это не помогает . Требуется именно профессиональная помощь . Пролистал пол-интернета , пока понял одну простую вещь: без круглосуточного наблюдения ничего толку не будет . В обычной квартире срыв стопроцентный . Ищешь нормальный вариант для вывода из запоя в стационаре — обрати внимание на один проверенный вариант . В Нижнем Новгороде , кстати, развелось этих “центров” . Лучше сразу перейти на сайт, где нет вранья про кодировку от алкоголя и выезд врача . Вся суть здесь: кодировка от наркотиков кодировка от наркотиков После прочтения , сам офигел , сколько нюансов в этой теме. И кстати, цены адекватные. Для Нижнего это реально стоящий вариант.
Just want to record that this site is entering my regular reading list, and a look at larkcliff confirmed it deserves the spot, my regular reading list is short and well curated and adding to it requires meeting a fairly high quality bar that this site has clearly cleared without much effort apparently.
Honest reaction is that this is the kind of writing I would defend in a conversation about good blog content, and a look at buildsustainedmomentum reinforced that, the rare site whose work I would actively recommend rather than just tolerate is the kind I want to support through return visits regularly.
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. You book a premium ride online, arrive all excited, then boom — hidden service fees everywhere. 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, 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 near miami beach car rental near miami beach. 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.
ultimi risultati crazy time http://www.crazy-timeitalia.com .
A thoughtful piece that did not strain to be thoughtful, and a look at fifejuno continued that effortless quality, when thinking shows up in writing without the writer drawing attention to it you know you are reading something genuinely considered rather than something performing the appearance of consideration which is also common online.
Если честно, сам перерыл кучу форумов в поисках нормальной мебельной ткани. Оказалось, что выбрать подходящий вариант реальная проблема. Короче, смотрите, вот здесь реально толково расписано про плотность, ворс и износостойкость для диванов и кресел, а главное — показаны варианты, которые легко чистить. Вся полезная информация доступна здесь: ткань мебельная купить https://tkan-dlya-mebeli-2.ru Дальше сами гляньте фактические отзывы. Да, и не берите первое, что попалось — я уже поплатился кошельком, когда брал ткань для мебели на распродаже. Эта тема реально вывозит по износу. Для информации: ткань для обивки мебели купить лучше уже с нормальной пропиткой от грязи. Да и садится такое полотно гораздо меньше. Здесь реально дельные советы.
crazy time a live stats crazy time a live stats .
Reading this on a difficult day was a small bright spot, and a stop at exploreideaswithdirection extended that brightness, content that improves a hard day is content that has earned a particular kind of place in my reading habits and this site is occupying that uplifting role for me today which I appreciate clearly.
Знаете, ситуация бывает — человек в ступоре , а везти в больницу просто нереально . Я сам через это прошёл пару лет назад . Сидишь, не знаешь что делать . Лезешь в интернет, а вокруг одни обещания . Пока случайно не наткнулся на один нормальный проверенный вариант. Требуется немедленная консультация — а ехать куда-то нет возможности , то выход один . Я про нарколога на дом . В Самаре , к слову , хватает шарлатанов . Вся проверенная информация ниже по ссылке: нарколог домой нарколог домой Откровенно говоря, после того как вник в детали, многое прояснилось . И про снятие запоя на дому, и про последующее кодирование. И цены адекватные, без разводов. Советую не тянуть .
Now appreciating that the post did not require external context to follow, and a look at forgecabins maintained the same self contained quality, content that respects new visitors by being readable without prerequisites is content with broader accessibility and this site has clearly invested in keeping each piece reader friendly for fresh arrivals.
Друзья, кто в теме. Долго выбирал, где найти презент, который запомнят. Перерыл кучу магазинов, но нормального магазина премиальных товаров — раз два и обчёлся. А тут наткнулся сам в обсуждении. В общем, рекомендую посмотреть: магазин эксклюзивных товаров магазин эксклюзивных товаров Кстати, если ищете премиум подарки — там выбор реально офигенный. Я себе взял кожаную сумку — впечатление мощное. И цены соответствуют качеству. Лучший вариант для эксклюзива. Надеюсь, поможет.
Now realising the post has been quietly doing important work in my mind for the past hour, and a stop at cadetarena extended that quiet processing, content that continues to do work after I close the tab is content with afterlife in the mind and this site is producing those long lived effects at a meaningful rate.
Appreciated how the post felt complete without overstaying its welcome, and a stop at apricotharborvendorroom confirmed that economical approach runs across the site, knowing when to stop is a skill many writers never develop but here the discipline is obvious and welcome from the perspective of a busy reader trying to learn things efficiently.
Reading this brought back an idea I had set aside months ago, and a stop at crystalcovecommerceatelier added more substance to that idea, content that revives dormant projects in my own thinking is content with serious creative value and this site is contributing to my own work in ways I had not expected when first clicking through.
Felt like I was reading something written by someone who actually thinks about the topic rather than reciting it, and a look at knackpacts 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.
Found this via a link from another piece I was reading and the click was worth it, and a stop at harborstoneartisanexchange 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.
Современный сайт https://makprestig.in.ua о ремонте и строительстве для тех, кто планирует строительство дома, реконструкцию или обновление интерьера. Экспертные советы, инструкции и практические решения для любых задач.
A clean piece that knew exactly what it wanted to say and said it, and a look at palmcodex maintained the same clarity of intention, knowing the goal of a piece before writing is something most blog content lacks and the clarity of purpose here shows up in every paragraph for any careful reader to notice.
Люди, подскажите, долго не решался завести аккаунт, но в выходные таки зарегился ради интереса в melbet. Честно? Остался полностью доволен,. Особенно если вам надо скачать melbet на андроид — у меня модель достаточно бюджетная, но приложение работает плавно.
В общем, гляньте сами все условия по ссылке: мелбет приложение мелбет приложение. Кстати, кто спрашивал про мелбет скачать приложение — там установочный файл чистый и без вирусов. И фрибеты для новичков очень приятные,. Я лично всё проверял на себе — выплаты приходят максимально быстрые, Всем советую присмотреться. Дерзайте, пусть повезет!
Decided to read more before commenting and the more I read the more I wanted to say something, and a stop at calmcovevendorroom pushed that impulse further, when content provokes the urge to participate rather than just consume it is doing something quite specific and worth recognising clearly when it happens during reading.
Started reading skeptically because the headline seemed overconfident, and the post earned the headline by the end, and a look at crystalharborcommercegallery 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.
Excellent post, balanced and well organised without showing off, and a stop at larkcliff 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 adjusting my mental list of reliable sites for this topic, and a stop at buildsustainedmomentum reinforced the adjustment, the small ongoing curation work of maintaining trusted sources is one of the actual practical activities of careful reading and this site has earned a permanent place on my list for this particular subject.
Even across multiple posts the writers voice has remained consistent in a way I appreciate, and a stop at kavnero continued that voice, sites that maintain editorial consistency across many pieces have something most sites lack and this one has clearly worked out how to keep its voice steady across what reads as a growing archive.
Denemek isteyen herkese aynı şeyi söylüyorum. Sürekli engelleme derdi bitmek bilmiyor artık. Adımları doğru şekilde uyguladıktan sonra erişim hatasız açıldı. En doğru adrese ulaştığımı düşünüyorum ve size de buradan bahsetmek istiyorum: 1xbet spor bahislerinin adresi 1xbet spor bahislerinin adresi. Yani kısacası anlatmaya çalıştığım şu — casino sevenler için ideal bir ortam var gerçekten.
bonus kampanyaları bile beklentimin üzerindeydi. Kendi tecrübelerimi aktarıyorum size — en çok güvendiğim adres burası oldu artık. Şimdiden bol şans yardımı ve iyi eğlenceler…
Давно присматривался к разным платформам, честно говоря, перепробовал кучу сомнительных контор. Но прочитал реальные отзывы в тематическом канале про melbet. Решил потратить полчаса времени — и теперь сам рекомендую знакомым.
В общем, сами гляньте все условия по ссылке: melbet melbet. Кстати, если кому надо melbet скачать — там всё работает стабильно и без глюков. Я себе скачал чистую версию для андроида — никаких тормозов нет. И служба поддержки отвечает строго по делу. Сам теперь только туда захожу. Надеюсь, эта рекомендация кому-то пригодится.
Если честно, сам перерыл кучу форумов в поисках нормальной ткани для мебели. Оказалось, что выбрать подходящий вариант тот ещё квест. Короче, смотрите, вот здесь реально толково расписано про плотность, ворс и износостойкость для диванов и кресел, а главное — показаны варианты, которые не линяют. Вся полезная информация доступна здесь: цены на обивочные ткани цены на обивочные ткани Дальше сами гляньте фактические отзывы. Да, и не берите первое, что попалось — я уже обжёгся, когда брал дешёвую ткань для обивки мебели. Эта тема реально вывозит по износу. Кстати: ткань для обивки мебели купить лучше уже с нормальной пропиткой от грязи. Да и трётся такое полотно гораздо меньше. Не поленитесь, откройте.
Если честно, сам перерыл кучу форумов в поисках нормальной обивки. Оказалось, что выбрать подходящий вариант совсем непросто. Короче, смотрите, вот здесь реально толково расписано про плотность, ворс и износостойкость для диванов и кресел, а главное — показаны варианты, которые не выцветают. Вся полезная информация доступна здесь: купить ткань для мебели купить ткань для мебели Дальше сами гляньте примеры в интерьере. Да, и не берите первое, что попалось — я уже поплатился кошельком, когда брал дешёвую ткань для обивки мебели. Эта тема реально вывозит по соотношению цена-качество. Имейте в виду: ткань мебельная купить лучше уже с нормальной пропиткой от грязи. Да и садится такое полотно гораздо меньше. Не поленитесь, откройте.
Finding a proper ride in this city is a serious challenge. Half these local companies promise a custom Porsche and hand you a basic sedan with fake leather. 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, do some real digging first and read actual customer reviews. Miami without wheels is basically a hostage situation, especially since the AC must be arctic and you want zero mileage games.
Most of these local agencies are just shiny websites hiding the same overpriced junk, 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 rental coral gables exotic car rental coral gables. Also, definitely bring sunglasses unless you enjoy driving completely blind in that sun. Anyway, glad there’s at least one honest rental joint left in this town, hope this helps some of you save a few bucks.
Вот такая тема достала уже , когда человек просто срывается в штопор . Ломаешь голову , а вокруг одна потёмки . Моему брату потребовался действительно рабочий выход . Многие хватаются за таблетки , но это ерунда . Нужно именно врачебное вмешательство . Я перелопатил кучу сайтов , пока понял одну простую вещь: без нормальных условий ничего не выйдет . Потому что дома срыв стопроцентный . Если ищешь где сделать вывода из запоя в стационаре — тогда тебе сюда . В Нижнем Новгороде , кстати, развелось этих “центров” . Советую перейти на сайт, где реально раскладывают по полочкам про кодировку от алкоголя и работу нарколога . Вся суть здесь: наркологическая клиника нижний новгород наркологическая клиника нижний новгород После прочтения , сам удивился , сколько нюансов в этой теме. Главное — анонимность и палаты. Для нашего города это проверенный временем вариант.
Друзья, всем здравствуйте. долго откладывал этот момент до последнего, но вчера все-таки начал пользоваться сервисом в мелбет. Скажу так — теперь я их постоянный клиент. У кого обычный андроид — тоже всё без проблем запускается,. Надо melbet скачать на андроид? В интерфейсе даже ребёнок разберётся.
Короче, вся полезная инфа и актуальный сайт доступны вот тут: . Кстати, кто спрашивал про скачать мелбет казино — мобильная версия работает без лагов,. И вывод средств действительно быстрый. Я за месяц три раза выигрыш забирал — всё честно и без обмана. Всем искренне рекомендую. Удачи всем!
Вот такая тема реально бесит , когда родственник просто не может остановиться . Ищешь варианты , а вокруг одна потёмки . Моему брату потребовался срочный выход . Многие хватаются за таблетки , но это ерунда . Нужно именно профессиональная помощь . Пролистал пол-интернета , пока понял одну простую вещь: без круглосуточного наблюдения ничего толку не будет . В обычной квартире срыв гарантирован . Если ищешь где сделать качественного вывода из запоя с помещением в клинику — тогда тебе сюда . В Нижнем , кстати, тоже полно шарлатанов . Советую перейти на сайт, где реально раскладывают по полочкам про кодирование от алкоголизма и выезд врача . Подробности по ссылке: наркологические клиники нижний новгород наркологические клиники нижний новгород После прочтения , сам офигел , сколько нюансов в этой теме. И кстати, цены адекватные. Для нашего города это проверенный временем вариант.
casin? live crazy time https://crazy-timeitalia.com .
tattica crazy time tattica crazy time .
Now appreciating that the post did not require external context to follow, and a look at curiopact maintained the same self contained quality, content that respects new visitors by being readable without prerequisites is content with broader accessibility and this site has clearly invested in keeping each piece reader friendly for fresh arrivals.
Now recognising the specific pleasure of reading writing that shows real care for sentence shapes, and a look at fifejuno 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.