Install glazed demo manually

Log in to your Sooper Themes account and download a demo

https://www.sooperthemes.com/documentation/installing-new-glazed-site-manually

Unzip the demo to the destination folder

cd /var/www/glazed-demo-basic
unzip ~/glazed/demo/glazed-cms-8-glazed_basic_demo.zip 
sudo chgrp -R www-data .

Update projects

composer update --dry-run
composer update

Update drupal

 composer update drupal/core-recommended --with-dependencies

Set up apache for the new site. The glaze demo is a bit different from a typical Drupal 8 install since the Drupal folder and the Composer folder are the same.

<VirtualHost *:80>
  ServerName local.glazed-basic.site.com
  DocumentRoot /var/www/glazed-demo-basic

  ErrorLog  ${APACHE_LOG_DIR}/site_glaze-basic.http.error_log
  CustomLog ${APACHE_LOG_DIR}/site_glaze-basic.http.access_log combined

  <Directory /var/www/glazed-demo-basic>
    AllowOverride ALL

    Require all granted

    #Require ip 192.168

  </Directory>
</VirtualHost>

Enable the configuration and restart apache to apply the changes. 

sudo a2ensite glazed-basic.conf

and

sudo service apache2 restart

or

sudo systemctl restart apache2

Add the domain to the local hosts file if required.

Go to the new site to begin the install.

http://local.glazed-basic.site.com

Should see the setup screen

Fix any issues

mkdir files
sudo chmod g+w . settings.php

When you get to the database screen, create the database in PHPMyAdmin

site_glaze-basic

Paste the details from PHPMyAdmin into the Drupal screen.

Finish by adding the demo data

 

If the install fails, you’ll need to restart the install.

To do so, drop all the tables in the database, remove the database connection details from settings.php, clear the files folder, and repeat by going to the site URL

http://local.glazed-basic.site.com

Repeat the install and correct any errors reported. The install could fail because of file permission issues. Or because a composer-managed project is out of date. Or because PHP ran out of memory installing demo content.

Ex.

Got error ‘PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes)

Multisite

To host multiple glazed demos from the same code base, install the next glazed demo in a separate folder. Then copy the site/default folder to the common code base and update sites.php appropriately. Update the apache site.conf file to point to the new location as well.

Copy over any required modules from the install folder to the multisite code base. This includes the glazed_THEME_demo module in profiles/cms/modules/sooperthemes_premium/demo_sites.

Run drush updb to find missing profiles/cms/modules/contrib modules that must be copied from the install code base into the mutli-site code base.

Issues

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "formatter_field_formatter" plugin does not exist.[error]

The fix for this was the clear and re-import the database. No amount of rebuilding the cache would work. Having the modules in their correct locations from the start was key.

Glazed Canvas requires cms_events and cms_news.

Landscaping demo, while installing demo content says

Got error 'PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 589824 bytes)

Solution is to install on a server that has more memory and move back to the lower memory server. The extra memory is only required to install demo content.

If the server is running FPM, the solution is to update the fpm php.ini file and restart FPM

sudo systemctl restart  php7.2-fpm.service