拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Honest assessment is that this is one of the better short reads I have had this week, and a look at sddy80 reinforced that, the bar for short content is low because most of it sacrifices substance for brevity but this site manages both at once which is harder than it sounds for most writers attempting it.
Picked up a couple of new ideas here that I can actually try out, and after my visit to pujckanarekonstrukci I have even more notes saved, this is the kind of resource that pays you back for the time you spend on it which is rare to come across in this corner of the web.
I’ve got the horror stories to back that up. You see this amazing deal online — shiny Audi, unlimited miles, price that makes you want to book right now. Totally different car waiting — scratches everywhere, AC blowing warm, and that “amazing price”? Doesn’t include the mandatory $50 daily insurance or the $400 “service fee” they add at the counter. Nineteen years in South Florida and these tricks still surprise me. luxury car rental miami fl. anyone who’s taken the bus here knows what I mean. Key Biscayne sunset, Bal Harbour shopping, or a spontaneous drive down to Homestead — AC must freeze your face off and unlimited miles or no deal. most are shiny garbage with fake five-star reviews. no games, no switch, no hidden fees. Here’s the only honest source for premium rides across South Florida
miami car rental luxury miami car rental luxury also bring quality shades unless you like driving into the sun. Anyway glad there’s at least one straight shooter left.
Alright, last one I swear — but someone’s gotta warn people about this Miami rental mess. Then you actually go to pick up the car. Different car waiting — dents everywhere, smells like cheap air freshener covering something worse, and that “killer price”? Doesn’t include the mandatory $55 daily toll pass or the $450 “convenience fee” they invent at checkout. Twenty years in South Florida and these clowns still almost get me. miami luxury car rental. anyone who’s tried public transport here knows I’m not joking. South Beach dinner, Design District shopping, or a spontaneous Keys adventure — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake five-star reviews from God knows where. no games, no bait-and-switch, no hidden fees on page 8. prices change hourly so don’t wait around:
range rover car rental range rover car rental also bring polarized shades unless you enjoy driving into the sun like a zombie. Anyway glad there’s at least one honest operator left in this town.
I’ve paid my dues so you don’t have to. You spot this killer offer online — brand new Porsche, zero excess, price that screams “book me”. Plus they freeze $5500 on your card and say “it’ll drop off in two weeks”. Fool me twenty times? That’s just called Tuesday in the 305. luxury car rental miami fl. Miami without real wheels is basically a disaster. leather seats that won’t weld to your legs in July. I’ve tested so many rental companies across Dade, Broward, and Palm Beach. no games, no bait-and-switch, no hidden fees on page 8. Here’s the only straight shooter for premium rides across South Florida
luxury car rental miami luxury car rental miami also bring polarized shades unless you enjoy driving into the sun like a zombie. Anyway glad there’s at least one honest operator left in this town.
Decent post that improved my afternoon a small amount, and a look at xiaoxi02 added a bit more to that, sometimes the small wins online add up over time and a useful site like this one is the kind of place that contributes consistently to those small wins for me lately across many different topics I follow.
Worth flagging this post as worth a careful read rather than a casual skim, and a stop at linencovevendorroom earned the same careful approach, the few sites that warrant slower reading are sites I now treat differently from the daily content stream and this one has clearly moved into that elevated treatment category.
monopoly india https://monopolyy.live/
score monopoly big baller https://monopolyy.live/
After reading several posts back to back the consistent voice across them is impressive, and a stop at loansseptember continued that voice consistency, sites that maintain a single coherent voice across many pieces by potentially many writers represent serious editorial discipline and this one has clearly developed the institutional consistency needed for that.
how to play monopoly game https://monopolyy.live/
Кстати, недавно наткнулся на обсуждение реальных кейсов. Сам уже не первый месяц ищу нормальный способ провести транзакцию, без лишних проблем и комиссий. В общем, если вас тоже интересуют детали — узнайте подробности тут. Вся необходимая информация по международным переводам: переводы за рубеж https://mezhdunarodnye-platezhi-lor.ru Кстати, имейте в виду, что без нормального обменного курса любые трансграничные переводы превращаются в головную боль. Добавлю по опыту — стоит сравнивать несколько вариантов, прежде чем переводить.
live monopoly results https://monopolyy.live/
monopoly big baller prediction https://monopolyy.live/
Долго откладывал, но созрел — как нормально отправлять деньги для международных переводов. Пока сидел искал инфу — держите, вот нормальный разбор: перевод денег за границу перевод денег за границу Самое важное, что я понял — есть реальные подводные камни. Ну сами понимаете любой подобный?? перевод — это лотерея с банковскими процентами. Вот ещё какой момент — прежде чем отправлять обязательно сравните хотя бы пару вариантов. В противном случае легко переплатить в два раза. Моё мнение — лучше сначала изучить тему.
Долго не мог понять, в чем подвох — как выбрать реально работающий способ для международных переводов. Случайно набрел на годный материал: перевод средств за границу перевод средств за границу Самое главное, что я вынес — банковские комиссии могут быть грабительскими. Ну сами подумайте любой перевод за границу онлайн — это головная боль с отслеживанием статуса. И да, кстати — перед финальным подтверждением обязательно сверьте итоговую сумму. В противном случае легко попасть на лишние траты. Как итог — лучше один раз изучить тему перед любой отправкой.
If I am being honest this is the kind of site I quietly hope my own work will someday resemble, and a stop at nabytekidea extended that aspirational feeling, finding work that models what I want to produce is part of why I read carefully and this site has been performing that modelling function for me lately consistently.
Reading this triggered a small but real correction in something I had assumed, and a stop at bleckblog 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.
Decided to set a calendar reminder to revisit, and a stop at biganki-ef extended that revisit list, calendar entries for content are a level of commitment I rarely make but when I do they signal a higher regard than a simple bookmark and this site has earned that calendar tier of relationship from me today.
Reading this slowly in the morning before opening email, and a stop at acquirementsa extended that protected attention, content that earns the prime morning reading slot before the daily distractions begin is content with elevated status and this site has earned that prime slot consistently in my recent reading habits clearly.
Glad to find something on this topic that does not start with three paragraphs of throat clearing before getting to the point, and a stop at depo50rbgcr also dives right in, respect for the readers time shows up in small editorial choices like this and they add up to a real difference quickly.
Approaching this site through a casual link click and being surprised by what I found, and a look at aquifera extended the surprise, the rare experience of stumbling into excellent independent content rather than predictable mediocrity is one of the actual remaining pleasures of casual web browsing and this site provided it cleanly.
monopoly company in india https://monopolyy.live/
Постоянно возвращаюсь к этой теме — где лучше всего организовать международных платежей. В одном блоге вычитал вот этот материал: перевод средств за границу https://mezhdunarodnye-platezhi-nar.ru Суть в том, — комиссии могут сильно отличаться. Да и сами понимаете перевод за границу онлайн — это лотерея с банковскими комиссиями. Кстати, — до любой операции проверьте несколько вариантов. В противном случае легко пролететь с курсом. Резюмируя, — не поленитесь проверить информацию.
monopoly synonym monopoly synonym.
Came away feeling slightly smarter than I was when I started, that is a real win, and a stop at alitanwir added a bit more to that, the rare site that actually transfers some of its knowledge to the reader in a way that sticks rather than just creating an illusion of learning briefly.
monopoly go! https://monopolyy.live/
electric monopoly https://monopolyy.live/
Felt the post had been written without using a single buzzword, and a look at sddy80 continued that clean vocabulary, content free of jargon and trendy phrases reads better and ages better and this site has clearly committed to a vocabulary that will not feel dated in three years which is impressive editorially.
В общем, решил поделиться — какой вариант реально рабочий для международных транзакций. Пока сидел искал инфу — смотрите, тут годнота: комиссия за международный перевод комиссия за международный перевод Короче, суть такая — есть реальные подводные камни. Ну сами понимаете любой перевод за границу онлайн — это лотерея с банковскими процентами. Обратите внимание — до любой операции обязательно сравните хотя бы пару вариантов. Без этого легко попасть на лишние траты. Короче — стоит один раз разобраться.
Now considering the post as evidence that careful blog writing is still possible, and a look at pujckanarekonstrukci 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.
Честно, задолбался искать нормальный вариант — где условия адекватные, а не грабёж для международных платежей. В одном обсуждении попался дельный совет: перевод денежных средств за границу перевод денежных средств за границу Самое главное, что я вынес — банковские комиссии могут быть грабительскими. Потому что любой очередной международный перевод — это реальная финансовая лотерея. И да, кстати — до любой операции с валютой проверьте все комиссии до копейки. В противном случае легко попасть на лишние траты. Короче — стоит разобраться заранее перед любой отправкой.
Worth flagging that this approach to the topic is fresh without being contrarian, and a stop at linencovevendorroom extended the same fresh angle, finding original perspective on familiar subjects is rare and this site has clearly developed its own way of seeing rather than echoing the dominant takes from elsewhere consistently.
mostbet dəstək çat http://mostbet02606.online/
Вот уже несколько недель мучаюсь с этим вопросом — где лучше всего организовать международных платежей. В одном блоге вычитал вот этот обзор: международный платежный агент https://mezhdunarodnye-platezhi-nar.ru Суть в том, — комиссии могут сильно отличаться. Да и сами понимаете такая транзакция — это риск переплатить в два раза. Обратите внимание — перед тем как отправлять сравните условия. Без этого легко остаться в минусе. Резюмируя, — не поленитесь проверить информацию.
Долго откладывал, но созрел — какой вариант реально рабочий для перевода денег за границу онлайн. Порылся в интернете — смотрите, тут годнота: агент по международным платежам https://mezhdunarodnye-platezhi-tov.ru Короче, суть такая — комиссии у всех разные как с неба. Потому что любой очередной международный перевод — это лотерея с банковскими процентами. И да, кстати — перед финальным кликом обязательно сравните хотя бы пару вариантов. Иначе легко попасть на лишние траты. Как итог — не поленитесь проверить информацию перед отправкой.
Наболело уже, честно говоря — какой вариант реально рабочий для платежей за рубежом. Скинули ссылку в телеграме — держите, вот нормальный разбор: онлайн перевод денег за границу https://mezhdunarodnye-platezhi-tov.ru Короче, суть такая — комиссии у всех разные как с неба. Согласитесь любой перевод за границу онлайн — это лотерея с банковскими процентами. Вот ещё какой момент — прежде чем отправлять посчитайте итоговую сумму с комиссиями. Без этого легко переплатить в два раза. Моё мнение — стоит один раз разобраться.
Left me wanting to read more rather than feeling burned out, that is a good sign, and a look at focusignition 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.
A small editorial detail caught my attention, the way headings related to body text, and a look at flaxdune maintained that careful relationship, structural details like that show up to readers who notice them and the writers here have clearly thought about every level of the piece rather than just the words.
Comfortable read, finished it without realising how much time had passed, and a look at nabytekidea pulled me into more pages the same way, the absence of friction in good content lets time disappear and that is one of the highest compliments I can pay any piece of writing I find online during a regular search session.
Took a quick scan first and then went back to read properly because the post deserved it, and a stop at aquifera kept me reading carefully too, the kind of writing that earns a slower second pass rather than getting skimmed and forgotten is something I value highly when I happen to find it.
I’ve got the horror stories to back that up. You see this amazing deal online — shiny Audi, unlimited miles, price that makes you want to book right now. Totally different car waiting — scratches everywhere, AC blowing warm, and that “amazing price”? Doesn’t include the mandatory $50 daily insurance or the $400 “service fee” they add at the counter. Nineteen years in South Florida and these tricks still surprise me. luxury car rental miami fl. anyone who’s taken the bus here knows what I mean. leather seats that won’t melt your skin in August. I’ve tried maybe 100 rental companies across Dade and Broward. Finally found one outfit that actually delivers. prices change daily so check it out:
car hire miami beach florida car hire miami beach florida Yeah parking in Brickell will cost you — but that’s life here. drive safe and skip that “tire protection” upsell — total waste.
Worth observing that the post landed without needing a flashy headline to hook attention, and a stop at acquirementsa did the same, content that earns engagement through substance rather than packaging is the kind I trust more deeply and this site has clearly chosen substance as the primary lever for reader engagement throughout.
Постоянно возвращаюсь к этой теме — как найти адекватный способ перевода денег за границу онлайн. В одном блоге вычитал вот этот обзор: перевод за рубеж https://mezhdunarodnye-platezhi-nar.ru Если коротко, — комиссии могут сильно отличаться. Да и сами понимаете такая транзакция — это всегда стресс. Обратите внимание — до любой операции почитайте свежие отзывы. В противном случае легко остаться в минусе. Резюмируя, — не поленитесь проверить информацию.
Most blog writing on this subject reaches for the same handful of arguments and this post avoided them, and a look at biganki-ef continued the original treatment, content that finds its own path through territory other writers have flattened is content with real authorial energy and this site has plenty of that distinctive energy.
Знаете, — как найти адекватный способ международных транзакций. Наткнулся случайно в обсуждении вот этот разбор: переводы денег за границу https://mezhdunarodnye-platezhi-nar.ru Если коротко, — не все способы одинаково выгодны. Потому что такая транзакция — это потеря времени без нормальной инфы. Кстати, — перед тем как отправлять почитайте свежие отзывы. Иначе легко пролететь с курсом. Как по мне — лучше один раз изучить тему.
Решил проблему только когда наткнулся — какой сервис не сдирает три шкуры для международных платежей. Товарищ скинул ссылку на нормальный разбор: переводы для юридических лиц переводы для юридических лиц Самое главное, что я вынес — не все способы одинаково прозрачны. Согласитесь, абсурд любой подобный трансграничный платёж — это головная боль с отслеживанием статуса. И да, кстати — перед финальным подтверждением проверьте все комиссии до копейки. В противном случае легко попасть на лишние траты. Короче — не ленитесь проверять информацию перед любой отправкой.
Решил проблему только когда наткнулся — какой сервис не сдирает три шкуры для международных переводов. Вот здесь всё по полочкам расписано: международные переводы денег международные переводы денег Суть вот в чём — банковские комиссии могут быть грабительскими. Согласитесь, абсурд любой подобный трансграничный платёж — это реальная финансовая лотерея. Обратите внимание, многие не в курсе — прежде чем отправлять деньги сравните эффективный курс. Иначе легко попасть на лишние траты. Как итог — стоит разобраться заранее перед любой отправкой.
Closed the tab with a small sense of finality rather than the usual rushed exit, and a stop at batdeu produced the same considered closing, when reading ends with deliberate satisfaction rather than impatient skip you know the time was well spent and this site is producing those satisfying endings consistently across what I read.
Decided to write a short note to the author if there is contact info anywhere, and a stop at alitanwir 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.