拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
Uzun zamandır böyle bir yer arıyordum valla. Herkes farklı bir şey anlatıyor kafam allak bullak oldu. Detaylı güncellemeleri kontrol edip süreci sorunsuz başlattım. Güvenilir bir kaynak bulmanın ne kadar zor olduğunu hepimiz biliyoruz işte size o adres: 1xbet türkiye 1xbet türkiye. Şimdi size doğru düzgün anlatayım — casino oyunlarında iddialı olanlar bilir zaten.
para çekme işlemleri de sorunsuz yani rahat olun. Birçok yeri denedim ama burada karar kıldım — en güvendiğim liman burası oldu artık. Umarım siz de memnun kalırsınız…
Nice to see a post that does not try to overcomplicate the basics for the sake of looking smart, and once I looked at foxarbors the same direct tone was there too, which honestly makes a difference when you are short on time and want answers without long pointless intros.
Reading this gave me a small jolt of recognition for an experience I thought was just mine, and a stop at directionoverdistraction 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.
Açıkçası ben de merak ediyordum. Birçok site denedim ama. En sonunda sağlam bir link buldum.
Bahisle ilgilenen arkadaşlara duyurulur. Uyarıları dikkate alarak sistemi kurun. Giriş adresi aynen şu şekilde: 1xbet giriş 1xbet giriş. Velhasıl kelam — 1xbet güncel adres arayanlar buraya baksın.
Para çekme işlemleri sorunsuz. Kimseye zararım dokunmaz — pişman eden bir yer değil. İyi eğlenceler…
Açıkçası ben de merak ediyordum. Birçok site denedim ama. En sonunda her derde deva bir kaynak keşfettim.
Casino sevenler bilir. Uyarıları dikkate alarak sistemi kurun. Giriş adresi aynen şu şekilde: 1xbet spor bahislerinin adresi 1xbet spor bahislerinin adresi. Özetle — 1xbet spor bahislerinin adresi değişti.
Bonusları gayet iyi. Kendi tecrübemi aktarayım — başka yerde aramaya gerek yok. Şimdiden bol şans…
Reading this triggered a small reorganisation of my own thinking on the topic, and a stop at momentumthroughstrategy furthered that reorganisation, content that affects the shape of my mental model rather than just decorating it with new facts is content with structural rather than informational impact and this site provides that.
Worth every minute of the time spent reading, and a stop at learnandadvancewisely extends that value across more pages, in a media environment where most content is engineered to waste attention this site stands out by treating reader time as something valuable rather than something to be exploited and stretched as far as possible.
1win вывод без комиссии элсом https://1win82740.help
Decided to write a short note to the author if there is contact info anywhere, and a stop at shopmint 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.
Easily one of the better explanations I have read on the topic, and a stop at discovercreativegrowthpaths pushed it even higher in my mental ranking of useful resources, the kind of site that beats the average not by trying harder but by simply caring more about what it puts out daily which always shows.
Worth pointing out the careful word choice in this post, no buzzwords and no jargon, and a look at eagerkilt continued that disciplined vocabulary, sites that resist the pull of trendy language are sites that will read well in five years and this one is clearly built for that kind of long durability.
Срочно нужен совет для отдела маркетинга. Готовимся к конференции. Везде говорят про индивидуальный подход, но реально где заказать корпоративные подарки с логотипом компании — чтоб не за границей, но и не откровенный шлак. корпоративные сувениры оптом https://suvenirnaya-produkcziya-s-logotipom-9.ru Кто недавно заморачивался подарками с логотипом, поделитесь контактами. Пока просто собираем инфу. Заранее спасибо, кто откликнется.
Açıkçası ben de bu konuda epey araştırma yaptım. Herkes bir şey diyor ama kimse net konuşmuyor. 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 adres 1xbet güncel adres. Ne diyeyim yani anlatayım mı — bahis olsun casino olsun her şey düşünülmüş resmen.
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. Hayırlı olsun herkese diliyorum…
Kendi başıma araştırırken buldum. Herkes farklı bir adres söylüyordu. Ama sonunda işe yarar bir link keşfettim.
Bu işe yeni başlayanlar dinlesin. Sistem ayarlarını doğru yaptıktan sonra süreç çok basit. Giriş adresi tam olarak şurada: 1xbet güncel giriş 1xbet güncel giriş. Anlatacağım şu ki — 1xbet türkiye için tek geçerli adres bu.
Bonus sistemi bile tatmin edici. Çok araştırdım emin olun — her şey düşünülmüş. Hayırlı olsun…
Decent post that improved my afternoon a small amount, and a look at driftfairs 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.
Reading this gave me the rare experience of fully agreeing with all the conclusions, and a stop at portolives continued that agreement pattern, content that aligns with my existing views without seeming designed to do so is just content that happens to be reasonable and this site reads as reasonable rather than ideological mostly.
Worth recognising that the post did not pretend to be the final word on the topic, and a stop at executeideascleanly 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.
Decided to set a calendar reminder to revisit, and a stop at buildactionabledirection 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.
A piece that reads like it was written for me without claiming to be written for me, and a look at edendune produced the same fit, when the writer audience match clicks naturally without being engineered through demographic targeting you know the writing is solid and this site has that natural fit consistently for me.
Liked the way the post handled the final paragraph, no neat bow but no abrupt cutoff either, and a stop at momentumthroughstrategy continued that thoughtful ending pattern, endings are hard and most blog writers either over engineer them or skip them entirely and this site has clearly figured out a sustainable middle approach.
Uzun süredir oynuyorum diyebilirim. Sürekli adres değişimi can sıkıyor. 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 türkiye 1xbet türkiye. Kısacası durum şu — 1xbet güncel adres arayanlar buraya baksın.
Bonus kampanyaları fena değil. Daha önce birçok site denedim — en memnun kaldığım yer burası oldu. Şimdiden bol kazançlar…
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 şu linkte karar kıldım.
Spor bahislerinde gözünüz varsa 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 türkiye 1xbet türkiye. Ne diyeyim yani anlayacağınız — 1xbet spor bahislerinin adresi burada işte.
Hiçbir sorun yaşatmadı bugüne kadar. Kendi deneyimim buysa da — pişman olacağınızı sanmıyorum. Şimdiden iyi oyunlar…
Worth saying that the writing carries a particular kind of authority without making any explicit claims to it, and a stop at shopmint extended that earned authority feeling, sites that demonstrate expertise through the quality of their explanations rather than by stating credentials are sites I trust most and this site has it.
Felt a small spark of recognition when the post named something I had been struggling to articulate, and a look at zingtorch produced more such moments, the rare service of giving readers language for fuzzy intuitions is one of the higher values that good writing can provide and this site offered several today instances.
Если честно, сам перерыл кучу форумов в поисках нормальной мебельной ткани. Оказалось, что выбрать подходящий вариант совсем непросто. В общем, смотрите, вот здесь реально толково расписано про плотность, ворс и износостойкость для диванов и кресел, а главное — показаны варианты, которые не линяют. Вся полезная информация доступна здесь: ткань мебельная купить https://tkan-dlya-mebeli-2.ru Дальше сами гляньте примеры в интерьере. Да, и не берите первое, что попалось — я уже поплатился кошельком, когда брал мебельную ткань купить с рук. Эта тема реально вывозит по соотношению цена-качество. Для информации: ткань мебельная купить лучше уже с нормальной пропиткой от грязи. Да и рвётся такое полотно гораздо меньше. В общем, советую глянуть источник.
Just nice to read something that does not feel like it was assembled from a content brief, and a stop at fawnetch kept that handcrafted feel going, you can tell when a real human with real understanding is behind the words versus a templated piece churned out for an algorithm to find.
Speaking as someone who used to recommend blogs frequently and got out of the habit this site is rekindling that impulse, and a look at etherledge extended the rekindling, the recovery of an old habit triggered by encountering work that justifies it is itself a small kind of pleasure and this site is providing that recovery experience.
Came away feeling slightly smarter than I was when I started, that is a real win, and a stop at growintentionallyaheadnow 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.
A slim post with substantial content per word, and a look at lobbydawn 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.
Picked a friend mentally as the audience for this and decided to send the link, and a look at graingrove confirmed the send was the right choice, choosing whom to share content with is a small act of curation that I take more seriously than the public sharing most platforms encourage these days online.
Felt the post had been written without looking over its shoulder, and a look at portguild continued that confident posture, content written for its own sake rather than against imagined critics has a different quality and this site reads as written from a place of confidence rather than defensive justification of every claim.
The lack of unnecessary jargon made the post accessible without sacrificing accuracy, and a look at fernbureau continued in the same accessible style, technical topics often hide behind specialised vocabulary but here the writer trusts the reader to keep up with plain language and that trust pays off nicely throughout the entire post.
Stands apart from similar pages by actually being useful, that is high praise these days, and a look at mythmanor kept that standard going, you can tell when a site is built around the reader versus around metrics and this one clearly belongs to the first category for sure based on what I read.
Народ, привет! Ох, уже голова болит с этим тимбилдингом, нужны нормальные презенты для партнеров. Может, кто шарит где лучше брать сувенирную продукцию с логотипом. корпоративные подарки и бизнес сувениры https://suvenirnaya-produkcziya-s-logotipom-10.ru Говорят, сейчас модно заказывать корпоративные подарки сувениры из экокожи — но кто делает качественно. Просили ещё брендированные кружки и толстовки. А то я уже второй день в интернете сижу и ничего адекватного не нашёл.
mostbet бездепозитный бонус https://mostbet34850.help
Picked this for a morning recommendation in our company chat, and a look at progresswithoutlimits 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.
plinko bangladesh how to withdraw plinko bangladesh how to withdraw
1win tez yechish 1win53914.help
1win pentru android 13 http://1win5806.help
On reflection this is the kind of writing that improves my taste for what is possible in the format, and a look at directionoverdistraction continued raising that bar, content that elevates my expectations rather than lowering them is doing important work in calibrating my standards and this site is participating in that elevation reliably.
Glad to have another data point on a question I am still thinking through, and a look at portolives added two more, content that acknowledges its place in a wider conversation rather than pretending to settle the question alone is intellectually honest in a way that I wish was more common across the open web.
Will be back, that is the simplest way to say it, and a quick visit to isleparish reinforced the decision, this site has earned a spot in my regular rotation alongside a few other reliable places I check when I want something genuinely informative without all the usual modern web noise getting in the way.
Daha önce hiç böyle bir site görmemiştim. Açıkçası önyargılıydım biraz. Sonra şansımı denemek istedim.
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 spor bahislerinin adresi burada.
Hem hızlı hem güvenilir. Çok yere baktım emin olun — başka bir yere ihtiyacınız kalmaz. Şimdiden iyi eğlenceler…
Even on a quick first read the substance of the post comes through, and a look at eliteledges 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.
A piece that reads like it was written for me without claiming to be written for me, and a look at startmovingclearly produced the same fit, when the writer audience match clicks naturally without being engineered through demographic targeting you know the writing is solid and this site has that natural fit consistently for me.
Вот такая беда — родственник в запое , а везти в больницу нет сил. Моя семья такое пережила пару лет назад . Руки опускаются, время идёт. Начинаешь обзванивать знакомых , а вокруг сплошной развод . Пока кто-то не подсказал один нормальный проверенный вариант. Требуется срочная помощь — а ехать куда-то нет возможности , то выход один . Я про нарколога на дом . В Самаре , к слову , хватает шарлатанов . Вся проверенная информация вот тут : нарколог на дом самара нарколог на дом самара Честно скажу , после того как прочитал , понял, как правильно действовать. Там и про капельницы подробно , и про консультацию . И цены адекватные, без разводов. Советую не тянуть .
Genuinely glad I clicked through to read this rather than skipping past, and a stop at eagerkilt confirmed I should keep clicking through to more pages here, the kind of resource that justifies its place in my browser history rather than feeling like wasted time which is the highest compliment I offer any site online today.
Şu bahis işlerine merak salalı çok oldu. Sürekli adres değişiyor derler ya işte o hesap. 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 giriş 1xbet giriş. Kusura bakmayın da durum şu — bahis olsun casino olsun her şey düşünülmüş resmen.
bonusları bile tatmin edici gerçekten inanın. Kendi adıma konuşuyorum size açık açık — pişman olacağınızı sanmıyorum hiç deneyin derim. Umarım işinize yarar bu bilgiler…
Welcome to Azimutbet https://21noticias.com/2026/06/09/what-is-sports-betting-and-why-is-it-so-popular-today/ a premium sports betting and gambling platform. Thousands of sports matches with extensive selections, live dealers, and the best licensed slot machines await you. Activate the bonus program, participate in VIP tournaments, and enjoy instant payouts with no hidden fees.
Great work on keeping things readable, the post never drags or repeats itself which I really appreciate, and a stop at zingtorch added a bit more context that fit naturally with what was already said here, no need to read everything twice to get the point being made today.