简体   繁体   中英

Move site from XAMPP to Ubuntu Apache server?

I have developed a PHP MySQL website locally on XAMPP and have been asked to put it on a remote Apache server. I have been give an ip address that directs me to an “index of/” page, and also Ubuntu username and password details, along with MySQL login details. Can someone give me some instruction on how I should go about, first getting login and second getting the local files to the remote server. Thanks.

use winscp to connect to server over sftp. then

  1. browse the web root, usually its /var/www/ or /var/www/html than upload files there.
  2. create mysql database and upload database , if mysql doesn't exist install it and phpmyadmin
  3. set database credentials and test website. https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

You can use WinSCP to connect to your server using SSH credentials and upload your website files to Apache root folder. Usually it's /var/www on Ubuntu Linux systems.

Then you need to copy your MySQL database to the server. I can suggest you to login to the server using Putty and install PHPMyAdmin first:

apt-get install phpmyadmin

After that you can access it with http://your-server-ip/phpmyadmin Export your MySQL database locally and import it on the server. That's it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM