@mac
To install OctoberCMS on CentOS, you can follow these steps:
- Update System Packages:
sudo yum update
- Install Required Dependencies:
sudo yum install epel-release
sudo yum install httpd git wget unzip
sudo yum install php php-mysql php-mbstring php-xml php-zip php-gd
- Configure Apache:
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl status httpd
- Install Composer:
sudo curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
- Clone OctoberCMS Repository:
cd /var/www/html
sudo git clone https://github.com/octobercms/october.git
- Install OctoberCMS using Composer:
cd october
sudo composer install --no-dev --optimize-autoloader
- Configure .env File:
sudo cp .env.example .env
sudo nano .env
Update the following parameters in the .env file:
APP_URL (your domain or server IP)
DB_DATABASE (your database name)
DB_USERNAME (your database username)
DB_PASSWORD (your database password)
- Set the Correct Permissions:
sudo chown -R apache:apache storage
sudo chown -R apache:apache bootstrap
sudo chmod -R 755 storage
sudo chmod -R 755 bootstrap
- Generate Application Key:
sudo php artisan key:generate
- Restart Apache:
1
|
sudo systemctl restart httpd
|
Now you should be able to access OctoberCMS by navigating to your domain or server IP in a web browser and completing the installation process.