Skip to content
Menu
Setting Up a New Site on Linode
Notes
Send
Step
1
of
2
50%
Start Files
PuTTY Commands
(change example.com to your domain name)
nano /etc/nginx/sites-available/
example.com
Part 2
Use SSH to manipulate files.
Copy info from existing similar site setup (i.e. WordPress or Drupal) into that new file
Change info in new file as appropriate for new domain
Are you:
Copying website files
Using SSH login
Creating a totally new site
Copy site files & database (only if duplicating site)
Use SSH to manipulate files.
Copy website files to /var/www/
example.com
If copying from another site
SSH login into old server
PuTTY commands
Update domain and database name
scp -r *
[email protected]
:/var/www/
example.com
mysqldump -u root -p --opt [
old database name
] > [
new database name
].sql
scp
newdatabase
.sql root@
your.ip.address
:~/
If copying from another site Part 2
SSH login into
new
server and PuTTy
PuTTY commands
Update database name
mysql -u root -p
CREATE DATABASE
newdatabase
;
exit
Setup WordPress
PuTTY commands
wget https://wordpress.org/latest.tar.gz
tar -xvzf latest.tar.gz
Create new database for the site
PuTTY commands
Update database name Make sure website config file is setup to point to
newdatabase
mysql -u root -p
CREATE DATABASE
newdatabase
;
exit
mysql -u root -p
newdatabase
< /path/to/
newdatabase.sql
Part 3
PuTTY Commands
(change example.com to your domain name)
chown -R www-data:www-data /var/www/
example.com
ln -s /etc/nginx/sites-available/
example.com
/etc/nginx/sites-enabled/
nginx -t
(If there is an error when you run this then you need to check the configuration file)
systemctl reload nginx
Make sure website config file is setup to point to newdatabase.
Email
This field is for validation purposes and should be left unchanged.
×
×
Cart
Home
Payment Options
For Pros
Creating a Linode Server with Nginx
Setting Up a New Site on Linode
Log In
Username or Email Address
Password
Remember Me
Log In
Lost your password?
Contact Us
Name
Email
Message
Send