Files
thetempusproject/server/README.md
2024-12-14 05:54:54 -05:00

121 lines
2.1 KiB
Markdown

sudo apt update
======== PHP ==============
apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
apt-get update
sudo apt-get install php8.2-cli php8.2-fpm
update-alternatives --set php /usr/bin/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
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 allthebookmarks
< I then copied all my updates manuyally, deletiing the ixiisting files >
mkdir /etc/nginx/sites-available/old/
sudo mv /etc/nginx/sites-available/* /etc/nginx/sites-available/old/
sudo rm -rf /etc/nginx/sites-enabled/*
touch /etc/nginx/sites-available/allthebookmarks.com.conf
sudo ln -s /etc/nginx/sites-available/allthebookmarks.com.conf /etc/nginx/sites-enabled/allthebookmarks.com.conf
< you now need to copy the correct content to the new file >
sudo systemctl restart nginx.service
publiic ip
74.207.230.135
Email address (for the Let's Encrypt SSL certificate) (required)
webmaster@allthebookmarks.com
The limited sudo user to be created for the Linode: *No Capital Letters or Special Characters* (required)
joey
Security
Root Password
131df9fbc597cf0eac3424
mysql db allthebookmarks@localhost
Xiv9_JrXXhF9I
SELECT User, Host FROM mysql.user;
CREATE USER 'allthebookmarks'@'localhost' IDENTIFIED BY 'Xiv9_JrXXhF9I';
SHOW GRANTS FOR 'allthebookmarks'@'localhost';
GRANT ALL PRIVILEGES ON * . * TO 'allthebookmarks'@'localhost';
FLUSH PRIVILEGES;
SHOW DATABASES;
CREATE DATABASE allthebookmarks;