拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at coppercrown 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.
Coming back tomorrow when I can give this a proper read, the post deserves better attention than I can give right now, and a look at fernpiers suggests there is plenty more here that deserves the same treatment, definitely a site I will be exploring properly over the next few days when I can.
Now appreciating that the post did not require me to agree with the writer to find it valuable, and a look at createimpactplanningnow maintained the same useful regardless of agreement quality, content that informs even when it does not convince is content with broader utility and this site reads as useful even when I disagree.
Glad I clicked through from where I did because this turned out to be worth the time spent, and after portmill I had a fuller picture, the kind of content that earns its visitors through delivering value rather than chasing them through aggressive advertising or constant pop ups appearing everywhere on the screen lately.
Found a small mental shift after reading this, the framing here is just a bit different from the standard takes online, and a look at explorebetterthinking extended that fresh perspective across more material, the rare site whose voice actually changes how you think about something rather than just confirming existing beliefs.
A genuine compliment to the writer for keeping the post focused on what mattered, and a look at ideasintoresults continued that disciplined focus, focus is a editorial choice that compounds across many small decisions and this site has clearly made those small decisions consistently across what I have read so far this week here.
Reading this prompted a brief but useful conversation with a colleague who happened to walk by, and a stop at startmovingforward extended that conversational seed, content that becomes a starting point for in person discussion rather than ending in solitary reading is content with social generative energy and this site has plenty of it apparently.
Just sat back at the end of the post and felt grateful that someone took the time to write it, and a look at fairfinch extended that gratitude across more of the site, recognising effort behind quality work is part of what makes the open web a community rather than just a marketplace today.
Denemek isteyen arkadaşlara hep aynısını söylüyorum. Herkes farklı bir şey anlatıyor kafam allak bullak oldu. Gerekli teknik incelemeleri tek tek tamamlayıp sistemi test ettim. Güvenilir bir kaynak bulmanın ne kadar zor olduğunu hepimiz biliyoruz işte size o adres: 1xbet güncel giriş 1xbet güncel giriş. Şimdi size doğru düzgün anlatayım — casino oyunlarında iddialı olanlar bilir zaten.
Hiçbir sıkıntı yaşamadım bugüne kadar oynarken. Birçok yeri denedim ama burada karar kıldım — kesinlikle pişman olacağınızı sanmıyorum deneyin. Herkese hayırlı olsun…
Closed it feeling slightly more competent in the topic than I started, and a stop at loopbough reinforced that competence boost, real learning is rare in casual online reading but it does happen sometimes and this site managed to make it happen for me today which is genuinely worth pausing to acknowledge.
Ребята, выручайте! Решил обновить кухонный уголок, а старую обивку уже не найти. Теперь мучаюсь — какую взять ткань для мебели, чтобы и выглядело достойно, и кошачьи когти выдержало. материал для обтяжки мебели https://tkan-dlya-mebeli-1.ru Кто разбирается в тканях для мебели, подскажите, что сейчас берут. Буду благодарен за любые советы, особенно от тех, кто сам перетягивал.
Uzun zamandır böyle bir yer arıyordum valla. Herkes farklı bir şey anlatıyor kafam allak bullak oldu. Adımları doğru sırayla uyguladıktan sonra bağlantı hatasız açıldı. Güvenilir bir kaynak bulmanın ne kadar zor olduğunu hepimiz biliyoruz işte size o adres: 1xbet güncel giriş 1xbet güncel giriş. Şimdi size doğru düzgün anlatayım — canlı bahis kısmı bile yeterli aslında.
Hiçbir sıkıntı yaşamadım bugüne kadar oynarken. İşin aslını söylemek gerekirse — başka yerde kaybolup durmayın yani. Umarım siz de memnun kalırsınız…
Honest assessment is that this is one of the better short reads I have had this week, and a look at grovefarm 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.
Yeni başlayanlar için biraz karışık gelebilir. Her gün yeni bir engelleme haberi alınca insan bıkıyor. Ama sonunda her derde deva bir adrese ulaştım.
Bahis severler bilir burayı denemeden geçmeyin. Güncel sistem ayarlarını kontrol ettikten sonra erişim sağlamak en mantıklısı. Giriş adresi tam olarak şu şekilde: 1xbet güncel giriş 1xbet güncel giriş. Kısacası durum şu — 1xbet spor bahislerinin adresi değişti.
Bonus kampanyaları fena değil. Kendi tecrübelerimi aktarayım — en memnun kaldığım yer burası oldu. Umarım işinize yarar…
Ребята, выручайте! Решил обновить кухонный уголок, а старую обивку уже не найти. Посоветуйте нормальную мебельную ткань для частого использования. ткань для обивки дивана https://tkan-dlya-mebeli-1.ru Говорят, флок и микровелюр быстро вытираются, а рогожка лучше. Нужен метров 15-20, может, кто знает нормального поставщика.
A memorable post for me on a topic I had thought I was tired of, and a look at executeideasclean suggested the same site can refresh other tired topics, sites that can revive my interest in subjects I had written off as exhausted are doing rare work and this one is clearly doing that for me today.
Коллеги, всем привет! Организуем встречу с дилерами, хочется сделать им приятные и полезные презенты. Посоветуйте нормальное изготовление корпоративных сувениров — чтобы и кружки не облазили, и ручки писали. сувенирная продукция под заказ сувенирная продукция под заказ А то насчитали мне за брендированные блокноты космос, хотя заказывали всего 50 позиций. Бюджет пока не утвержден, поэтому хочу понять рыночные цены. А то маркетинговые агентства такой ценник лупят — закачаешься.
Случайно наткнулся на один гайд, Ситуация дурацкая, постоянно звонят с незнакомого телефона, а кто — вообще непонятно. Полез в глубокий поиск по веткам. И знаете что? Не всё так сложно в этом плане, как кажется.
Короче, если вас сейчас волнует тот же самый вопрос — быстро определить владельца номера, то есть один нормальный рабочий метод. Конкретно про то, как узнать по мобильному кто именно звонил — вот здесь всё максимально норм расписано: найти геолокацию человека по номеру телефона найти геолокацию человека по номеру телефона.
Я сам сначала вообще не верил во всё это. Потому что в открытых пабликах обычно полная тишина. В общем, кому надо — тот точно воспользуется. Надеюсь, кому-то тоже упростит жизнь.
I usually skim posts like these but this one held my attention all the way through, and a stop at duetparishs did the same, that is a strong endorsement coming from me because I am usually quick to bounce when content gets repetitive or fails to deliver on its initial promise made in the headline.
Ребят, наконец-то разобрался с этой проблемой. Всё расписано до мелочей, даже новичок поймет что к чему. Сам долго мучился, пока не нашел этот гайд. Вот скачать melbet на андроид скачать melbet на андроид — обязательно гляньте. Мне лично это сэкономило кучу времени и нервов, так что делюсь от души.
Ребята, привет! Я вообще в шоке, если честно. Поменяли газовую плиту, сдвинули раковину, а стены вообще вынесли — думал, пронесёт. В общем, теперь легализовывать этот бардак придётся официально. И тут встал вопрос: узаконить перепланировку цена https://skolko-stoit-uzakonit-pereplanirovku-10.ru Кто сталкивался недавно — сколько стоит узаконить перепланировку в многоэтажке. Плюс эти дурацкие техусловия на вентиляцию. А то риелторы называют цифры от балды. Без этого всё равно потом квартиру не продать. Короче, просто сколько отдать, чтобы спать спокойно с новой планировкой.
Such writing is increasingly rare and worth supporting through attention, and a stop at knackgrove extended that supportive attention across more pages, the conscious choice to spend time on sites that produce careful work rather than convenient consumption is itself a small form of patronage and this site is receiving that conscious patronage from me.
Yeni başlayanlar için biraz karışık gelebilir. Her gün yeni bir engelleme haberi alınca insan bıkıyor. Ama sonunda şu linki keşfettim.
Casino oyunlarına meraklıysanız burayı bir şans verin derim. Güncel sistem ayarlarını kontrol ettikten sonra erişim sağlamak en mantıklısı. Giriş adresi tam olarak şu şekilde: 1xbet güncel adres 1xbet güncel adres. Özetle anlatmam gerekirse — 1xbet türkiye için doğru adres burası.
Çekimler konusunda hiç sıkıntı yaşamadım. Çevremdekilere de söyledim — başka yerde aramaya gerek yok. Şimdiden bol kazançlar…
Знаете, ситуация бывает — близкий совсем плох, а везти в больницу страшно . Я сам через это прошёл пару лет назад . Руки опускаются, время идёт. Лезешь в интернет, а вокруг бабло тянут. Пока кто-то не подсказал один реально работающий вариант. Требуется немедленная консультация — а везти самому просто нереально, то нужно вызывать врача на дом. Речь конкретно про круглосуточный выезд нарколога. В Самаре , к слову , хватает шарлатанов . Нормальные контакты, кто реально приезжает вот тут : вызов нарколога на дом самара вызов нарколога на дом самара Откровенно говоря, после того как вник в детали, многое прояснилось . И про снятие запоя на дому, и про последующее кодирование. Плюс анонимность — это важно . Советую не тянуть .
Denemek isteyenler çok soruyor. Sürekli engellenen sitelerden bıktım. En sonunda güvenilir adrese ulaştım.
Spor bahislerinde iddialı olanlar buraya. Uyarıları dikkate alarak sistemi kurun. Giriş adresi aynen şu şekilde: 1xbet yeni giriş 1xbet yeni giriş. Velhasıl kelam — 1xbet türkiye için tek doğru adres bu.
Para çekme işlemleri sorunsuz. Dost meclisinde öğrendim — pişman eden bir yer değil. İyi eğlenceler…
Uzun süredir oynuyorum diyebilirim. Doğru düzgün bir site bulmak işkenceydi resmen. Ama sonunda sağlam bir kaynak buldum.
Bahis severler bilir burayı denemeden geçmeyin. Güncel sistem ayarlarını kontrol ettikten sonra erişim sağlamak en mantıklısı. Giriş adresi tam olarak şu şekilde: 1xbet giriş 1xbet giriş. Ne diyeyim yani — 1xbet türkiye için doğru adres burası.
Çekimler konusunda hiç sıkıntı yaşamadım. Çevremdekilere de söyledim — pişman etmeyen nadir adreslerden. Umarım işinize yarar…
Closed it feeling slightly more competent in the topic than I started, and a stop at jetdomes reinforced that competence boost, real learning is rare in casual online reading but it does happen sometimes and this site managed to make it happen for me today which is genuinely worth pausing to acknowledge.
Over the course of reading several posts here a pattern of quality has emerged, and a stop at fernpiers confirmed the pattern, the difference between sites that hit quality occasionally and sites that hit it consistently is huge and this site has clearly demonstrated the consistent kind through what I have read this morning.
Now planning to recommend this site in a context where my recommendations are taken seriously, and a stop at coppercrown 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.
Уже отчаялся был найти хоть что-то стоящее. Знакомая многим фигня, постоянно звонят с незнакомого телефона, а кто — вообще непонятно. Решил докопаться до истины и разобраться,. И знаете что? Не всё так сложно в этом плане, как кажется.
Короче, если вас сейчас волнует тот же самый вопрос — быстро определить владельца номера, то есть один нормальный рабочий метод. Конкретно про то, как найти человека по номеру телефона — вот здесь всё максимально норм расписано: отследить номер телефона по геолокации бесплатно отследить номер телефона по геолокации бесплатно.
Я сам сначала вообще не верил во всё это. Потому что а тут выложена конкретная и структурированная информация. В общем, кому надо — тот точно воспользуется. Надеюсь, кому-то тоже упростит жизнь.
Most of my reading time goes to a small number of trusted sources and this one is now joining that group, and a stop at zingtrace reinforced the group membership, the few sites that earn a place in my regular rotation are sites I expect ongoing returns from and this one has earned that elevated position consistently.
mostbet body odměny mostbet06318.help
mostbet płatności http://mostbet26540.help
Solid recommendation from me to anyone working in the area, the perspective here is grounded, and a look at focusdrivenmomentum 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.
Worth recognising that the post did not pretend to be the final word on the topic, and a stop at portmill continued that humility, content that admits its own scope and limits is more trustworthy than content that overreaches and this site has clearly developed the editorial maturity to know what it can and cannot claim well.
Народ, привет! Ох, уже голова болит с этим тимбилдингом, нужны нормальные презенты для партнеров. Присматриваюсь к подаркам с логотипом, но боюсь нарваться на кривую печать. подарки с логотипом на заказ подарки с логотипом на заказ Кто уже заказывал корпоративные подарки с логотипом компании, поделитесь опытом. Просили ещё брендированные кружки и толстовки. А то я уже второй день в интернете сижу и ничего адекватного не нашёл.
Just want to record that this site is entering my regular reading list, and a look at loopbough 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.
Without comparing too aggressively to other sources this one stands out for the right reasons, and a look at buildclaritydrivenmomentum continued that distinctive quality, content that distinguishes itself through substance rather than style tricks is content with lasting differentiation and this site has clearly chosen substance based differentiation as its core editorial strategy.
Коллеги, всем привет! Встала задача обновить ассортимент брендированной атрибуки для отдела продаж. Интересует надежный поставщик корпоративных подарков с логотипом компании, который не подведет со сроками. подарки корпоративные подарки корпоративные Кто недавно брал подарки с логотипом под новогодние корпоративы, поделитесь контактами. Может, есть проверенные фабрики, которые работают напрямую, без посредников. Киньте ссылки или названия компаний, буду очень благодарен.
Useful read, especially because the writer did not assume too much background from the reader, and a quick look at grovefarm continued in the same way, a thoughtful site that meets people where they are which is something the modern web could use a lot more of for both casual and serious readers.
1win ghid bonus http://www.1win42891.help
Долго рылся в интернете на разных форумах, Ситуация дурацкая, потерял контакт со старым хорошим другом. Полез в глубокий поиск по веткам. И знаете что? Тут главное знать, куда именно смотреть и какие базы юзать.
Короче, если вас сейчас волнует тот же самый вопрос — пробить странный входящий звонок, то есть один проверенный временем вариант. Конкретно про то, где найти по телефонному номеру актуальные данные — вот здесь всё максимально норм расписано: как отследить телефон по номеру как отследить телефон по номеру.
Я сам сначала вообще не верил во всё это. Потому что обычный поиск гуглит только рекламный спам. В общем, кому надо — тот точно воспользуется. Век живи — век учись, как говорится.
Случайно наткнулся на один гайд, Ситуация дурацкая, потерял контакт со старым хорошим другом. Решил докопаться до истины и разобраться,. И знаете что? Тут главное знать, куда именно смотреть и какие базы юзать.
Короче, если вас сейчас волнует тот же самый вопрос — быстро определить владельца номера, то есть один реально работающий и живой сервис. Конкретно про то, как узнать по мобильному кто именно звонил — вот здесь всё максимально норм расписано: пробить человека по номеру онлайн пробить человека по номеру онлайн.
Друзьям ссылку скинул в телегу, им тоже помогло. Потому что а тут выложена конкретная и структурированная информация. В общем, кому надо — тот точно воспользуется. Надеюсь, кому-то тоже упростит жизнь.
Closed the tab feeling I had spent the time well, and a stop at startmovingforward extended that feeling across more pages, the test of whether time on a site was well spent is one I apply silently after closing tabs and very few sites pass it but this one passed it cleanly today afternoon clearly.
1win ставки с телефона http://www.1win40259.help
Worth recognising that this site does not chase the daily news cycle, and a stop at executeideasclean 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.
melbet пополнение odengi https://melbet62894.help
Felt like I was reading something written by someone who actually thinks about the topic rather than reciting it, and a look at duetcoast 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.
mostbet результаты live http://mostbet15743.help/
Now feeling that this site is the kind I want to make sure does not disappear, and a look at duetparishs reinforced that quiet protective feeling, the rare sites whose disappearance would actually matter to me are the sites I want to support through return visits and recommendations and this one has joined that small protected list.