Skip to main content
SidsProjectImpact

Back to all posts

How to Install October CMS on CentOS?

Published on
8 min read
How to Install October CMS on CentOS? image

Best Tools and Resources to Install CMS to Buy in January 2026

1 Contour Gauge 10 Inch, Widen Plastic Profile Gauge Duplicator, Precisely Copy Irregular Shapes Wood Template Measuring Tool for Perfect Fit and Easy Cutting (10 Inch Widen-Red)

Contour Gauge 10 Inch, Widen Plastic Profile Gauge Duplicator, Precisely Copy Irregular Shapes Wood Template Measuring Tool for Perfect Fit and Easy Cutting (10 Inch Widen-Red)

  • INSTANT SHAPE DUPLICATION: QUICKLY COPY ANY CONTOUR, SAVING TIME!
  • DURABLE & ACCURATE: HIGH-QUALITY ABS WITH BOTH INCH AND CM MEASUREMENTS.
  • VERSATILE USE: IDEAL FOR PIPES, FRAMES, TILES, AND VARIOUS MODELING TASKS.
BUY & SAVE
$14.99
Contour Gauge 10 Inch, Widen Plastic Profile Gauge Duplicator, Precisely Copy Irregular Shapes Wood Template Measuring Tool for Perfect Fit and Easy Cutting (10 Inch Widen-Red)
2 Saker Contour Gauge Profile Tool- Adjustable Lock-Precisely Copy Irregular Shape Duplicator -Father's Day Gift for Irregular Welding Woodworking Tracing -Tool for DIY Handyman, Construction (10INCH)

Saker Contour Gauge Profile Tool- Adjustable Lock-Precisely Copy Irregular Shape Duplicator -Father's Day Gift for Irregular Welding Woodworking Tracing -Tool for DIY Handyman, Construction (10INCH)

  • PRECISE SHAPE DUPLICATION FOR FLAWLESS TILE AND LAMINATE FITTING.

  • ADJUSTABLE LOCKING FEATURE ENSURES PERFECT TRACES EVERY TIME.

  • DURABLE, PORTABLE DESIGN MADE FROM HIGH-QUALITY ABS PLASTIC.

BUY & SAVE
$29.90
Saker Contour Gauge Profile Tool- Adjustable Lock-Precisely Copy Irregular Shape Duplicator -Father's Day Gift for Irregular Welding Woodworking Tracing -Tool for DIY Handyman, Construction (10INCH)
3 General Tools Contour Gauge 833 - 10" Angle Finder Tool for Home Improvement - Gadgets for Men

General Tools Contour Gauge 833 - 10" Angle Finder Tool for Home Improvement - Gadgets for Men

  • INSTANTLY DUPLICATE SHAPES FOR PERFECT FIT EVERY TIME!

  • STURDY DESIGN MEASURES PROFILES UP TO 1-1/4 WITH EASE!

  • COMPACT & MAGNETIC FOR CONVENIENT STORAGE AFTER USE!

