119 lines
1.7 KiB
Markdown
119 lines
1.7 KiB
Markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt-get update
|
|
sudo add-apt-repository ppa:ondrej/php
|
|
apt-get update
|
|
sudo apt-get install php8.2-cli php8.2-fpm
|
|
sudo apt install php8.2-common php8.2-mysql php8.2-xml php8.2-xmlrpc php8.2-curl php8.2-gd php8.2-imagick php8.2-cli php8.2-dev php8.2-imap php8.2-mbstring php8.2-opcache php8.2-soap php8.2-zip php8.2-redis php8.2-intl unzip -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir /etc/nginx/ssl/
|
|
chmod -R 655 /etc/nginx/ssl
|
|
chown -R www-data:www-data /etc/nginx/ssl
|
|
<copy paste the key and pem files from cloudflare ssl setup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir /etc/nginx/sites-available/old/
|
|
sudo mv /etc/nginx/sites-available/* /etc/nginx/sites-available/old/
|
|
sudo touch /etc/nginx/sites-available/thetempusproject.com.conf
|
|
<updated the main site conf>
|
|
<uploaded the ttp snippet>
|
|
<updated the nginx.conf>
|
|
|
|
|
|
sudo rm -rf /etc/nginx/sites-enabled/*
|
|
sudo ln -s /etc/nginx/sites-available/thetempusproject.com.conf /etc/nginx/sites-enabled/thetempusproject.com.conf
|
|
sudo systemctl restart nginx.service
|
|
|
|
|
|
|
|
|
|
|
|
cd ~
|
|
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
|
|
|
|
HASH=`curl -sS https://composer.github.io/installer.sig`
|
|
|
|
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
|
|
|
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd /var/www/
|
|
composer create-project thetempusproject/thetempusproject thetempusproject.com
|
|
|
|
|
|
sudo ln -s /etc/nginx/sites-available/black-airplane /etc/nginx/sites-enabled/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1Ag5calIO8xXwS
|
|
|
|
|
|
|
|
mysql
|
|
|
|
|
|
CREATE USER 'ttp'@'localhost' IDENTIFIED BY '1Ag5calIO8xXwS';
|
|
GRANT ALL PRIVILEGES ON * . * TO 'ttp'@'localhost';
|
|
|
|
FLUSH PRIVILEGES;
|
|
CREATE DATABASE ttp; |