Skip to content

Debian 12'ye Craft CMS Nas?l Yüklenir

Cloud Infrastructure Expert
Debian 12'ye Craft CMS Nas?l Yüklenir

 

 

Craft CMS’yi VPS sunucunuzda yüklemek basit bir süreçtir. A?a??daki ad?mlar? izleyerek kurulum yapabilirsiniz.

Ad?m 1: Sistemi Güncelleyin

        sudo apt update && sudo apt upgrade -y
    

Ad?m 2: Gerekli Ba??ml?l?klar? Yükleyin

PHP, MySQL ve Composer gibi gerekli paketleri yükleyin:

        sudo apt install nginx mysql-server php php-fpm php-mysql php-xml php-mbstring php-curl php-zip php-gd -y
        curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    

Ad?m 3: MySQL Veritaban?n? Ayarlay?n

MySQL’e giri? yaparak Craft CMS için bir veritaban? ve kullan?c? olu?turun:

        sudo mysql -u root -p
    

MySQL komut sat?r?nda a?a??daki komutlar? çal??t?r?n:

        CREATE DATABASE craft;
        CREATE USER 'craftuser'@'localhost' IDENTIFIED BY 'your_password';
        GRANT ALL PRIVILEGES ON craft.* TO 'craftuser'@'localhost';
        FLUSH PRIVILEGES;
        EXIT;
    

Ad?m 4: Craft CMS’yi ?ndirin

Web kök dizinine gidin ve Craft CMS’yi indirin:

        cd /var/www/html
        composer create-project craftcms/craft craft
    

Ad?m 5: Nginx’i Yap?land?r?n

Craft CMS için yeni bir yap?land?rma dosyas? olu?turun:

        sudo nano /etc/nginx/sites-available/craft
    

A?a??daki yap?land?rmay? ekleyin:

        server {
            listen 80;
            server_name your_domain.com; # Bunu kendi alan ad?n?za de?i?tirin

            root /var/www/html/craft/web;
            index index.php;

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

            location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # Gerekirse PHP sürümünü ayarlay?n
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
            }
        }
    

Yeni siteyi etkinle?tirin ve yap?land?rmay? test edin:

        sudo ln -s /etc/nginx/sites-available/craft /etc/nginx/sites-enabled/
        sudo nginx -t
        sudo systemctl reload nginx
    

Ad?m 6: Craft CMS Kurulumunu Tamamlay?n

Web taray?c?n?z? aç?n ve http://your_domain.com adresine gidin. Kurulumu tamamlamak için ekrandaki talimatlar? izleyin ve istenildi?inde veritaban? bilgilerini girin.

Sonuç

Bu ad?mlar? izleyerek, VPS sunucunuzda Craft CMS’yi ba?ar?yla kurdunuz. Art?k web sitenizi olu?turmaya ba?layabilirsiniz!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.