install

  1. su - drupal
  2. cd /var/www/DRUPALPROJECT
  3. composer require drush/drush:^12 -w
  4. ./vendor/bin/drush --version

vim ~/.zshrc

# Add ./vendor/bin to PATH only if it exists
function update_vendor_bin_path() {
    if [ -d "$PWD/vendor/bin" ]; then
        export PATH="$PWD/vendor/bin:$PATH"
    else
        # Remove ./vendor/bin from PATH if no longer exists
        PATH=$(echo "$PATH" | awk -v
Tags
  1. curl -sS https://getcomposer.org/installer | php 
  2. mv composer.phar /usr/local/bin/composer
  3. composer audit
  4. composer diagnose
  5. composer update --no-plugins --no-scripts -W --ignore-platform-reqs -vvv
  6. composer update

 

Tags
  1. composer apache2 mariadb-server mariadb-client php libapache2-mod-php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-intl php-mbstring php-curl php-xml php-pear php-tidy php-soap php-bcmath php-xmlrpc
  2. adduser drupal
  3. usermod -aG www-data drupal

Create New Site

  1. nginx-drupal-proxy 
  2. SITEDOMAIN=
  3. vim /etc/apache2/sites-available/$SITEDOMAIN.conf
  4. a2ensite $SITEDOMAIN.conf
  5. systemctl reload apache2
  6. su drupal
Tags
<VirtualHost *:80>
    DocumentRoot  /var/www/drupal/web/
    ServerName   DOM.TLD
    include        conf/drupal.conf
    # include        conf/awstatsauth.conf
    CustomLog    ${APACHE_LOG_DIR}/DOM.TLD_access.log combined
</VirtualHost>

/etc/apache2/apache2.conf

<Directory /var/www/>
    Options Indexes FollowSymLinks
    Allo
Tags

server {
    server_name bubuit.net;
#    add_header Strict-Transport-Security "max-age=7200";

    location / {
        proxy_pass http://10.0.3.LXC-IP;
        include proxy_params;
#        proxy_ignore_client_abort on;