GNU/Linux >> Tutoriels Linux >  >> Debian

Installer Fork CMS sur un VPS Debian

Dans ce tutoriel, nous verrons comment installer Fork CMS sur un VPS Debian 7 (Wheezy) avec MySQL, PHP-FPM et Nginx
Fork CMS est un système de gestion de contenu open source écrit en PHP et livré avec des modules, des thèmes, une prise en charge multilingue, une optimisation des moteurs de recherche et bien d'autres. Fork CMS se consacre à la création d'un environnement convivial pour créer, surveiller et mettre à jour votre site Web.

.

Installez MySQL et créez une base de données.

apt-get update
apt-get upgrade
apt-get install mysql-server mysql-client
mysql -uroot -p
CREATE DATABASE login.
GRANT ALL PRIVILEGES ON fork.* TO 'forkuser'@'localhost' IDENTIFIED BY '_FORKUSER_PASSWORD_';
FLUSH PRIVILEGES;
/q

Installer Nginx et PHP-FPM

apt-get install nginx php5-fpm php-cli php5-mysql php5-gd php5-mcrypt

Installer Composer et Git

apt-get install git
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Créez un répertoire racine pour votre site Web et clonez le dépôt git à partir de github

mkdir -p /var/www/yourwebsite.com/{public_html,logs}
git clone https://github.com/forkcms/forkcms.git /var/www/yourwebsite.com/public_html

Installez les dépendances et définissez les autorisations appropriées

cd var/www/yourwebsite.com/public_html
composer install -o
chown -R www-data: /var/www/yourwebsite.com/public_html/

Configuration Nginx.
Créez un nouveau bloc serveur Nginx avec le contenu suivant

# /etc/nginx/sites-available/yourwebsite.com
server {
  server_name yourwebsite.com;
  listen 80;
  root /var/www/yourwebsite.com/public_html;
  access_log /var/www/yourwebsite.com/logs/access.log;
  error_log /var/www/yourwebsite.com/logs/error.log;
  index index.php;

  location ~ ^/(backend|install|api(\/\d.\d)?(\/client)?).*\.php$ {
    try_files $uri $uri/ /index.php?$args;
  }

  location / {
    try_files $uri /index.php?$args;
  }

  location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
    access_log off;
    expires max;
  }
  location ~ /\.ht {
    deny  all;
  }
  location ~ \.php {
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}

Liez-le et redémarrez le serveur

ln -s /etc/nginx/sites-available/yourwebsite.com /etc/nginx/sites-enabled/yourwebsite.com
/etc/init.d/nginx restart

Installation du CMS fork

Ouvrez un navigateur pointant vers votre installation Fork CMS et suivez les instructions à l'écran pour terminer le processus.

Bien sûr, vous n'avez rien à faire si vous utilisez l'un de nos services d'hébergement VPS Linux, auquel cas vous pouvez simplement demander à nos administrateurs linux experts de l'installer pour vous. Ils sont disponibles 24h/24 et 7j/7 et prendront immédiatement en charge votre demande.

PS. Si vous avez aimé cet article, partagez-le avec vos amis sur les réseaux sociaux en utilisant les boutons à gauche ou laissez simplement une réponse ci-dessous. Merci.


Debian
  1. Comment installer PHP 8.0 sur Debian 11

  2. Comment installer PHP 8.0 sur Debian 10 / Debian 9

  3. Comment installer PHP 8 sur Debian 10

  4. Comment installer Wolf CMS sur un VPS CentOS

  5. Installer MODX sur un VPS Debian 7

Comment installer PHP sur Debian 9

Comment installer PHP sur Debian 10 Linux

Comment installer la plate-forme CMS d'octobre sur Debian 9

Comment installer Craft CMS sur Debian 9

Comment installer Fork CMS avec NGINX sur Debian 9

Comment installer Pagekit CMS sur Debian 9