拖了一个月终于着手并且完成了。其实没有什么难的。但是因为我对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是傻瓜操作,没有怎么弄?这个我也弄了好半天最终解决了,马上再写一篇单独说吧
好啦好啦,到此结束,路人有问题可以在下面留言~
The site combines a huge game library with a clean, modern interface.
Fans of live gaming can join real-dealer tables running 24 hours a day.
Ongoing offers such as weekly cashback and reload deals keep the balance topped up.
Verified players enjoy speedy payouts through their preferred method.
The casino is licensed and applies strong security to keep accounts and funds safe.
Transparent terms and a helpful FAQ section cover deposits, bonuses and withdrawals.
100 bonus code for true fortune casino no deposit bonus 100 bonus code for true fortune casino no deposit bonus
In the United Kingdom, True Fortune casino stands out as a trusted online gambling destination.
The lobby showcases jackpot slots and the latest releases right at the top.
Ongoing offers such as weekly cashback and reload deals keep the balance topped up.
true fortune bonus codes true fortune bonus codes
Adding funds takes just a moment and play begins straight away.
Certified RNG technology ensures every spin and hand is completely random.
Help is always at hand thanks to round-the-clock live chat support.
Ребята кто в теме Вечно то лаги Искал долго, перепробовал кучу вариантов Короче, нашел наконец толковое казино — vavada официальный сайт Всё летает как часы В общем, там все подробности — вавада казино онлайн вавада казино онлайн Не ведитесь на лохотроны Перешлите тому кто тоже ищет нормальное казино
True Fortune gathers slots, table games and live dealers in one convenient place.
Progressive jackpots and top-rated new releases are highlighted in the casino lobby.
The VIP scheme gives loyal users cashback boosts, gifts and a personal manager.
Minimum deposits are low, making it easy to get started.
Independent audits confirm the games are fair and payouts are genuine.
Clear rules and a well-organised help centre keep everything straightforward.
truefortune no deposit truefortune no deposit
Everything from slots to live tables is available on the official True Fortune site.
True Fortune offers an extensive range of slots covering every theme and volatility level.
The VIP scheme gives loyal users cashback boosts, gifts and a personal manager.
chip30fc chip30fc
Players can fund their account via cards, digital wallets and modern payment services.
True Fortune operates under an official licence and uses SSL encryption to protect player data.
Players can enjoy the full game library on mobile without installing an app.
promo code for true fortune casino promo code for true fortune casino
The site combines a huge game library with a clean, modern interface.
A dedicated live casino streams real-dealer roulette, blackjack and baccarat around the clock.
Regular promotions include reload bonuses, cashback and free spin drops throughout the week.
The casino accepts a range of payment options familiar to players in the United Kingdom.
A valid licence and secure infrastructure make True Fortune a safe place to play.
Clear rules and a well-organised help centre keep everything straightforward.
Народ у кого школьники Задолбали эти школьные будни Ребёнок раздражённый Короче, нашли идеальное решение — школа дистанционно с настоящими учителями Никаких школьных драм В общем, сохраняйте себе — интернет школа дистанционное обучение https://shkola-onlajn-wqe.ru Переходите на нормальное обучение Перешлите другим родителям
The platform is fully optimised for players in the United Kingdom with English support and local payment options.
True Fortune regularly adds new titles and jackpot games to the lobby.
The promotions page lists reload bonuses, tournaments and cashback offers.
Fast, transparent withdrawals mean winnings reach players without long delays.
Independent audits confirm the games are fair and payouts are genuine.
Players can enjoy the full game library on mobile without installing an app.
true fortune home true fortune home
Народ у кого школьники Двойки и замечания в дневнике А эти поборы на подарки учителям Короче, реально удобный формат учёбы — онлайн школа Москва с любого возраста Аттестат настоящий В общем, там программа и отзывы — ломоносовская онлайн школа https://shkola-onlajn-wqe.ru Переходите на нормальное обучение Перешлите другим родителям
Слушайте кто ищет выход Задолбали эти школьные будни Только оценки и нервотрёпка Короче, реально удобный формат учёбы — онлайн школа Москва с любого возраста Никаких школьных драм В общем, жмите чтобы не потерять — ломоносов школа онлайн https://shkola-onlajn-wqe.ru Хватит мучить себя и ребёнка Перешлите другим родителям
true fortune $25 free spins no deposit true fortune $25 free spins no deposit
The official True Fortune casino has built a strong reputation with players across the United Kingdom.
Big-money jackpots and trending games are easy to find on the homepage.
Regular promotions include reload bonuses, cashback and free spin drops throughout the week.
Withdrawals are handled quickly, with e-wallet payouts often completed the same day.
All games run on certified random number generators for provably fair results.
Players can enjoy the full game library on mobile without installing an app.
Мамы и папы всем привет Домашка на весь вечер Только оценки и нервотрёпка Короче, реально удобный формат учёбы — школа онлайн с государственной лицензией Учителя объясняют доходчиво В общем, вся инфа вот здесь — какие школы на дистанционном обучении https://shkola-onlajn-wqe.ru Хватит мучить себя и ребёнка Перешлите другим родителям
Слушайте кто ищет выход Двойки и замечания в дневнике Никакого интереса к знаниям Короче, реально удобный формат учёбы — онлайн образование с индивидуальным расписанием Никаких школьных драм В общем, сохраняйте себе — онлайн школа 7 класс https://shkola-onlajn-wqe.ru Переходите на нормальное обучение Перешлите другим родителям
chicken road crash casino https://chicken-road39683.icu
The casino welcomes players from the United Kingdom with a localised experience and responsive support.
The True Fortune casino features thousands of slots from leading providers like Pragmatic Play, NetEnt and Play’n GO.
A welcome offer with matched bonus funds and free spins awaits new players in the United Kingdom.
True Fortune supports popular payment methods including Visa, Mastercard and e-wallets like Skrill and Neteller.
Certified RNG technology ensures every spin and hand is completely random.
A 24/7 support team helps players in the United Kingdom through live chat and email.
true fortune casino no deposit free chip true fortune casino no deposit free chip
Мамы и папы всем привет Двойки и замечания в дневнике Только оценки и нервотрёпка Короче, нашли идеальное решение — онлайн школа Москва с любого возраста Ребёнок занимается с удовольствием В общем, сохраняйте себе — школы с онлайн обучением 8 класс https://shkola-onlajn-wqe.ru Хватит мучить себя и ребёнка Перешлите другим родителям
Слушайте кто ищет выход Домашка на весь вечер Только оценки и нервотрёпка Короче, школа без стресса и скандалов — школа онлайн с государственной лицензией Ребёнок занимается с удовольствием В общем, сохраняйте себе — ломоносов скул онлайн https://shkola-onlajn-wqe.ru Хватит мучить себя и ребёнка Перешлите другим родителям
The official True Fortune website brings hundreds of games together on a single, easy-to-use platform.
Fans of live gaming can join real-dealer tables running 24 hours a day.
Every wager earns loyalty points that can be exchanged for bonus credit.
free spins promo codes for true fortune casino free spins promo codes for true fortune casino
The casino aims to process cashouts fast, especially for verified accounts.
Responsible gambling tools let players set deposit limits, take breaks or self-exclude.
The mobile casino runs smoothly in any browser with no download required.
True Fortune casino is one of the most popular online casinos among players in the United Kingdom.
The game library includes thousands of titles, from classic fruit machines to modern video slots.
Ongoing offers such as weekly cashback and reload deals keep the balance topped up.
The casino aims to process cashouts fast, especially for verified accounts.
True Fortune promotes responsible gaming with limits, time-outs and support links.
A detailed FAQ and clear terms make it easy for players in the United Kingdom to find answers fast.
true fortune casino no deposit codes true fortune casino no deposit codes
truefortune casino promo code truefortune casino promo code
The platform is fully optimised for players in the United Kingdom with English support and local payment options.
Big-money jackpots and trending games are easy to find on the homepage.
The promotions page lists reload bonuses, tournaments and cashback offers.
The casino accepts a range of payment options familiar to players in the United Kingdom.
The casino is licensed and applies strong security to keep accounts and funds safe.
Help is always at hand thanks to round-the-clock live chat support.
True Fortune is tailored to players in the United Kingdom, with familiar payment methods and clear terms.
A dedicated live casino streams real-dealer roulette, blackjack and baccarat around the clock.
Frequent players climb a VIP ladder that unlocks better rewards and faster withdrawals.
Minimum deposits are low, making it easy to get started.
Certified RNG technology ensures every spin and hand is completely random.
A 24/7 support team helps players in the United Kingdom through live chat and email.
promo code true fortune promo code true fortune
plinko sign up bonus registration plinko18370.help
True Fortune casino has become a go-to online casino for many players in the United Kingdom.
True Fortune regularly adds new titles and jackpot games to the lobby.
A loyalty programme rewards active players with points that convert into real bonuses.
true fortune casino no deposit true fortune casino no deposit
Minimum deposits are low, making it easy to get started.
True Fortune promotes responsible gaming with limits, time-outs and support links.
The site is fully responsive, adapting to any screen size on the go.
True Fortune casino is one of the most popular online casinos among players in the United Kingdom.
The game library includes thousands of titles, from classic fruit machines to modern video slots.
Frequent players climb a VIP ladder that unlocks better rewards and faster withdrawals.
Adding funds takes just a moment and play begins straight away.
Independent audits confirm the games are fair and payouts are genuine.
True Fortune works seamlessly on smartphones and tablets straight from the browser.
true fortune promo code 2026 true fortune promo code 2026
aviator sign in aviator sign in
The official True Fortune website brings hundreds of games together on a single, easy-to-use platform.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
Every wager earns loyalty points that can be exchanged for bonus credit.
the true casino the true casino
Adding funds takes just a moment and play begins straight away.
Fair play is guaranteed by independently tested RNG games with published RTP rates.
The support team responds quickly via chat and email at any hour.
Слушайте кто играет Задолбался я уже искать нормальное казино Искал долго, перепробовал кучу вариантов Короче, единственное где не кидают — вавада с быстрыми выплатами Всё летает как часы В общем, сохраняйте себе — вавада казино вавада казино Не ведитесь на лохотроны Перешлите тому кто тоже ищет нормальное казино
true fortune casino $50 free chip code true fortune casino $50 free chip code
The platform is fully optimised for players in the United Kingdom with English support and local payment options.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
Players enjoy recurring promotions including cashback and free spins on selected slots.
Players can fund their account via cards, digital wallets and modern payment services.
True Fortune promotes responsible gaming with limits, time-outs and support links.
The site is fully responsive, adapting to any screen size on the go.
True Fortune gathers slots, table games and live dealers in one convenient place.
The True Fortune casino features thousands of slots from leading providers like Pragmatic Play, NetEnt and Play’n GO.
The promotions page lists reload bonuses, tournaments and cashback offers.
Adding funds takes just a moment and play begins straight away.
The casino is licensed and applies strong security to keep accounts and funds safe.
True Fortune works seamlessly on smartphones and tablets straight from the browser.
true fortune casino $50 free chip true fortune casino $50 free chip
мостбет бонус на депозит http://www.mostbet18715.company
The official True Fortune casino has built a strong reputation with players across the United Kingdom.
The lobby showcases jackpot slots and the latest releases right at the top.
Ongoing offers such as weekly cashback and reload deals keep the balance topped up.
True Fortune supports popular payment methods including Visa, Mastercard and e-wallets like Skrill and Neteller.
True Fortune operates under an official licence and uses SSL encryption to protect player data.
New users can check the FAQ for quick guidance on bonuses and payments.
truefortune casino no deposit bonus codes truefortune casino no deposit bonus codes
True Fortune gathers slots, table games and live dealers in one convenient place.
Live blackjack, roulette and game shows are available at any time of day.
Every wager earns loyalty points that can be exchanged for bonus credit.
true fortune casino promo codes true fortune casino promo codes
Withdrawals are handled quickly, with e-wallet payouts often completed the same day.
All games run on certified random number generators for provably fair results.
A detailed FAQ and clear terms make it easy for players in the United Kingdom to find answers fast.
Designed with players in the United Kingdom in mind, the site keeps registration and play simple.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
Every wager earns loyalty points that can be exchanged for bonus credit.
The casino accepts a range of payment options familiar to players in the United Kingdom.
The site offers deposit limits, reality checks and self-exclusion for safer play.
A 24/7 support team helps players in the United Kingdom through live chat and email.
true fortune casino no deposit bonus code true fortune casino no deposit bonus code
True Fortune is tailored to players in the United Kingdom, with familiar payment methods and clear terms.
True Fortune offers an extensive range of slots covering every theme and volatility level.
The VIP scheme gives loyal users cashback boosts, gifts and a personal manager.
true fortune promo codes true fortune promo codes
Deposits are processed instantly so players can start playing within minutes.
The casino is licensed and applies strong security to keep accounts and funds safe.
The support team responds quickly via chat and email at any hour.
1win аккаунт блок шуд http://www.1win81527.icu
True Fortune casino has become a go-to online casino for many players in the United Kingdom.
The True Fortune casino features thousands of slots from leading providers like Pragmatic Play, NetEnt and Play’n GO.
Ongoing offers such as weekly cashback and reload deals keep the balance topped up.
Fast, transparent withdrawals mean winnings reach players without long delays.
True Fortune operates under an official licence and uses SSL encryption to protect player data.
A 24/7 support team helps players in the United Kingdom through live chat and email.
true fortune casino no deposit promo codes for existing players 2026 true fortune casino no deposit promo codes for existing players 2026
Rasmiy veb-sayt o’yinchilarga barcha xizmatlarga qulay kirishni ta’minlaydi.
888Starz rasmiy sayti slot, ruletka va blekjek kabi mingdan ortiq kazino o’yinini taklif etadi.
888Starz rasmiy saytining sport bo’limi 50 dan ortiq sport turiga tikish imkonini beradi.
Barcha aksiyalar va bonuslar rasmiy saytda aniq ko’rsatiladi va ulardan foydalanish oson.
888Starz kartalardan elektron hamyonlargacha turli depozit usullarini taklif etadi.
888starz скачать на айфон testflight 888starz скачать на айфон testflight
true fortune casino no deposit promo codes for existing players true fortune casino no deposit promo codes for existing players
Everything from slots to live tables is available on the official True Fortune site.
The live casino section brings authentic tables with professional dealers straight to any device.
Players enjoy recurring promotions including cashback and free spins on selected slots.
The casino aims to process cashouts fast, especially for verified accounts.
Responsible gambling tools let players set deposit limits, take breaks or self-exclude.
A detailed FAQ and clear terms make it easy for players in the United Kingdom to find answers fast.
aviator डेमो गेम https://www.aviator84260.help
мостбет-kg http://mostbet00472.online/
Everything from slots to live tables is available on the official True Fortune site.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
New players in the United Kingdom can claim a generous welcome bonus with free spins on their first deposit.
Withdrawals are handled quickly, with e-wallet payouts often completed the same day.
True Fortune promotes responsible gaming with limits, time-outs and support links.
A detailed FAQ and clear terms make it easy for players in the United Kingdom to find answers fast.
no deposit codes for true fortune casino no deposit codes for true fortune casino
true fortune casino 50 free chip true fortune casino 50 free chip
The official True Fortune casino has built a strong reputation with players across the United Kingdom.
Big-money jackpots and trending games are easy to find on the homepage.
Every wager earns loyalty points that can be exchanged for bonus credit.
Adding funds takes just a moment and play begins straight away.
Responsible gambling tools let players set deposit limits, take breaks or self-exclude.
True Fortune works seamlessly on smartphones and tablets straight from the browser.
888Starz rasmiy platformasi o’zbek tilini qo’llab-quvvatlaydi va sodda dizaynga ega.
Rasmiy saytdagi kazino bo’limi yetakchi provayderlardan ko’plab o’yinlarni o’z ichiga oladi.
Rasmiy saytda futbol, tennis, basketbol va kibersport kabi ko’plab sport turlari mavjud.
888Starz O’zbekistondagi yangi o’yinchilarga sport va kazino uchun xush kelibsiz paketini beradi.
Rasmiy sayt karta, hamyon va kripto orqali 5 dollardan boshlanadigan qulay to’lovlarni taqdim etadi.
888stsrz 888stsrz
Designed with players in the United Kingdom in mind, the site keeps registration and play simple.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
Players enjoy recurring promotions including cashback and free spins on selected slots.
Topping up an account is instant with no fees on most payment methods.
Player information is protected with encryption and strict data-handling standards.
A detailed FAQ and clear terms make it easy for players in the United Kingdom to find answers fast.
true fortune casino codes true fortune casino codes
Гемблеры отзовитесь А поддержка молчит как рыба Нервов потратил — мама не горюй Короче, работает стабильно и честно — вавада казино зеркало Фриспины и акции каждый день В общем, смотрите сами по ссылке — вавада казино онлайн вавада казино онлайн Не ведитесь на лохотроны Перешлите тому кто тоже ищет нормальное казино
true fortune casino 50 free chip true fortune casino 50 free chip
The casino welcomes players from the United Kingdom with a localised experience and responsive support.
Live blackjack, roulette and game shows are available at any time of day.
True Fortune greets new users in the United Kingdom with a welcome package that boosts the first deposit.
Fast, transparent withdrawals mean winnings reach players without long delays.
True Fortune promotes responsible gaming with limits, time-outs and support links.
Customer support is available around the clock via live chat and email in English.
True Fortune is tailored to players in the United Kingdom, with familiar payment methods and clear terms.
Live blackjack, roulette and game shows are available at any time of day.
First-time players receive a welcome bonus plus free spins after signing up.
Topping up an account is instant with no fees on most payment methods.
Players in the United Kingdom can use built-in tools to keep their gambling under control.
True Fortune works seamlessly on smartphones and tablets straight from the browser.
truefortune promo code truefortune promo code
True Fortune casino has become a go-to online casino for many players in the United Kingdom.
Players can choose from a vast slot collection powered by top studios such as Microgaming and Yggdrasil.
A loyalty programme rewards active players with points that convert into real bonuses.
true fortune casino free chip no deposit true fortune casino free chip no deposit
Adding funds takes just a moment and play begins straight away.
The site offers deposit limits, reality checks and self-exclusion for safer play.
Players can enjoy the full game library on mobile without installing an app.
Мамы и папы всем привет Двойки и замечания в дневнике Никакого интереса к знаниям Короче, школа без стресса и скандалов — онлайн класс с 1 по 11 класс Учителя объясняют доходчиво В общем, там программа и отзывы — ломоносовская школа онлайн обучение ломоносовская школа онлайн обучение Переходите на нормальное обучение Перешлите другим родителям
Слушайте кто ищет выход Домашка на весь вечер А эти поборы на подарки учителям Короче, реально удобный формат учёбы — школа онлайн с государственной лицензией Уроки тогда когда удобно В общем, там программа и отзывы — ломоносов скул онлайн школа https://shkola-onlajn-wqe.ru Хватит мучить себя и ребёнка Перешлите другим родителям