How to Deploy a Craft CMS Website via FTP (Ubuntu + Apache2 Server)

Опубликовано: 29 Март 2026
на канале: Luke Peters
4,201
77

FULL STACK COURSE (React, Flask, & PostgreSQL): https://lukepeters.me/build-a-full-st...

There are many ways to deploy a Craft CMS website, but several people have asked me how to do it over FTP, so here's my answer!

0:00 - Intro
0:19 - Step 1: Migrate the database
2:42 - Step 2: Create an .env file for production
4:34 - Step 3: Upload all files via FTP
6:24 - Step 4: Set file permissions
8:06 - Step 5: Create an Apache VirtualHost file
10:22 - How to debug problems
12:18 - Check Craft's system requirements
13:00 - PHP configuration changes
16:20 - Increase the Craft CMS file upload limit
18:08 - Enabling Admin changes on production (temporarily)
19:03 - Final thoughts - let me know if you need help!

I would generally recommend only using FTP to get your website assets and templates uploaded, then using the Composer CLI to install Craft CMS itself and all of it's dependencies directly on the server. But this video demonstrates a Composer-free and Git-free method of deploying a Craft CMS website.

Another approach is to use Git-based managed hosting services from companies like Fortrabbit. These allow you to push your entire website to production (and staging) via Git. Fortrabbit even has a useful database migration tool to make that part easier.

---------------------------------------------------------------
WEB HOSTING

I've been hosting ALL of my own websites (and many of my client's websites) on virtual private servers from Linode for years. I love them. The server I deployed to in this video is on Linode!

They have FAST servers for as low as $5/month. Here's my referral link if you want to check them out: https://lukepeters.tech/linode

---------------------------------------------------------------
PROJECT RESOURCES

✅ Follow Craft's docs for securing your site: https://craftcms.com/knowledge-base/s...
✅ Read more about hosting Craft CMS here: https://craftcms.com/knowledge-base/h...

---------------------------------------------------------------
MY DESK SETUP GEAR

⌨️ Keyboard – https://amzn.to/3sR3WEK

🖱 Mouse – https://amzn.to/3aEBvnc

🖥 Monitor – https://amzn.to/30pmuzd

🦾 Monitor Mount/Arm – https://amzn.to/3sLd3Xu

🎤 Microphone – https://amzn.to/3sRfxUb

🦾 Microphone Arm – https://amzn.to/3xrxImT

🎛 Microphone Processor – https://amzn.to/3gConme

⚡️ Thunderbolt Dock – https://amzn.to/3aE8aJC

🔊 Speakers – https://amzn.to/3nip0D0

🎧 Headphones – https://amzn.to/3xoCVfm

🪑 Chair – https://amzn.to/3eBIw9I

---------------------------------------------------------------
Intro music produced by Connor Curley