BUY & SAVE
$12.61
General Tools Contour Gauge 833 - 10" Angle Finder Tool for Home Improvement - Gadgets for Men
4 S&G Tool Aid (87435 Windshield Cut-Out Wire Starting Tool

S&G Tool Aid (87435 Windshield Cut-Out Wire Starting Tool

  • LIGHTWEIGHT DESIGN ENHANCES PORTABILITY FOR EASY INSTALLATION.
  • COMPACT DIMENSIONS PERFECT FOR ALL AUTO ACCESSORY NEEDS.
  • CONVENIENT SINGLE-PACKAGE QUANTITY FOR HASSLE-FREE SHOPPING.
BUY & SAVE
$27.08
S&G Tool Aid (87435 Windshield Cut-Out Wire Starting Tool
5 Contour Gauge Duplicator with Lock, 2 Pack Widen Shape Contour Duplication Gauge Profile Tool (5" & 10"), Precisely Copy Irregular Shape Instant Template for Corner, Pipe, Tile, Flooring, Molding

Contour Gauge Duplicator with Lock, 2 Pack Widen Shape Contour Duplication Gauge Profile Tool (5" & 10"), Precisely Copy Irregular Shape Instant Template for Corner, Pipe, Tile, Flooring, Molding

  • DUAL SIZES & UNITS: INCLUDES 10'' & 5'' GAUGES IN INCHES & CM.

  • WIDER DESIGN: 50% WIDER THAN STANDARD GAUGES FOR DEEPER SHAPES.

  • ADJUSTABLE LOCK: MAINTAINS SHAPE ACCURACY WITH EASY LOCKING FEATURE.

BUY & SAVE
$21.95
Contour Gauge Duplicator with Lock, 2 Pack Widen Shape Contour Duplication Gauge Profile Tool (5" & 10"), Precisely Copy Irregular Shape Instant Template for Corner, Pipe, Tile, Flooring, Molding
6 Proxxon 28557 Diamond-Coated Cutting and Roughing Disc

Proxxon 28557 Diamond-Coated Cutting and Roughing Disc

  • COMPACT SIZE: PERFECT FOR EASY STORAGE AND PORTABILITY.
  • VERSATILE TOOL: IDEAL FOR VARIOUS DIY AND REPAIR TASKS.
  • QUALITY CRAFTSMANSHIP: RELIABLE PERFORMANCE FROM CHINA.
BUY & SAVE
$39.09 $41.40
Save 6%
Proxxon 28557 Diamond-Coated Cutting and Roughing Disc
7 Bon 15-200 Repair Kit for Corner Bead Tool

Bon 15-200 Repair Kit for Corner Bead Tool

  • COMPACT DIMENSIONS FOR EASY PORTABILITY AND STORAGE.
  • ESSENTIAL TOOL FOR A VARIETY OF TASKS-VERSATILE AND RELIABLE.
  • QUALITY CRAFTSMANSHIP FROM CHINA ENSURES DURABILITY AND PERFORMANCE.
BUY & SAVE
$26.73
Bon 15-200 Repair Kit for Corner Bead Tool
8 Cal-Van Tools 734 Serpentine Belt Tool

Cal-Van Tools 734 Serpentine Belt Tool

  • PREMIUM TAIWAN-MADE AUTO ACCESSORY FOR RELIABLE QUALITY.
  • SLEEK DESIGN: COMPACT DIMENSIONS FOR EASY INSTALLATION.
  • SOLD INDIVIDUALLY FOR TAILORED SOLUTIONS TO YOUR NEEDS.
BUY & SAVE
$42.15
Cal-Van Tools 734 Serpentine Belt Tool
9 Insulated Tool Set, 13 pc.

Insulated Tool Set, 13 pc.

  • COMPACT SIZE: FITS EASILY IN ANY TOOLBOX OR WORKSPACE.
  • PREMIUM GERMAN QUALITY ENSURES DURABILITY AND RELIABILITY.
  • ONE ESSENTIAL TOOL PER PACKAGE FOR TARGETED EFFICIENCY.
BUY & SAVE
$412.99
Insulated Tool Set, 13 pc.
+
ONE MORE?

To install October CMS on CentOS, follow the steps below:

  1. Ensure that your CentOS system is up to date by running the command sudo yum update.
  2. Install a web server (Apache or Nginx) and enable it to start automatically on boot. For Apache, run sudo yum install httpd and for Nginx, run sudo yum install nginx. Start the web server by running sudo systemctl start httpd for Apache or sudo systemctl start nginx for Nginx.
  3. Install PHP and necessary extensions by running sudo yum install php php-mysql php-gd php-dom php-mbstring php-json php-curl.
  4. Create a new database for October CMS by running mysql -u root -p. Enter your MySQL root password and then run the following commands:

CREATE DATABASE octoberdb; GRANT ALL PRIVILEGES ON octoberdb.* TO 'octoberuser'@'localhost' IDENTIFIED BY 'your_chosen_password'; FLUSH PRIVILEGES; EXIT;

Note: Replace octoberdb, octoberuser, and your_chosen_password with your preferred values.

  1. Download the October CMS installation files using the wget command. Run wget https://github.com/octobercms/october/archive/master.zip to download the latest version.
  2. Install the unzip utility by running sudo yum install unzip.
  3. Extract the downloaded ZIP file using the following command: unzip master.zip.
  4. Move the extracted files to the web server's document root. For Apache, run sudo mv october-master/* /var/www/html/ and for Nginx, run sudo mv october-master/* /usr/share/nginx/html/.
  5. Grant necessary permissions to the web server user by running sudo chown -R apache:apache /var/www/html/ for Apache or sudo chown -R nginx:nginx /usr/share/nginx/html/ for Nginx.
  6. Navigate to the document root directory by running cd /var/www/html/ for Apache or cd /usr/share/nginx/html/ for Nginx.
  7. Install Composer, a dependency manager for PHP, by running the following commands:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php composer-setup.php php -r "unlink('composer-setup.php');"

  1. Install October CMS dependencies by running php composer.phar install --no-dev.
  2. Rename the .env.example file to .env by running mv .env.example .env.
  3. Generate a unique application key by running php artisan key:generate.
  4. Edit the .env file with your database details. Set APP_URL to your domain name or IP address, and modify the DB_* variables according to your database setup.
  5. Set appropriate file permissions by running chmod -R 755 storage bootstrap/cache.
  6. Restart the web server to apply the changes by running sudo systemctl restart httpd for Apache or sudo systemctl restart nginx for Nginx.
  7. Finally, access your October CMS installation via a web browser using your domain name or IP address.

That's it! You have successfully installed October CMS on CentOS.

What is a partial in October CMS and how to use it?

In October CMS, a partial is a reusable code block that can be added to multiple pages or layouts. It allows you to encapsulate and reuse portions of your website's code across different pages or components.

To use a partial in October CMS, follow these steps:

  1. Identify the code section that you want to reuse. This can be a specific HTML markup, PHP code, or a combination of both.
  2. Create a new partial file by navigating to the partials directory within your theme. If the partials directory does not exist, you can create one.
  3. Inside the partials directory, create a new file with a .htm or .php extension (for example, myPartial.htm).
  4. Open the newly created partial file and write the desired code that you want to reuse. Make sure to include the proper opening and closing tags for the file type you are using (e.g., for PHP code).
  5. Save the partial file.
  6. In the page or layout where you want to use this partial, open the respective file for editing.
  7. To include the partial, use the {% partial %} tag. The syntax is as follows: {% partial "partials/myPartial" %} Note: The path provided in the partial tag should be relative to the theme's partials directory. You do not need to include the file extension in the tag.
  8. Save the modified file.

Now, whenever the page or layout is rendered, the specified partial will be included in that location, allowing you to reuse code and keep your codebase more organized and manageable.

How to install October CMS on CentOS step by step?

To install October CMS on CentOS, follow these step-by-step instructions:

  1. Update the system:

sudo yum update

  1. Install the required dependencies:

sudo yum install epel-release yum-utils -y sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y sudo yum-config-manager --enable remi-php73 sudo yum install php php-cli php-fpm php-mysql php-pdo php-mbstring php-xml php-imagick php-zip php-gd -y sudo systemctl start php-fpm sudo systemctl enable php-fpm

  1. Install Nginx web server:

sudo yum install nginx -y sudo systemctl start nginx sudo systemctl enable nginx

  1. Install MySQL/MariaDB server:

sudo yum install mariadb-server -y sudo systemctl start mariadb sudo systemctl enable mariadb

  1. Secure the MySQL/MariaDB installation:

sudo mysql_secure_installation

Follow the on-screen prompts to set a root password, remove anonymous users, disallow root login remotely, remove test databases, and reload privilege tables.

  1. Create a database and user for October CMS:

sudo mysql -u root -p

Enter your root password and run these commands to create the database and user:

CREATE DATABASE octoberdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'octoberuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON octoberdb.* TO 'octoberuser'@'localhost'; FLUSH PRIVILEGES; EXIT;

  1. Install Composer (PHP package manager):

sudo yum install curl -y curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

  1. Install October CMS using Composer:

cd /var/www/html sudo composer create-project october/october ./ sudo chown -R nginx:nginx /var/www/html/ sudo chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache

  1. Configure Nginx for October CMS:

sudo vi /etc/nginx/conf.d/october.conf

Add the following content to the file:

server { listen 80; server_name your_domain_name_or_server_ip; root /var/www/html/public/; index index.php;

location / {
    try\_files $uri $uri/ /index.php?$query\_string;
}

location ~ \\.php$ {
    fastcgi\_pass unix:/var/run/php-fpm/php-fpm.sock;
    fastcgi\_index index.php;
    fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_name;
    include fastcgi\_params;
}

}

  1. Save and close the file (Press Esc, then type :wq and Enter).
  2. Test the Nginx configuration:

sudo nginx -t

If the configuration test is successful, restart Nginx:

sudo systemctl restart nginx

  1. Access October CMS on your browser: In a web browser, visit http://your_domain_name_or_server_ip, and the October CMS installation wizard should appear. Follow the on-screen instructions to complete the installation.

That's it! You have successfully installed October CMS on CentOS.

What is the default administrator account for October CMS?

The default administrator account for October CMS is "admin" with the password "admin". It is highly recommended to change the password for security reasons after completing the initial setup.

How to update CentOS packages before installing October CMS?

To update CentOS packages before installing October CMS, you can follow these steps:

  1. Connect to your CentOS server using SSH or a terminal emulator.
  2. Run the following command to update the package lists: sudo yum update This command will fetch the latest package lists from the CentOS repositories.
  3. After the package lists are updated, run the following command to upgrade the installed packages to their latest versions: sudo yum upgrade This command will upgrade all the installed packages on your CentOS server.
  4. Once the upgrade process is complete, you can proceed with the installation of October CMS or any other software you want.

Keep in mind that updating and upgrading packages on a server can take some time, especially if there are many updates available. It is recommended to schedule this process during a maintenance window or during a time when there is lower user activity to minimize any impact on the server's performance.

What is Composer and how to install it on CentOS?

Composer is a dependency management tool for PHP that allows you to manage and install packages of PHP libraries and frameworks. It simplifies the process of managing dependencies in your PHP projects.

To install Composer on CentOS, you can follow these steps:

Step 1: Start by updating the packages list on your CentOS system:

sudo yum update

Step 2: Install the required dependencies:

sudo yum install curl php-cli php-mbstring git unzip

Step 3: Download the Composer installer by running the following command:

cd ~ curl -sS https://getcomposer.org/installer -o composer-setup.php

Step 4: Verify the downloaded installer by comparing its SHA-384 hash with the latest hash available on the Composer Public Keys / Signatures page:

HASH="$(curl -sS https://composer.github.io/installer.sig)" php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

If the verification is successful, you should see the message "Installer verified".

Step 5: Run the installer to install Composer globally:

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

This will install Composer in the /usr/local/bin directory and create a symlink named "composer".

Step 6: Verify the installation by running the following command:

composer --version

If Composer is successfully installed, you should see the version information.

That's it! Composer is now installed on your CentOS system, and you can start using it to manage your PHP project dependencies.