how to move website created with xampp(windows) to

2019-04-17 19:34发布

问题:

I am new to this hosting stuff. I dono anything about hosting a site. I am developing a website in xampp-windows. What should i do for hosting the website in a domain. If u know please tell me about this hosting of a site in my case.

回答1:

  1. Get yourself a simple host provider that gives you roughly the same versions for PHP and MYSQL as your current home install. For starters, choose a shared host with plesk or something simple like that. Make sure you're getting phpmyadmin if you're used to that.
  2. export your database and move it to your host (import)
  3. Go over your code and check for windows-only references. The first things that come to mind are paths (c:\yourpath\www\yoursite\ versus /var/www/yoursite/ for isntance)
  4. Put your code on the site.
  5. test. If you find problems, go to stap 3. If you don't, go to step 6)
  6. ...
  7. profit!