bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/ubuntu.sh)"
192.168.0.193/24 192.168.0.254
root ..yv
df sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt upgrade
sudo apt -y install php8.2 php -v sudo apt -y install libapache2-mod-php8.2
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash sudo apt install symfony-cli symfony --version
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=curl -sS https://composer.github.io/installer.sig
echo $HASH
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
composer --version
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.bashrc
nvm install --lts
npm install -g pnpm
sudo apt install git -y git config --global user.name "Archistico" git config --global user.email "info@archistico.com" git config --list nano ~/.gitconfig
ssh-keygen -t ed25519 -C "info@archistico.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519 cat ~/.ssh/id_ed25519.pub
Copia tutto il cat sotto setting -> SSH keys
sudo apt install sqlite3 libsqlite3-dev -y
sudo apt install curl -y
sudo ufw app list sudo ufw allow 'Apache'
sudo systemctl status apache2
per trovare l'IP
ip addr show eth0 | grep inet | awk '{ print
sudo mkdir /var/www/inout sudo chown -R $USER:$USER /var/www/inout sudo nano /etc/apache2/sites-available/inout.conf
<VirtualHost *:80> ServerName inout ServerAlias www.inout ServerAdmin webmaster@localhost DocumentRoot /var/www/inout/public
<Directory /var/www/inout/public>
AllowOverride None
Require all granted
FallbackResource /index.php
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
sudo a2ensite inout sudo a2dissite 000-default sudo apache2ctl configtest sudo systemctl reload apache2
nano /var/www/inout/index.html
<title>inout website</title><p>This is the landing page of <strong>inout</strong>.</p>
sudo nano /etc/apache2/mods-enabled/dir.conf spostare php prima di html DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
sudo systemctl reload apache2
nano /var/www/inout/index.php