拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Do you love excitement? https://jerseysbeststore.com/tips offers premium pre-match and live sports betting, as well as a legal online casino. Try your luck on modern slots, table games, or with live dealers. We guarantee complete data security, fair results, and 24/7 player support.
Uzun süredir oynuyorum diyebilirim. Her gün yeni bir engelleme haberi alınca insan bıkıyor. Ama sonunda her derde deva bir adrese ulaştım.
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 1xbet güncel. Ne diyeyim yani — 1xbet spor bahislerinin adresi değişti.
Bonus kampanyaları fena değil. Çevremdekilere de söyledim — pişman etmeyen nadir adreslerden. Şimdiden bol kazançlar…
Really appreciate that the writer did not overstate the importance of the topic to make the post feel weightier, and a quick visit to discovercleanstrategies maintained the same modest framing, content that is honest about its own scope rather than inflating itself is the kind I trust and return to repeatedly over time.
Liked everything about the experience, from the opening through to the closing notes, and a stop at draftlogs extended that into more pages, finding a site where the editorial vision shows through every choice rather than feeling random is an increasingly rare experience and one I am glad to have today during this particular reading session.
Bir arkadaşım ısrarla tavsiye etti. Açıkçası önyargılıydım biraz. Sonra şansımı denemek istedim.
Spor bahislerinde iddialı olanlar buraya. Detaylı incelemeleri tamamlayıp adımları takip ettikten sonra her şey netleşti. Giriş adresi işte karşınızda: 1xbet giriş 1xbet giriş. Yani anlayacağınız — 1xbet türkiye için tek doğru adres burası.
Hem hızlı hem güvenilir. Kimseye zararı dokunmaz — deneyen herkes memnun kaldı. Gözünüz arkada kalmasın…
Bookmarking this for later, the kind of resource I want to keep nearby, and a quick look at ebonfig confirmed the rest of the site is worth the same treatment, definitely going into my reference folder for the next time the topic comes up at work or in conversation with someone who asks.
Açıkçası ben de bu konuda epey araştırma yaptım. Kapanan sitelerden bıktım resmen vallahi. Detaylı güncellemeleri kontrol edip süreci sorunsuz başlattım. En sonunda güvenilir bir kaynak buldum ve size de aktarayım dedim: 1xbet giriş 1xbet giriş. Kusura bakmayın da durum şu — bu işin ehli belli başlı yani.
bonusları bile tatmin edici gerçekten inanın. Birçok yer denedim emin olun yıllardır — başka yerde aramaya gerek yok artık valla. Umarım işinize yarar bu bilgiler…
My usual pattern is to skim and bounce but this site has reset that pattern temporarily, and a stop at ideasneedfocus maintained the slower reading mode, content that changes how I read is content with structural influence and this site has clearly nudged my reading behaviour toward something better at least for the duration of these visits.
Denemek isteyen herkese aynı şeyi söylüyorum. İnanın herkes farklı bir adres veriyor kafayı yedim. 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 güncel giriş 1xbet güncel giriş. Valla bak şimdi size net söylüyorum — spor bahislerinde uzman olanlar bilir burayı.
Hiçbir aksilik yaşamadım bugüne kadar. İşin doğrusunu söylemek gerekirse — başka yerde kaybolmanıza gerek yok yani. Umarım siz de memnun kalırsınız…
Aylardır araştırıyorum en sonunda buldum. İnanın herkes farklı bir adres veriyor kafayı yedim. Gerekli tüm teknik kontrolleri sırasıyla tamamlayıp süreci başlattım. En doğru adrese ulaştığımı düşünüyorum ve size de buradan bahsetmek istiyorum: 1xbet güncel adres 1xbet güncel adres. Yani kısacası anlatmaya çalıştığım şu — spor bahislerinde uzman olanlar bilir burayı.
Hiçbir aksilik yaşamadım bugüne kadar. Kendi tecrübelerimi aktarıyorum size — en çok güvendiğim adres burası oldu artık. Umarım siz de memnun kalırsınız…
Good quality through and through, no rough edges and no signs of being rushed, and a quick look at briskolive kept the same polish going, the kind of site that respects its own brand by maintaining consistency across pages which is something I always appreciate as a reader looking for trustworthy information online today.
Reading this between two meetings turned out to be the highlight of the morning, and a stop at jetmanor continued that highlight quality, content that outshines the structured parts of a working day is doing something well beyond ordinary and this site has produced multiple such highlights for me already this week alone.
Solid information that lines up with what I have been hearing from other reliable sources, and after my visit to amberharborartisanexchange I was even more certain of that, this site checks out which is something I value highly when so many places online play loose with the facts to chase a quick click.
Daha önce hiç böyle bir site görmemiştim. Herkes farklı bir şey söylüyordu kafam karıştı. Sonra şansımı denemek istedim.
Spor bahislerinde iddialı olanlar buraya. Detaylı incelemeleri tamamlayıp adımları takip ettikten sonra her şey netleşti. Giriş adresi işte karşınızda: 1xbet spor bahislerinin adresi 1xbet spor bahislerinin adresi. Yani anlayacağınız — 1xbet güncel adres arayanlara duyurulur.
Hem hızlı hem güvenilir. Çok yere baktım emin olun — başka bir yere ihtiyacınız kalmaz. Hayırlı olsun…
Sürekli karşıma çıkıyordu ama denememiştim. Denemekle denememek arasında gidip geldim. Sonra şu linki görünce karar verdim.
Bahis dünyasına ilgi duyanlar bilir. Detaylı incelemeleri tamamlayıp adımları takip ettikten sonra her şey netleşti. Giriş adresi işte karşınızda: 1xbet güncel 1xbet güncel. Yani anlayacağınız — 1xbet türkiye için tek doğru adres burası.
Arayüzü bile kullanışlı. Kimseye zararı dokunmaz — başka bir yere ihtiyacınız kalmaz. Şimdiden iyi eğlenceler…
Honestly, I’ve wasted so much time on sketchy rental deals around South Beach. Or worse — they freeze your credit card for an extra two grand and smile like it’s totally normal. No thanks, I am completely done with that circus. If you actually need a proper vehicle to cruise around the city, make sure to check the actual fleet reviews before signing anything. Everyone who lives here knows that having a solid car is essential, whether you are heading to Brickell, Coconut Grove, or just driving down to Key Biscayne.
I’ve literally compared maybe 15 different local providers last month alone, but I eventually found a service with zero hidden fees and no bait-and-switch tactics. If you are looking for an honest source for premium rentals across Florida, check the details here: mia luxury car rental https://luxury-car-rental-miami-2.com. Yeah, finding parking in downtown is still its own separate nightmare, but that’s on you. Anyway, at least there’s one trustworthy service left in this town, hope this helps someone save a few bucks.
Will recommend this to a couple of friends who have been asking about this exact topic, and after explorefutureopportunity I have even more reason to do so, the kind of site that earns word of mouth rather than chasing it through aggressive marketing or paid placements is always a treat to find online.
Reading this in segments because the day was busy, and the post survived the fragmented attention well, and a stop at neatmill held up similarly under interrupted reading, content that can withstand modern distracted reading patterns rather than requiring a perfect block of focused time is increasingly the kind I prefer.
мостбет aviator коэффициенты http://mostbet34850.help
Highly recommend to anyone looking for a sensible take on this topic without the usual marketing nonsense, and a look at discoverforwardthinkingpaths kept that grounded approach going, sites that stay focused on serving readers rather than monetising every click are rare and this is clearly one of those rare ones I really appreciate finding.
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 1xbet güncel. Yani demem o ki şöyle söyleyeyim — canlı bahis kısmı bile yeterli aslında.
Hiçbir sıkıntı yaşamadım bugüne kadar oynarken. Kendi adıma konuşuyorum size — en güvendiğim liman burası oldu artık. Umarım siz de memnun kalırsınız…
Denemek isteyen arkadaşlar çok soruyor. Sürekli engelleme derdi bitmiyor. En sonunda işte size doğru adres.
Bahisle aranız nasıl bilmem burayı bir şans verin derim. Gerekli tüm teknik kontrolleri yapıp adımları uyguladıktan sonra erişim açıldı. Giriş adresi tam olarak şurada: 1xbet güncel giriş 1xbet güncel giriş. Kısacası durum bu — 1xbet güncel adres arayanlara müjde.
Hiçbir sorun yaşatmadı bugüne kadar. Araştırmayı seven biriyim — başka aramaya gerek yok. Hayırlı olsun herkese…
Decided to read this site for a while before forming a verdict, and the verdict after several pages is positive, and a stop at featlake continued that pattern, judging a site requires more than one post and giving sites a fair sample is something I try to do for promising candidates rather than rushing to dismiss.
Срочно нужен совет кто уже заказывал партию к выставке. Хотим обновить мерч для сотрудников. Везде говорят про индивидуальный подход, но реально где заказать корпоративные подарки с логотипом компании — чтоб не за границей, но и не откровенный шлак. бизнес подарки с логотипом бизнес подарки с логотипом Говорят, что корпоративные подарки сувениры сейчас заказывают в основном в Китае, но боюсь за качество. Нам нужно от 500 штук, можно меньше. Заранее спасибо, кто откликнется.
Bookmark earned, calendar reminder set, share queued, all from one good post, and a look at draftlogs did the same, when a single reading session triggers multiple downstream actions you know the content has actually moved me beyond the page and this site is moving me at that higher level reliably.
Reading this gave me a small refresher on something I had partially forgotten, and a stop at grovefarm extended the refresher, content that strengthens existing knowledge rather than just adding new is content with a particular kind of consolidating value and this site is providing that consolidating function across multiple visits.
Now planning a longer reading session for the archives, and a stop at edgecradle confirmed the archives are worth that longer commitment, sites with archives I want to read deliberately rather than just sample are rare and this one has clearly earned that level of interest based on the consistency of what I have already read.
Now feeling the rare pleasure of trusting a source completely on first encounter, and a look at learnandexecutewisely extended that initial trust into something more durable, the calibration of trust to evidence is something I do informally and this site has earned high trust through the cumulative weight of multiple consistently good posts already.
Açıkçası ben de bu konuda epey araştırma yaptım. Herkes bir şey diyor ama kimse net konuşmuyor. Detaylı güncellemeleri kontrol edip süreci sorunsuz başlattım. En sonunda güvenilir bir kaynak buldum ve size de aktarayım dedim: 1xbet yeni giriş 1xbet yeni giriş. Kusura bakmayın da durum şu — bu işin ehli belli başlı yani.
bonusları bile tatmin edici gerçekten inanın. Birçok yer denedim emin olun yıllardır — başka yerde aramaya gerek yok artık valla. Umarım işinize yarar bu bilgiler…
Look, I’ve been around the block with these Miami car rentals. Or worse — they freeze your credit card for an extra two grand and smile like it’s totally normal. No thanks, I am completely done with that circus. If you actually need a proper vehicle to cruise around the city, seriously, do your homework first and don’t just trust social media ads. Everyone who lives here knows that having a solid car is essential, whether you are heading to Brickell, Coconut Grove, or just driving down to Key Biscayne.
Most of these local agencies are just fancy websites hiding a garbage fleet, but I eventually found a service with zero hidden fees and no bait-and-switch tactics. If you are looking for an honest source for premium rentals across Florida, check the details here: exotic car rental miami exotic car rental miami. Oh, and definitely bring polarized sunglasses, because that Florida sun is absolutely no joke. Just drive safe out there and don’t let them upsell you on unnecessary insurance nonsense. let me know if you guys know any other clean spots.
Speaking carefully because I do not want to overstate things this site is genuinely above average across multiple measurements, and a stop at apexhelm continued the above average performance, the calibration of judgement against potential overstatement is something I take seriously and this site clears the higher bar even after that calibration applies.
Decided to set a calendar reminder to revisit, and a stop at harbortrailcommercegallery 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.
Срочно нужен совет тем, кто занимается брендингом. Планируем раздачу для партнёров на новый год. Везде говорят про индивидуальный подход, но реально толковое изготовление корпоративных сувениров с печатью по вменяемой цене. изготовление корпоративных подарков изготовление корпоративных подарков Интересует именно изготовление под ключ — от кружек до брендированных блокнотов. Нам нужно от 500 штук, можно меньше. Заранее спасибо, кто откликнется.
1win pentru android 14 http://1win5806.help
Açıkçası ben de bulana kadar çok uğraştım. Herkes bir şey diyor ama doğru düzgün çalışan yok. En sonunda güvendiğim bir kaynak buldum.
Spor bahislerinde gözünüz varsa burayı bir şans verin derim. Gerekli tüm teknik kontrolleri yapıp adımları uyguladıktan sonra erişim açıldı. Giriş adresi tam olarak şurada: 1xbet spor bahislerinin adresi 1xbet spor bahislerinin adresi. Kısacası durum bu — 1xbet güncel adres arayanlara müjde.
Çekimler konusunda da sıkıntı yok. Başka siteleri de denedim emin olun — pişman olacağınızı sanmıyorum. Şimdiden iyi oyunlar…
The pacing of the post was just right, never rushed and never dragged out unnecessarily, and a look at strategycreatesmomentum maintained the same rhythm, you can tell the writer has experience because the difficult skill of pacing is something only practiced writers manage to handle well in long form content over time and across formats.
Ne zamandır böyle bir adres arıyordum. Sürekli engelleme derdi bitmiyor. En sonunda güvendiğim bir kaynak buldum.
Bahisle aranız nasıl bilmem burayı kaçırmayın derim. Gerekli tüm teknik kontrolleri yapıp adımları uyguladıktan sonra erişim açıldı. Giriş adresi tam olarak şurada: 1xbet yeni giriş 1xbet yeni giriş. Ne diyeyim yani anlayacağınız — 1xbet türkiye için tek geçerli adres burası.
Hiçbir sorun yaşatmadı bugüne kadar. Kendi deneyimim buysa da — en memnun kaldığım yer burası. Umarım işinize yarar…
Glad I gave this a chance instead of bouncing on the headline, and after amberharborartisanexchange I was certain I had made the right call, snap judgements based on titles miss a lot of good content and this is a reminder to slow down and check things out before scrolling past in a hurry.
Açıkçası ben de bu konuda epey araştırma yaptım. Sürekli adres değişiyor derler ya işte o hesap. Gerekli teknik incelemeleri tek tek tamamlayıp sistemi test ettim. En sonunda güvenilir bir kaynak buldum ve size de aktarayım dedim: 1xbet türkiye 1xbet türkiye. Ne diyeyim yani anlatayım mı — spor bahislerinde iddialı olanlar burayı çok iyi bilir.
bonusları bile tatmin edici gerçekten inanın. Kendi adıma konuşuyorum size açık açık — başka yerde aramaya gerek yok artık valla. Şimdiden iyi eğlenceler dilerim hepinize…
Now recognising the post as a rare example of careful writing on a topic that mostly receives careless treatment, and a stop at createimpactdirection extended that contrast with the average elsewhere, content that highlights how much the average is settling for low quality is content that has both internal merit and external value as a benchmark.
Bookmark added in three places to make sure I do not lose the link, and a look at forwardthinkingpaths got the same redundant treatment, sites I am afraid to lose are the rare keepers and this is clearly one of them based on what I have read so far across this and a couple of related posts.
I really like how the writer keeps the tone friendly without sounding fake or overly polished, and after a stop at micapact the same calm pace was there, no rushing to make a point and no padding either, just clean honest writing that I can respect and come back to later again.
A quiet piece that did not try to compete on volume, and a look at waveharborartisanexchange 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.
1win kirish bloklangan http://1win53914.help
plinko official site bd https://plinko37046.help
Honest reaction is that I want to send this to a friend who would benefit from it, and a look at featlake added more material I will pass along too, the impulse to share is the strongest signal I have for content quality and this site is generating that impulse cleanly across multiple posts.
Şu bahis işlerine merak salalı çok oldu. Kapanan sitelerden bıktım resmen vallahi. Adımları doğru sırayla uyguladıktan sonra bağlantı hatasız açıldı. En sonunda güvenilir bir kaynak buldum ve size de aktarayım dedim: 1xbet türkiye 1xbet türkiye. Kusura bakmayın da durum şu — bahis olsun casino olsun her şey düşünülmüş resmen.
çekimler konusunda da sıkıntı yok yani rahat olun. Kendi adıma konuşuyorum size açık açık — en memnun kaldığım yer burası oldu kesinlikle. Şimdiden iyi eğlenceler dilerim hepinize…
Şu bahis işlerine merak salalı çok oldu. Kapanan sitelerden bıktım resmen vallahi. Gerekli teknik incelemeleri tek tek tamamlayıp sistemi test ettim. En sonunda güvenilir bir kaynak buldum ve size de aktarayım dedim: 1xbet güncel 1xbet güncel. Kusura bakmayın da durum şu — spor bahislerinde iddialı olanlar burayı çok iyi bilir.
bonusları bile tatmin edici gerçekten inanın. Kendi adıma konuşuyorum size açık açık — en memnun kaldığım yer burası oldu kesinlikle. Umarım işinize yarar bu bilgiler…
Срочно нужен совет кто уже заказывал партию к выставке. Готовимся к конференции. Везде говорят про индивидуальный подход, но реально толковое изготовление корпоративных сувениров с печатью по вменяемой цене. корпоративные подарки спб https://suvenirnaya-produkcziya-s-logotipom-9.ru Кто недавно заморачивался подарками с логотипом, поделитесь контактами. Нам нужно от 500 штук, можно меньше. Заранее спасибо, кто откликнется.
Срочно нужен совет для отдела маркетинга. Хотим обновить мерч для сотрудников. Везде говорят про индивидуальный подход, но реально найти нормальную сувенирную продукцию с логотипом. сувенирная продукция с логотипом цена https://suvenirnaya-produkcziya-s-logotipom-9.ru Говорят, что корпоративные подарки сувениры сейчас заказывают в основном в Китае, но боюсь за качество. Нам нужно от 500 штук, можно меньше. А то бюджет уже вчера утвердили, а поставщика нет.