拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Genuinely useful read, the points are practical and easy to apply right away, and a quick look at discovermeaningfuldirection confirmed that this site is consistent in that approach, looking forward to digging through the rest of it when I get the chance to sit down properly later in the week or this weekend.
Just wanted to say this was useful and leave a small note of thanks, and a quick visit to buildstrategicmovement earned a similar nod from me, the small acknowledgements add up over time and represent the real economy of trust that good content runs on across the open and increasingly fragmented modern internet.
The headings made navigating the post simple even when I needed to find a specific section quickly, and a look at findmomentumnextstep continued the same thoughtful structure, small details like clear headings show that someone is actually thinking about how the reader uses the page rather than just filling it for length alone.
Pass this along to colleagues if the topic comes up, the framing here is sensible, and a stop at cadetgrails adds more useful angles to share, the kind of content that improves conversations rather than just feeding them is what makes a resource genuinely valuable in professional contexts going forward over time and across project boundaries too.
Reading this gave me a small sense of progress on a topic I have been slowly working through, and a stop at createforwardsteps added another step forward, learning happens in small increments across many sources and finding sources that consistently contribute is the actual practical value of careful curation in an information rich world.
Если интересует эта тема, вот свежая инфа. Нашел чистый вариант, делюсь полезной ссылкой: мелбет скачать на айфон.
Этот букмекер предлагает отличные условия для игроков, выбор спортивных дисциплин впечатляет. Там еще есть нормальные live-ставки.
Если только заводите аккаунт дают неплохой приветственный бонус, рекомендую воспользоваться. Всем удачи!
Чтобы быстро и эффективно вычислить по номеру телефона, воспользуйтесь такими штуками которые дают инфу.
В общем, тема такая, не для паники.
Противозаконные способы, например взлом или слежка, не должны использоваться.
Короче, не нарывайтесь.
Now recognising the specific pleasure of reading writing that shows real care for sentence shapes, and a look at itucox 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.
Looking at the surface design and the substance together this site has both right, and a look at createprogressdirection reinforced that integrated quality, sites where presentation and content reinforce each other rather than fighting are sites with full editorial coherence and this one has clearly invested in both layers in a balanced way.
Honestly the simplicity of the explanation made the topic click for me in a way other writeups had not, and a look at createforwardprogress continued that clarity into related areas, when a writer gets the level of explanation right the reader does the heavy lifting themselves and the post just enables it.
A quiet piece that did not try to compete on volume, and a look at learnandgrowstrong maintained that selective approach, sites that publish less but better are increasingly rare in an environment that rewards volume and this one has clearly chosen quality cadence over quantity which is a brave editorial decision in current conditions.
Found the post genuinely useful for something I was working on this week, and a look at seovista added more material I will reference, content that connects to my actual life and work rather than just being interesting in the abstract is the kind I will pay attention to and return to repeatedly.
Reading this in three sittings because the day was fragmented, and the piece survived the fragmentation, and a stop at explorefutureoptionsnow held up under similar reading conditions, content engineered for continuous attention is fragile in modern conditions and this site reads as durable across the realistic ways people consume content today.
Worth marking this site as one to come back to deliberately rather than by accident, and a stop at learnandprogresssteadilynow reinforced that intention, the difference between sites I find again by chance and sites I return to on purpose is meaningful and this one has clearly moved into the deliberate return category for me.
Skipped breakfast still reading this and finished hungry but satisfied, and a stop at discovernewanglesnow kept me past breakfast time, content that displaces basic biological needs is content with serious attentional pull and the writers here are clearly capable of producing that level of engagement which is genuinely impressive these days.
Слушайте, кому актуально, свежая инфа. Сам долго ковырялся, в итоге скачал отсюда: скачать мелбет.
Вообще проект реально топовый — коэффициенты вполне адекватные. Плюс ко всему можно ставить прямо в режиме реального времени.
Для новых пользователей активируется стартовый фрибет, рекомендую воспользоваться. Пишите, если возникнут вопросы.
Took the time to read every paragraph rather than skimming for the punchline, and a quick visit to growwithfocusedexecution earned the same careful attention from me, that is the highest signal I can give about content quality because my default mode is rapid scanning rather than deliberate reading on most pages.
Solid value packed into a relatively short post, that takes skill, and a look at findnewopportunitypaths continues the dense useful content across more pages, this site clearly understands that respecting reader time is itself a form of generosity which is something most blog operations seem to have forgotten lately across the wider open web.
Reading this gave me a small jolt of recognition for an experience I thought was just mine, and a stop at explorefuturegrowthlanes produced more such jolts, content that universalises private experiences without flattening them is doing genuinely useful work and this site is providing that recognition function for me reliably across topics I read.
Давно искал нормальный вариант, где реально учат делу. Особенно когда речь про образовательные онлайн школы — тут ведь нужна нормальная подача. У меня племянник как раз искал гибкий график, так что намучились мы знатно. В общем, вся подробная информация вот тут: онлайн-школа для детей онлайн-школа для детей Я кстати ещё пару месяцев назад вообще думал, что это всё несерьёзно. Оказалось — всё гораздо лучше. У них и домашка без перегруза. В общем, рекомендую присмотреться. Удачи!
Appreciated the way each section connected smoothly to the next without abrupt jumps, and a stop at learnandoptimizegrowth kept that flow going nicely, transitions are something most blog writers ignore but the difference is huge for the reader who is trying to follow a sustained line of thought today across many different topics.
Honestly slowed down to read this carefully which is not my default, and a look at shopmint kept me in that careful reading mode, the kind of writing that demands attention by being worth attention is rare in a media environment full of content engineered to be skimmed not read with any real focus today.
Appreciated that the writer trusted the reader to follow along without constant restating of earlier points, and a look at buildsmartplanning continued that respect for the reader, treating an audience as capable adults rather than as people to be hand held through every paragraph is something I notice and value highly across the open internet today.
Я в шоке от количества курсов в последнее время, но после изучения реальных отзывов наткнулся на один нормальный человеческий вариант. К слову, вот что я понял: современная школа онлайн — это серьёзный и комплексный подход. Там и преподаватели живые и вовлеченные, так что прогресс виден сразу.
В общем, кому надоело искать среди кучи мусора в теме образовательные онлайн школы — посмотрите условия, вот здесь все выложено без лишней воды: школа онлайн для детей школа онлайн для детей.
Думаю, это как раз то, что сейчас нужно многим родителям. Потому что без четкой системы в обучении сейчас вообще никуда, а тут организована именно грамотно выстроенный учебный процесс. Советую не тянуть и сразу изучить тему.
Now understanding why someone recommended this site to me a while back, and a stop at exploreuntappeddirectionpaths explained the recommendation, sometimes recommendations make sense only after experience and this site has finally clicked into place as the kind of resource I now understand was being recommended for sound editorial reasons by my friend.
Came across this looking for something else entirely and ended up reading it through twice, and a look at eagerkilt 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.
Appreciate the thoughtful approach, the writer clearly took time to make this readable for someone who is not already an expert, and a look at seostreet kept that going nicely, easy on the eyes and easy on the brain which is always a winning combination when reading on a busy day.
Bookmark earned and folder updated to track this site separately, and a look at ivafix confirmed the folder upgrade was the right call, organising my reading list so that good sites do not get lost in a sea of casual bookmarks is something I do more carefully now and this site warranted its own spot.
Came in tired from a long day and the writing held my attention anyway, and a stop at explorefreshstrategicgrowth kept that going, content that can engage a fatigued reader is doing something right because most online reading happens in suboptimal conditions like that one and quality content adapts to it without complaint.
Давно хотел найти толковое место, где реально учат делу. Особенно когда речь про онлайн-школу для детей — тут ведь важен подход. У меня сын как раз начал учиться дистанционно, так что намучились мы знатно. В общем, вся подробная информация вот тут: lbs что это https://shkola-onlajn-55.ru Я кстати ещё раньше вообще относился скептически к таким форматам. Оказалось — всё гораздо лучше. У них и домашка без перегруза. Доволен как слон, если честно. Надеюсь, поможет в выборе.
Thank you for being clear and direct, that simple approach saves so much frustration on the reader’s end, and a stop at buildsmartforwarddirection only made me more sure of it, the rest of the content seems to follow the same pattern which is a great sign of consistent editorial care behind the scenes.
Compared to the usual results for this kind of search this site stands well above the average, and a quick visit to startbuildingstrategically kept the standard high, you can tell within seconds whether a site is going to waste your time or actually deliver and this one clearly delivers without any false starts.
Признаюсь, сначала очень сильно сомневался в этой затее, но после изучения реальных отзывов наткнулся на один действительно толковый вариант. Если кратко, вот что я понял: современная онлайн-школа для детей — это уровень на порядок выше обычного. Там и преподаватели живые и вовлеченные, что очень радует на практике.
В общем, кому надоело искать среди кучи мусора в теме образовательные онлайн школы — почитайте подробности, вот здесь все разжевано до мелочей: онлайн школа 8 класс онлайн школа 8 класс.
А я пока пойду дальше разбираться с расписанием. Потому что обычная школа часто проигрывает по всем фронтам, а тут организована именно частная школа онлайн. Советую не тянуть и сразу изучить тему.
Cuts through the usual marketing fluff that dominates this topic online, and a stop at unicorntempo kept the same clean approach going, this is the kind of writing that respects the reader’s time rather than wasting it on repetitive setups before finally getting to the point at hand which is what most sites do.
Reading this back to back with a similar piece elsewhere made the quality difference obvious, and a stop at explorefuturegrowthlanes only widened the gap, comparing content side by side is a useful exercise and the gap between this site and average competitors in the space is large enough to be noticeable from the first paragraph.
real money monopoly live real money monopoly live .
Really liked the calm tone running through the post, no shouting and no urgency forced into the writing, and a look at startmovingstrategically kept that quiet confidence going, the kind of voice that makes the reader feel respected rather than yelled at which is depressingly common across most modern blog content these days.
A piece that exhibited the kind of patience that good writing requires, and a look at findnewopportunitypaths 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.
Genuine reaction is that I will probably think about this on and off for a few days, and a look at shopmint added fuel to that, the best content lingers in your head after you close the tab rather than evaporating immediately and this site clearly knows how to write that kind of memorable content.
сколько стоит перевозка авто перевозка авто москва сколько стоит
Found this via a link from another piece I was reading and the click was worth it, and a stop at explorefutureoptions 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.
High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at findnewperspective 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.
Decided after reading this that I would check this site weekly going forward, and a stop at buildsmartplanning reinforced that commitment, deciding to add a site to a regular rotation requires meeting a quality bar that very few places clear and this one cleared it cleanly without any noticeable effort or marketing push behind it.
Now adjusting my expectations upward for the topic based on this post, and a stop at exploreuntappeddirectionpaths continued that bar raising effect, content that resets what I think is possible on a subject is doing real work in shaping my standards and this site is providing those bar raising experiences at a notable rate during sessions.
Давно искал нормальный вариант, где реально учат делу. Особенно когда речь про частную школу онлайн — тут ведь без фанатизма и воды. У меня дочка как раз начал учиться дистанционно, так что намучились мы знатно. В общем, можете глянуть сами: онлайн-школа для детей онлайн-школа для детей Я кстати ещё пару месяцев назад вообще относился скептически к таким форматам. Оказалось — зря сомневался. У них и домашка без перегруза. В общем, рекомендую присмотреться. Удачи!
Давно присматривался к разным предложениям, где реально дают живые знания. Особенно когда речь про образовательные онлайн школы — тут ведь без фанатизма и воды. У меня сын как раз начал учиться дистанционно, так что намучились мы знатно. В общем, посмотрите по ссылке: онлайн образование школа онлайн образование школа Я если честно ещё пару месяцев назад вообще относился скептически к таким форматам. Оказалось — зря сомневался. У них и домашка без перегруза. Сам теперь советую знакомым. Удачи!
Spent a few minutes here and came away with a clearer picture of the topic, the writing keeps things simple without dumbing them down, and after a stop at findmomentumnextstage the rest of the points lined up neatly which is something I appreciate when I am short on time and need answers fast.
Well crafted post, the structure flows naturally from one point to the next without forcing transitions, and a stop at findyourwinningdirection kept the same flow going, you can tell when a writer has thought about how their content reads rather than just what it contains and this is one of those examples.
Я в шоке от количества предложений в последнее время, но после советов хороших знакомых наткнулся на один действительно толковый вариант. Если кратко, вот что я понял: современная онлайн-школа для детей — это уровень на порядок выше обычного. Там и преподаватели живые и вовлеченные, что очень радует на практике.
В общем, кому понимает толк в теме онлайн образование школа — убедитесь во всём сами, вот здесь все расписано в деталях: онлайн школа для детей онлайн школа для детей.
Думаю, это как раз то, что сейчас нужно многим родителям. Потому что обычная школа часто проигрывает по всем фронтам, а тут организована именно живое регулярное общение с кураторами. Советую не тянуть и сразу изучить тему.
Честно говоря, долго выбирал, направления для детей, но после изучения реальных отзывов наткнулся на один нормальный человеческий вариант. Короче, вот что я понял: современная школа онлайн — это серьёзный и комплексный подход. Там и преподаватели живые и вовлеченные, так что прогресс виден сразу.
В общем, кому надоело искать среди кучи мусора в теме онлайн образование школа — посмотрите условия, вот здесь все выложено без лишней воды: lbs что это lbs что это.
А я пока пойду дальше разбираться с расписанием. Потому что без четкой системы в обучении сейчас вообще никуда, а тут организована именно частная школа онлайн. Держите этот вариант у себя в закладках.