拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
lucky jet mostbet tipy https://mostbet35880.online
Decided to subscribe to the RSS feed if there is one, and a stop at americaamount confirmed that decision, content that I want delivered to me proactively rather than just remembered when I have time is content that has earned a higher level of commitment from me as a reader looking for reliable sources.
mostbet hisob ochish mostbet hisob ochish
melbet бонус http://www.melbet38319.online
A handful of memorable phrases from this one I will probably use later, and a look at douyindaoh added a couple more, content that contributes language to my own communication rather than just facts is content with a different kind of utility and this site is providing that linguistic utility consistently across what I read.
Now considering whether the post would translate well into a different form, and a look at canadagooses suggested similar versatility, content that could move into other media without losing its substance is content that has been built around ideas rather than around format and this site reads as idea first throughout posts.
J’ai essayé pas mal de sites mais rien de concluant. Télécharger un fichier sûr devenait un vrai casse-tête chinois. Après avoir suivi les étapes dans le bon ordre, tout a fonctionné. J’ai finalement trouvé la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet android https://www.pupusasriolempa.com. Bref, ce que je voulais vous dire — après l’avoir installée, j’étais vraiment bluffé.
les mises à jour se font toutes seules sans intervention. J’ai comparé plusieurs applis mais celle-ci est la meilleure — ne perdez plus un seul instant avec d’autres sites. J’espère que vous serez aussi conquis que moi…
J’ai essayé pas mal de sites mais rien de concluant. Télécharger un fichier sûr devenait un vrai casse-tête chinois. Après avoir suivi les étapes dans le bon ordre, tout a fonctionné. J’ai finalement trouvé la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet download 1xbet download. Bref, ce que je voulais vous dire — après l’avoir installée, j’étais vraiment bluffé.
l’installation était rapide comme l’éclair. J’ai comparé plusieurs applis mais celle-ci est la meilleure — ne perdez plus un seul instant avec d’autres sites. J’espère que vous serez aussi conquis que moi…
Just one of those reads that left me feeling slightly more capable rather than overwhelmed, and a look at cherubsa kept that empowering feel going, the difference between content that builds the reader up and content that intimidates them is huge and this site clearly knows which side of that line to stand.
Решил проблему только когда наткнулся — где условия адекватные, а не грабёж для международных платежей. В одном обсуждении попался дельный совет: перевод платежей за границу перевод платежей за границу Короче, если по факту — банковские комиссии могут быть грабительскими. Ну сами подумайте любой подобный трансграничный платёж — это головная боль с отслеживанием статуса. Вот ещё важный момент — перед финальным подтверждением обязательно сверьте итоговую сумму. Без этого легко потерять приличную сумму. Моё мнение — лучше один раз изучить тему перед любой отправкой.
Bookmark added without hesitation after finishing, and a look at jkg8ezc confirmed I should bookmark the homepage too rather than just this page, the rare site that earns category level trust rather than just single article approval is the kind I want to rely on across many different topics over time.
Thanks for a post that does not try to be funny when it is not the moment for it, and a stop at alarmera maintained the same appropriate seriousness, knowing when humour helps and when it just signals desperation for engagement is a sign of editorial maturity that many blogs have not developed yet.
Reading this brought back the satisfaction I used to get from blogs ten years ago, and a stop at livechatniagabet 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.
Came across this looking for something else entirely and ended up reading it through twice, and a look at canadagooses pulled me deeper into the site than I planned, the writing has a way of holding attention without resorting to manipulative cliffhangers or vague promises that never get delivered later down the page.
Now appreciating that the post left me with enough to say in a follow up conversation, and a look at douyindaoh added more material for those follow ups, content that prepares me for related conversations rather than just informing me alone is content with social utility and this site provides that social armament reliably for me.
J’ai testé plusieurs plateformes sans jamais être satisfait. Télécharger un fichier fiable devenait vraiment galère. Après avoir suivi les étapes dans le bon ordre, tout a fonctionné. J’ai finalement déniché la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet original télécharger https://www.shooters-pro.com. Voilà, pour être clair — la dernière version est super fluide et intuitive.
les mises à jour se font automatiquement. J’ai comparé plusieurs apps mais celle-ci est la meilleure — ne perdez plus votre temps avec d’autres sites. Je vous souhaite plein de réussite et de bons gains…
Considered against the flood of similar content this one stands apart in important ways, and a stop at rnhqzoar extended that distinctive feel, sites that find their own corner of a crowded topic and stay there are sites worth following and this one has clearly carved out its own space and committed to defending it carefully.
Came here from another site and ended up exploring much further than I planned, and a look at americaamount only encouraged more exploration, the kind of place where one click leads to another not through manipulative design but through genuinely interesting content is rare and worth highlighting when found like this somewhere on the open internet.
The conclusions felt earned rather than tacked on at the end like an afterthought, and a look at looiudw kept that careful structure going, you can tell when a writer has thought about the shape of their post versus just letting it ramble out and hoping for the best at the end which most do.
Питерцы отзовитесь. Фурнитуру ставят дешманскую. Короче, единственные кто не наебывает — купить готовую кухню в спб. Цены ниже на 30%. В общем, вся инфа здесь — купить готовую кухню в спб от производителя https://zakazat-kuhnyu-bnm.ru Не ведитесь на салоны. Перешлите тому кто ищет.
Reading this triggered a small but real correction in something I had assumed, and a stop at hyp360 extended that corrective effect, content that updates my beliefs through evidence rather than rhetoric is content with intellectual integrity and this site has earned that label consistently across the pieces I have read so far today.
Worth saying that the prose reads naturally without straining for style, and a stop at t2022031 maintained the same unforced quality, writing that achieves elegance without effort is the highest tier and this site has clearly worked out how to land that effortless quality consistently rather than only on the writers best days.
Now feeling the post has earned a proper recommendation rather than a casual mention, and a stop at pokerfree reinforced the recommendation strength, the difference between mentioning and recommending is a small editorial distinction I observe in my own conversations and this site has earned the upgraded recommendation level from me confidently today.
pin-up app https://pinup38742.help/
Worth saying that this is one of the better things I have read on the topic in months, and a stop at we7pftq reinforced that ranking, the topic is well covered by many sources but few do it with this level of care and the few that do deserve to be flagged so other readers can find them.
Picked this for a morning recommendation in our company chat, and a look at jkg8ezc suggested I will mention this site again later, recommending content into a workplace context is a small editorial act that requires confidence in the recommendation and this site is making me confident in those recommendations consistently here too.
Je cherchais une application mobile fiable pour mes paris. Je n’arrivais pas à trouver la version officielle sur le Play Store. Après avoir suivi les étapes dans le bon ordre, tout a fonctionné. J’ai finalement déniché la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet nouvelle version à télécharger 1xbet nouvelle version à télécharger. Bref, ce que je voulais vous dire — l’appli tourne parfaitement bien sur mon téléphone.
l’installation était rapide et simple, pas de tracas. J’ai comparé plusieurs apps mais celle-ci est la meilleure — ne perdez plus votre temps avec d’autres sites. Bonne chance à tous…
merge games merge games
Will be passing this along to a few people who would benefit from the perspective shared here, and a stop at hopperjaguar only added to what I will be sharing, this kind of generous content deserves to circulate widely rather than getting buried in some search engine algorithm tweak that pushes it down the rankings.
Reading the writers other posts after this one suggests the quality is consistent rather than peak, and a stop at livechatniagabet 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.
Люди подскажите. Заколебался я уже выбирать. То доставку месяц ждать. Короче, реальное производство в Питере — купить заказать кухню под ключ. Сделали за три недели. В общем, жмите чтобы не потерять — купить кухню в спб от производителя https://zakazat-kuhnyu-qwe.ru Не ведитесь на салоны. Сам мучался теперь знаю.
Ребята всем привет. Цены космос а качество мыло. То ЛДСП 16 мм а не 18. Короче, нашел нормальных производителей — купить заказать кухню по чертежам. Фасады на выбор из 50 цветов. В общем, жмите чтобы не потерять — где лучше купить кухню в спб где лучше купить кухню в спб Не ведитесь на салоны-прокладки с накруткой. Перешлите другу кто тоже мучается.
Ça faisait un moment que je voulais essayer ce site. Je ne trouvais pas la version officielle sur le Play Store. Finalement, j’ai pris le temps d’analyser tous les détails techniques. J’ai finalement déniché la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet mobile 1xbet mobile. Bref, ce que je voulais vous dire — la dernière version est super fluide et intuitive.
les mises à jour se font automatiquement. Je vous partage mon expérience personnelle — ne perdez plus votre temps avec d’autres sites. J’espère que vous serez aussi satisfaits que moi…
A nicely understated post that does not shout for attention, and a look at looiudw maintained the same quiet quality, understatement is a stylistic choice that distinguishes serious writing from attention seeking writing and this site has clearly committed to the understated approach as a core editorial value rather than just a phase.
Picked this site to mention to a colleague who would benefit, and a look at cherubsa added more material I will pass along, recommending sites to colleagues is a higher bar than recommending to friends because the professional context demands more careful curation and this site cleared the professional bar without me having to think.
Ребята кто в Питере живет. Задолбался я уже два месяца мучиться. То цены такие что проще новую квартиру купить. Короче, единственные кто не наваривается в тридорога — купить готовую кухню в спб со склада. Кромка на немецком оборудовании. В общем, вся инфа вот здесь — купить кухню от производителя в спб купить кухню от производителя в спб Проверяйте производителя по этому списку. Сам столько нервов потратил теперь делюсь.
A slim post with substantial content per word, and a look at hyp360 maintained the same density, the content per word ratio is something I track informally and this site scores high on that ratio compared to most sources I read regularly which is a quiet indicator of careful editorial work behind the scenes.
Left me wanting to read more rather than feeling burned out, that is a good sign, and a look at pokerfree confirmed there is plenty more here to explore, the kind of writing that builds appetite rather than killing it which is a rare quality on the modern open internet today across most categories of content.
Народ привет. Менеджеры врут про сроки. Короче, единственные кто не наебывает — купить кухню спб с доставкой. Гарантия 5 лет. В общем, смотрите по ссылке — купить кухню спб купить кухню спб Проверяйте производителя. Перешлите тому кто ищет.
Вот решил поделиться информацией — какой способ действительно работает для перевода денег за границу онлайн. Товарищ скинул ссылку на качественный разбор: международные транзакции международные транзакции Основной вывод, который я сделал — банковские комиссии сильно различаются. Дело в том, что любой международный перевод — связан с разными типами комиссий. Также стоит отметить — прежде чем отправлять средства имеет смысл изучить актуальные тарифы. Без этого можно столкнуться с неожиданными расходами. В итоге — необходимо проверять информацию перед любой отправкой средств.
The clarity here is something I really appreciate, especially compared to sites that pile on jargon for no reason, and a look at rnhqzoar was the same, simple direct sentences that actually deliver information instead of dancing around the point for paragraphs at a time which wastes reader patience.
merge merge
Quality writing that respects the reader’s intelligence without overloading them, and a quick look at k809 reflected that approach, a balanced thoughtful site that earns trust by being consistent rather than by shouting about how trustworthy it is which is the usual approach online sadly across most content categories.
Слушайте кто делал ремонт. Задолбался я выбирать кухню уже полгода. Пересмотрел ютуб с отзывами — голова пухнет. Короче, единственные кто не наебывает — купить заказать кухню по индивидуальным размерам. Фурнитура Blum а не говно. В общем, смотрите сами по ссылке — купить готовую кухню в спб от производителя https://zakazat-kuhnyu-gkl.ru Не ведитесь на салоны-прокладки с наценкой в два раза. Сам полгода мучился теперь делюсь.
Found the writing surprisingly fresh for what is by now a well covered topic, and a stop at kasih123box kept that freshness going across the related pages, original perspective on familiar ground is hard to come by and this site has clearly earned its place in the conversation rather than just rehashing old ideas.
Beyond the immediate post itself the editorial sensibility behind the site is what struck me, and a stop at claritycreatesmovement continued displaying that sensibility, content that reveals editorial choices through accumulated reading is content with structural quality and this site has clearly developed an underlying approach worth identifying through multiple sessions of reading.
Even on a quick first read the substance of the post comes through, and a look at 8la8la reinforced that immediate quality, content that does not require a slow careful read to demonstrate value but rewards one anyway is content with real depth and this site has produced work of that demanding depth class.
Люди помогите советом. На Авито ловить боюсь — нарвусь на брак. То цены такие что проще новую квартиру купить. Короче, единственные кто не наваривается в тридорога — купить готовую кухню в спб со склада. Фасады из влагостойкого МДФ. В общем, смотрите сами по ссылке — купить готовую кухню в спб от производителя https://zakazat-kuhnyu-rty.ru Не ведитесь на салоны в ТЦ которые просто заказывают у тех же китайцев. Сам столько нервов потратил теперь делюсь.
Je cherchais une application mobile de qualité pour mes paris. Télécharger un fichier sûr devenait un vrai casse-tête chinois. Finalement, j’ai pris le temps d’analyser tous les détails techniques. J’ai finalement trouvé la bonne source et je voulais vous partager tous les détails, vous pouvez consulter les informations à jour ici: 1xbet app download apk 1xbet app download apk. Bref, ce que je voulais vous dire — après l’avoir installée, j’étais vraiment bluffé.
l’installation était rapide comme l’éclair. Je vous fais part de mon retour d’expérience — croyez-moi, vous ne le regretterez pas, tentez le coup. Je vous souhaite plein de réussite et de gros gains…
Вот решил поделиться информацией — как правильно организовать процесс для международных платежей. Товарищ скинул ссылку на качественный разбор: международные системы перевода денег https://mezhdunarodnye-platezhi-fra.ru Ключевой момент, на который стоит обратить внимание — разница в итоговой сумме бывает значительной. Важно понимать любой международный перевод — связан с разными типами комиссий. И ещё один момент — прежде чем отправлять средства имеет смысл изучить актуальные тарифы. В противном случае можно столкнуться с неожиданными расходами. В итоге — лучше заранее разобраться в вопросе перед любой отправкой средств.