install strapi
1. Update your server
sudo apt update && sudo apt upgrade -y
2. Install Node.js (LTS recommended, e.g. Node 18 or 20)
Strapi requires Node.js ≥ 18.
Install using NodeSource (recommended):
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
Check version:
node -v
npm -v
3. Install Yarn (optional but recommended)
npm install -g yarn
Check version:
yarn -v
4. Install Strapi (using npx)
Go to the folder where you want Strapi:
root@server1:/home/strapi.cloudvariation.in/public_html# npx create-strapi-app@latest cloudvariation
Strapi v5.25.0 🚀 Let's create your new project
🚀 Welcome to Strapi! Ready to bring your project to life?
Create a free account and get:
✨ 30 days of access to the Growth plan, which includes:
✅ Single Sign-On (SSO) login
✅ Content History
✅ Releases
? Please log in or sign up. Skip
? Do you want to use the default database (sqlite) ? Yes
? Start with an example structure & data? Yes
? Start with Typescript? Yes
? Install dependencies with npm? Yes
? Initialize a git repository? Yes
? Participate in anonymous A/B testing (to improve Strapi)? Yes
Strapi Creating a new application at /home/strapi.cloudvariation.in/public_html/cloudvariation
deps Installing dependencies with npm
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated mailcomposer@3.12.0: This project is unmaintained
npm warn deprecated buildmail@3.10.0: This project is unmaintained
npm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
added 1277 packages, and audited 1278 packages in 4m
189 packages are looking for funding
run `npm fund` for details
15 vulnerabilities (13 low, 2 moderate)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
✓ Dependencies installed
git Initializing git repository.
✓ Initialized a git repository.
Seed Seeding your database with sample data
> cloudvariation@0.1.0 seed:example
> node ./scripts/seed.js
[2025-10-02 23:03:32.419] info: The Users & Permissions plugin automatically generated a jwt secret and stored it in .env under the name JWT_SECRET.
[2025-10-02 23:03:32.422] warn: admin.auth.options.expiresIn is deprecated and will be removed in Strapi 6. Please configure admin.auth.sessions.maxRefreshTokenLifespan and admin.auth.sessions.maxSessionLifespan.
Setting up the template...
Ready to go
✓ Sample data added to your database
Strapi Your application was created!
Available commands in your project:
Start Strapi in watch mode. (Changes in Strapi project files will trigger a server restart)
npm run develop
Start Strapi without watch mode.
npm run start
Build Strapi admin panel.
npm run build
Deploy Strapi project.
npm run deploy
Seed your database with sample data.
npm run seed:example
Display all available commands.
npm run strapi
To get started run
cd /home/strapi.cloudvariation.in/public_html/cloudvariation
npm run develop
root@server1:/home/strapi.cloudvariation.in/public_html#
root@server1:/home/strapi.cloudvariation.in/public_html/cloudvariation# npm run build
root@server1:/home/strapi.cloudvariation.in/public_html/cloudvariation# chown -R strap5957:strap5957 *
proxy pass in openlitespeed
3. Run Strapi with PM2
Install PM2 to keep Strapi running in the background:
npm install -g pm2
cd my-project
pm2 start npm --name strapi -- run start
pm2 save
Comments
Post a Comment