From f6e4766352b88b6ecf2dd8980d57d2e2deae9f2d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 23:07:34 +0000 Subject: [PATCH 1/4] docs(installation): update installation guide to Drupal 11+, archive Drupal 7 content Agent-Logs-Url: https://github.com/PECE-project/drupal-pece/sessions/4a0859e9-567d-404f-9817-f9fcb0084486 Co-authored-by: revagomes <201890+revagomes@users.noreply.github.com> --- installation/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installation/index.html b/installation/index.html index 4a19ee582..c868e079f 100644 --- a/installation/index.html +++ b/installation/index.html @@ -116,7 +116,7 @@
  • - Edit on GitHub + Edit on GitHub
  • @@ -131,6 +131,7 @@
  • PECE System Administration
  • How do I install PECE?
  • +
  • System Requirements
  • Downloading the Distro
  • Dependencies
  • Quick Install
  • @@ -138,8 +139,6 @@
  • I’ve installed PECE, but none of my links are working. What is going on?
  • -
  • I get an error about a YAML parser being missing. How can I fix that?
  • -
  • When should the admin login credentials be used?
  • How do I update the site information?
  • From 175ee583f1240c5702718f9a7e537a5f717babd0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 23:15:06 +0000 Subject: [PATCH 2/4] docs(installation): archive D7 guide and update installation page for Drupal 11+ Agent-Logs-Url: https://github.com/PECE-project/drupal-pece/sessions/2226b543-d922-4707-bd1d-17140e67cd22 Co-authored-by: revagomes <201890+revagomes@users.noreply.github.com> --- installation-legacy/index.html | 417 +++++++++++++++++++++++++++++++++ installation/index.html | 232 ++++++++++-------- 2 files changed, 550 insertions(+), 99 deletions(-) create mode 100644 installation-legacy/index.html diff --git a/installation-legacy/index.html b/installation-legacy/index.html new file mode 100644 index 000000000..f2a70f839 --- /dev/null +++ b/installation-legacy/index.html @@ -0,0 +1,417 @@ + + + + + + + + + + + + + + System Admin's Guide (Drupal 7 Legacy) - PECE Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    +
    + 📁 Archived — Drupal 7 Legacy Documentation
    + This page contains the original PECE installation instructions for Drupal 7, which is no longer maintained. + If you are setting up a new PECE instance, please use the + current installation guide (Drupal 11+) instead. +
    + + +

    PECE System Administration

    +

    How do I install PECE?

    +

    PECE is a Free Software-based Drupal distribution, therefore the +standard installation procedure for Drupal 7 applies to PECE with a few +extra dependencies.

    +

    The following instructions have been tested on a Debian 8 (jessie) +server, but they are not OS-dependent. PECE should run on any system +supported by Drupal 7. PECE has been tested in virtual machines with +256M allocated for PHP, being 128M the recommended minimum for Drupal 7 +distributions. Your configuration, of course, may vary considerably +depending on the usage you are making of the platform. Refer to our data +management guidelines under the “sustainability” section to learn about +the recommended minimum specs for your servers.

    +

    Downloading the Distro

    +

    Our distribution is currently being developed on Github. You can obtain +the most updated version following the link “Releases” on the project’s +git repository:

    +
    +

    https://github.com/PECE-project/pece-distro

    +
    +

    Alternatively, you can obtain the source code and build the distro +yourself if you intend to help our team by fixing bugs and extending the +platform for your research purposes:

    +
    +

    git clone +https://github.com/PECE-project/drupal-pece.git

    +
    +

    If you are a developer who wants to contribute to PECE, you will need to +follow special instructions to install and configure the tools for +building the distro. Consult the sub-section Setting up the Development Environment +below for more information.

    +

    Dependencies

    +

    PECE has extra dependencies in addition to the ones you will need for +Drupal 7 core:

    + +

    Quick Install

    +

    If you have the server backend already set-up, you can quickly install +PECE following these steps:

    +

    Clone the ‘’pece-distro’’ repository:

    +
    +

    git clone +https://github.com/PECE-project/pece-distro.git

    +
    +

    Create an empty database:

    +
    +

    mysql -u $YOUR_USER -p -e "CREATE DATABASE $YOUR_DB_NAME +CHARACTER SET utf8 COLLATE utf8_general_ci;"

    +
    +

    Proceed to the URL in which your Drupal will reside, i.e. +https://worldpece.org. From there, you can install PECE like any other +Drupal site. Follow the Drupal.org official documentation if you need further help. In the +section Troubleshooting below we describe common issues users have when trying to install PECE without the proper backend dependencies, configurations, and permissions.

    +

    One important note: please, make sure to set the permissions on the +filesystem properly. We cannot emphasize this enough. The official Drupal documentation explains how +to do so, if you have questions. (In our experience, we have needed to +set the file permissions at sites/default/files/artifacts to 770 and +sites/default/files/private to 770.)

    +

    I want to use HTTPS with PECE. How can I do that?

    +

    A very simple tutorial for setting up HTTPS with Certbot on Ubuntu can be found here.

    + +

    Your webserver is not properly configured to support what is called +“Clean URLs” on Drupal. Make sure you have your httpd “rewrite” rules +properly set-up. This configuration can be done in the vhost file of +your nginx configuration, following the Perusio guide or using the default.htaccess file that is provided by default by Drupal if you are running Apache.

    +

    I get an error about a YAML parser being missing. How can I fix that?

    +

    Newer versions of PHP require you to install pecl-yaml for YAML parsing. You can find it here. +We recommend using the latest version, which is 2.0.4 at the time of writing. Follow the pecl-yaml instructions to build and install it. +Then edit your php.ini file. For example, if you are using PHP 7.2, the file will be found at: +/etc/php/7.2/apache2/php.ini

    +

    Add the following line to php.ini: +extension=yaml.so

    +

    When should the admin login credentials be used?

    +

    Distribute admin login credentials to as few users as possible. Admin +login credentials should only be used to configure settings and to +approve new users. The admin credentials should not be used to add +content or comment on content.

    +

    How do I update the site information?

    +

    Go to “Administration » Configuration » System » Site information” and +fill out the information about your site name, the basic admin password, +contact, timezone and other relevant info.

    +

    How do I upload the terms of service?

    +

    Go to “Administration » Configuration » People » Legal” and click “Add +T&C”, then fill-out the boxes with your custom text to be displayed to +every user who requests an account on the system.

    +

    How do I set up back-ups?

    +

    As explained in our data management guidelines, PECE is configured to +automatically generate backups. You should, however, revise the settings +and set-up a SFTP connection to transfer your backup to another server +and ensure that you have extra security when storing your encrypted +backups. First, revise the settings we provided, changing whatever you +think is needed (say, the most convenient time, when the site is not +being used, to generate the backup). Go to “Configuration » System » +Backup and Migrate” to perform this first step. Then, click on +“Destinations” and “Add Destination” to set-up the SFTP connection with +the credentials of your backup server. Please note that you have to use +the port 22 (not 21) and password authentication, since ssh-key +authentication is unfortunately not supported yet.

    +

    How do I configure SMTP so that emails can be sent from the platform?

    +

    PECE uses Drupal notification for key events on the system. It has to be +configured using a regular email address, provided you have all the mail +server information. You just need your SMTP server info and credentials +to get this done. Go to “Administration » Configuration » System » SMTP +Authentication Support” and provide your SMTP server information, +including username and password.

    +

    How do I increase the file upload limit?

    +

    While logged-in as an administrator, navigate to Administration >> +Configuration >> Media >> File Settings. Under the Maximum +Upload Size field, enter a new value (we use 2GB). Click Save +Configuration. You may also need to increase the upload limit on the +server.

    +

    How do I update my instance when a new version of the PECE distro is released?

    +

    Always back-up your files and database before updating the platform.

    +

    Put the site in maintenance mode. Under sites/default/, there is a file +called settings.php. Search for $update_free_access = FALSE; and +change FALSE to TRUE.

    +

    Then, go to YourSite/update.php and follow the steps. In theory major +updates are not handled differently, but sometimes issues have occurred.

    +

    Be sure to turn off maintenance mode when you are done.

    +

    Other Post-Installation Troubleshooting

    +
    + + +
    + + + + + + + + + + + + + + + + + + + + diff --git a/installation/index.html b/installation/index.html index c868e079f..4f55b9e23 100644 --- a/installation/index.html +++ b/installation/index.html @@ -159,153 +159,187 @@
    +
    + ℹ️ Drupal 11+ Documentation
    + This page covers installation and administration of PECE on Drupal 11 (PECE 2.x). + If you are running an older PECE instance on Drupal 7, the + legacy installation guide (Drupal 7) has been archived for reference. +
    +

    PECE System Administration

    How do I install PECE?

    PECE is a Free Software-based Drupal distribution, therefore the -standard installation procedure for Drupal 7 applies to PECE with a few -extra dependencies.

    -

    The following instructions have been tested on a Debian 8 (jessie) -server, but they are not OS-dependent. PECE should run on any system -supported by Drupal 7. PECE has been tested in virtual machines with -256M allocated for PHP, being 128M the recommended minimum for Drupal 7 -distributions. Your configuration, of course, may vary considerably -depending on the usage you are making of the platform. Refer to our data -management guidelines under the “sustainability” section to learn about -the recommended minimum specs for your servers.

    +standard installation procedure for Drupal applies to PECE with a few +extra dependencies. PECE now runs on Drupal 11 and requires a modern server stack.

    +

    The following instructions have been tested on Debian 11 (Bullseye) and Debian 12 (Bookworm) +servers, but they are not OS-dependent. PECE should run on any system +supported by Drupal 11. A minimum of 256 MB of PHP memory is recommended; +your configuration may vary considerably depending on the usage and content +volume of your platform. Refer to our data management guidelines under the +"sustainability" section to learn about the recommended minimum specs for +your servers.

    +

    System Requirements

    +

    PECE 2.x (Drupal 11) requires the following minimum versions:

    + +

    For the full, up-to-date list of Drupal 11 system requirements, see the +official Drupal system requirements page.

    Downloading the Distro

    -

    Our distribution is currently being developed on Github. You can obtain -the most updated version following the link “Releases” on the project’s -git repository:

    +

    Our distribution is developed on GitHub. You can obtain the most recent +version by visiting the project's repository:

    -

    https://github.com/PECE-project/pece-distro

    +

    https://github.com/PECE-project/drupal-pece

    -

    Alternatively, you can obtain the source code and build the distro -yourself if you intend to help our team by fixing bugs and extending the -platform for your research purposes:

    +

    To install PECE using Composer (recommended), run:

    -

    git clone -https://github.com/PECE-project/drupal-pece.git

    +

    composer create-project pece/pece-distro YOUR_PROJECT_NAME

    -

    If you are a developer who wants to contribute to PECE, you will need to -follow special instructions to install and configure the tools for -building the distro. Consult the sub-section Setting up the Development Environment -below for more information.

    +

    Alternatively, you can clone the repository directly if you intend to +contribute bug fixes or extend the platform for your research purposes:

    +
    +

    git clone https://github.com/PECE-project/drupal-pece.git

    +
    +

    If you are a developer who wants to contribute to PECE, consult the +Contributing Guide +in the repository for instructions on setting up a local development environment.

    Dependencies

    -

    PECE has extra dependencies in addition to the ones you will need for -Drupal 7 core:

    +

    PECE manages its PHP dependencies via Composer. After cloning or creating +the project, install all dependencies by running:

    +
    +

    composer install

    +
    +

    Key server-side requirements beyond Drupal 11 core include:

    +

    Note: php-mcrypt is no longer required. It was removed from PHP 7.2+ +and is not needed by Drupal 11 or PECE 2.x.

    Quick Install

    -

    If you have the server backend already set-up, you can quickly install -PECE following these steps:

    -

    Clone the ‘’pece-distro’’ repository:

    +

    If your server stack (PHP 8.1+, a supported database, and a web server) +is already set up, you can install PECE with the following steps:

    +

    1. Create the project with Composer:

    -

    git clone -https://github.com/PECE-project/pece-distro.git

    +

    composer create-project pece/pece-distro YOUR_PROJECT_NAME
    +cd YOUR_PROJECT_NAME

    -

    Create an empty database:

    +

    2. Create an empty database:

    -

    mysql -u $YOUR_USER -p -e "CREATE DATABASE $YOUR_DB_NAME -CHARACTER SET utf8 COLLATE utf8_general_ci;"

    +

    mysql -u $YOUR_USER -p -e "CREATE DATABASE $YOUR_DB_NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"

    -

    Proceed to the URL in which your Drupal will reside, i.e. -https://worldpece.org. From there, you can install PECE like any other -Drupal site. Follow the Drupal.org official documentation if you need further help. In the -section Troubleshooting below we describe common issues users have when trying to install PECE without the proper backend dependencies, configurations, and permissions.

    -

    One important note: please, make sure to set the permissions on the -filesystem properly. We cannot emphasize this enough. The official Drupal documentation explains how -to do so, if you have questions. (In our experience, we have needed to -set the file permissions at sites/default/files/artifacts to 770 and -sites/default/files/private to 770.)

    +

    3. Run the Drupal installer by navigating to the URL where your site will +reside (e.g. https://worldpece.org) and following the on-screen steps, +or use Drush for a non-interactive install:

    +
    +

    drush site:install --db-url=mysql://USER:PASS@localhost/DB_NAME --account-name=admin --account-pass=CHANGEME

    +
    +

    Follow the official Drupal installation documentation +if you need further help. The Troubleshooting +section below describes common issues encountered when the backend +dependencies, configuration, or filesystem permissions are not correct.

    +

    One important note: please make sure to set the permissions on the +filesystem properly. The official Drupal security documentation explains +how to do so. In our experience, the following directories need to be +writable by the web server:

    +

    I want to use HTTPS with PECE. How can I do that?

    -

    A very simple tutorial for setting up HTTPS with Certbot on Ubuntu can be found here.

    - -

    Your webserver is not properly configured to support what is called -“Clean URLs” on Drupal. Make sure you have your httpd “rewrite” rules -properly set-up. This configuration can be done in the vhost file of -your nginx configuration, following the Perusio guide or using the default.htaccess file that is provided by default by Drupal if you are running Apache.

    -

    I get an error about a YAML parser being missing. How can I fix that?

    -

    Newer versions of PHP require you to install pecl-yaml for YAML parsing. You can find it here. -We recommend using the latest version, which is 2.0.4 at the time of writing. Follow the pecl-yaml instructions to build and install it. -Then edit your php.ini file. For example, if you are using PHP 7.2, the file will be found at: -/etc/php/7.2/apache2/php.ini

    -

    Add the following line to php.ini: -extension=yaml.so

    +

    A simple tutorial for setting up HTTPS with Certbot (Let's Encrypt) on Ubuntu or Debian can be found +on the official Certbot website. +Select your web server and operating system to get tailored instructions.

    + +

    Your web server is not properly configured to support URL routing for Drupal. +Make sure the rewrite module is enabled and your virtual host is configured +to allow .htaccess overrides (AllowOverride All). For Apache, Drupal ships +with a .htaccess file in the web/ directory that handles URL rewriting +automatically. For Nginx, follow the +Drupal.org Nginx configuration guide.

    When should the admin login credentials be used?

    Distribute admin login credentials to as few users as possible. Admin login credentials should only be used to configure settings and to approve new users. The admin credentials should not be used to add content or comment on content.

    How do I update the site information?

    -

    Go to “Administration » Configuration » System » Site information” and -fill out the information about your site name, the basic admin password, +

    Go to Administration → Configuration → System → Basic site settings and +fill out the information about your site name, email address, contact, timezone and other relevant info.

    How do I upload the terms of service?

    -

    Go to “Administration » Configuration » People » Legal” and click “Add -T&C”, then fill-out the boxes with your custom text to be displayed to -every user who requests an account on the system.

    +

    Go to Administration → Configuration → People → Legal and click "Add +T&C", then fill out the boxes with your custom text to be displayed to +every user who requests an account on the system.

    How do I set up back-ups?

    As explained in our data management guidelines, PECE is configured to automatically generate backups. You should, however, revise the settings -and set-up a SFTP connection to transfer your backup to another server -and ensure that you have extra security when storing your encrypted -backups. First, revise the settings we provided, changing whatever you -think is needed (say, the most convenient time, when the site is not -being used, to generate the backup). Go to “Configuration » System » -Backup and Migrate” to perform this first step. Then, click on -“Destinations” and “Add Destination” to set-up the SFTP connection with -the credentials of your backup server. Please note that you have to use -the port 22 (not 21) and password authentication, since ssh-key -authentication is unfortunately not supported yet.

    +and set up an SFTP connection to transfer your backup to another server +to ensure extra security when storing your encrypted backups. Go to +Configuration → System → Backup and Migrate to review backup settings. +Then click Destinations → Add Destination to configure the SFTP +connection with the credentials of your backup server. Use port 22 and +password authentication.

    How do I configure SMTP so that emails can be sent from the platform?

    -

    PECE uses Drupal notification for key events on the system. It has to be +

    PECE uses Drupal notifications for key events on the system. It has to be configured using a regular email address, provided you have all the mail -server information. You just need your SMTP server info and credentials -to get this done. Go to “Administration » Configuration » System » SMTP -Authentication Support” and provide your SMTP server information, +server information. Go to Administration → Configuration → System → SMTP +Authentication Support and provide your SMTP server information, including username and password.

    How do I increase the file upload limit?

    -

    While logged-in as an administrator, navigate to Administration >> -Configuration >> Media >> File Settings. Under the Maximum -Upload Size field, enter a new value (we use 2GB). Click Save -Configuration. You may also need to increase the upload limit on the -server.

    +

    While logged in as an administrator, navigate to Administration → +Configuration → Media → File system. Under the Maximum Upload Size +field, enter a new value (we use 2 GB). Click Save Configuration. You +may also need to raise upload_max_filesize and post_max_size in your +php.ini file and restart your web server.

    How do I update my instance when a new version of the PECE distro is released?

    -

    Always back-up your files and database before updating the platform.

    -

    Put the site in maintenance mode. Under sites/default/, there is a file -called settings.php. Search for $update_free_access = FALSE; and -change FALSE to TRUE.

    -

    Then, go to YourSite/update.php and follow the steps. In theory major -updates are not handled differently, but sometimes issues have occurred.

    -

    Be sure to turn off maintenance mode when you are done.

    +

    Always back up your files and database before updating the platform.

    +

    Put the site in maintenance mode via Administration → Configuration → +Development → Maintenance mode, or with Drush:

    +
    +

    drush state:set system.maintenance_mode 1 --input-format=integer

    +
    +

    Pull the latest code and update dependencies with Composer:

    +
    +

    composer update
    +drush updatedb
    +drush cache:rebuild

    +
    +

    Disable maintenance mode when done:

    +
    +

    drush state:set system.maintenance_mode 0 --input-format=integer

    +
    +

    Refer to the official Drupal upgrade documentation +for more details on major version upgrades.

    Other Post-Installation Troubleshooting

    From 3bc00e246c40533674911c15554041480c513a43 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 23:15:49 +0000 Subject: [PATCH 3/4] docs(installation): add security note for placeholder admin password in drush command Agent-Logs-Url: https://github.com/PECE-project/drupal-pece/sessions/2226b543-d922-4707-bd1d-17140e67cd22 Co-authored-by: revagomes <201890+revagomes@users.noreply.github.com> --- installation/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/installation/index.html b/installation/index.html index 4f55b9e23..babfb5a84 100644 --- a/installation/index.html +++ b/installation/index.html @@ -251,6 +251,7 @@

    Quick Install

    drush site:install --db-url=mysql://USER:PASS@localhost/DB_NAME --account-name=admin --account-pass=CHANGEME

    +

    Important: Replace CHANGEME with a strong, unique password before running this command. Never use a weak or default password on a publicly accessible site.

    Follow the official Drupal installation documentation if you need further help. The Troubleshooting section below describes common issues encountered when the backend From b1012def0b2b1004e7d35560d94c71856cb664ae Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 15:43:05 +0000 Subject: [PATCH 4/4] docs(installation): fix asset paths in legacy page and address review feedback Agent-Logs-Url: https://github.com/PECE-project/drupal-pece/sessions/767c2977-eb7a-4fa4-8e1d-1fff7c1e9441 Co-authored-by: revagomes <201890+revagomes@users.noreply.github.com> --- installation-legacy/index.html | 34 +++++++++++++++++----------------- installation/index.html | 6 ++++-- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/installation-legacy/index.html b/installation-legacy/index.html index f2a70f839..5c0e325ee 100644 --- a/installation-legacy/index.html +++ b/installation-legacy/index.html @@ -8,7 +8,7 @@ - + System Admin's Guide (Drupal 7 Legacy) - PECE Documentation @@ -19,16 +19,16 @@ - - - + + + - +