Installing and Upgrading Web2project

Installing Web2project is the same as installing any other PHP project and has minimal requirements. The definitive version of this Installation Guide is available online but this section should be the same.

Requirements:

These requirements have been tested and validated. Web2project may work with other versions or systems but they are not formally supported. These requirements apply regardless of whether you’re installing, upgrading, or converting.

More detail on each of these is in Server and Database Configuration.

Install Instructions

  1. Download the latest release from GitHub and uncompress it.
  2. Upload the resulting folder to a web-accessible directory on your web server. Note the resulting URL as this will be your new web2project installation.
  3. Create a MySQL database and a user with full access to the database. Save these database name and credentials as you will need them later.
  4. From the command line within the web2project folder, run composer install --no-dev or the equivalent for your system.
  5. Point your browser to the URL noted above.
  6. The Installer should detect that you are creating a fresh installation.
  7. Confirm that your web server meets the minimum requirements. If it does not, resolve those issues. If it does, continue.
  8. Use the database name and credentials from above to configure the database connection.
  9. Select “Install Db & Write Cfg.” The system should create all database tables and configure the base system.
  10. If the Installer could not create the config.php file, copy and paste it to create your own.
  11. Log into your system with the provided username and password.
  12. Change your username and password.
  13. Block direct web access to the files folder, as described in Server and Database Configuration.
  14. Proceed to Getting Started or the Frequently Asked Questions as you need.
  15. Add a cron job to run system maintenance tasks such as sending email notices and task reminders. The easiest approach is to request the URL below via a cron job:

wget -O - -q http://{web2project-install}/queuescanner.php

Warning by Gregor Cresnar from the Noun Project Uploaded files are stored in the files folder inside the web root, protected only by an Apache 2.2-style .htaccess file. On Apache 2.4 or nginx, add the rule from Server and Database Configuration or anyone can download them without logging in. See Security Notes.

Warning by Gregor Cresnar from the Noun Project If you run into any problems, we recommend that you resolve the issue and then delete config.php and drop the database tables to try again.

Upgrade Instructions

  1. Back up your database and files folder. You can never have too many backups.
  2. Download the latest release from GitHub and uncompress it.
  3. Upload the resulting folder to your web server.
  4. Copy your files folder from your previous folder to the new one.
  5. Copy your includes/config.php file from your previous folder to the new one.
  6. From the command line within the new folder, run composer install --no-dev.
  7. Rename the old folder.
  8. Rename the new folder to the old folder’s previous name.
  9. Point your web browser to your Web2project folder.
  10. Log in with an Administrator account.
  11. Select the System Admin module and choose “Apply System Updates”
  12. The Installer will handle applying all updates. It lists any errors it hits; a clean upgrade reports none.
  13. Use your system as normal.

Upgrading to v5.0

v5.0 is a major release. Read this before you upgrade an existing system.

The v5.0 release notes list every change.

Convert from dotProject

  1. Back up your database, the files folder, and includes/config.php. You can never have too many backups.
  2. Download the latest release from GitHub and uncompress it.
  3. Upload the resulting folder to your web server. Note the resulting URL as this will be your new web2project installation.
  4. From the command line within the web2project folder, run composer install --no-dev.
  5. Copy your files folder from your dotProject folder to your Web2project folder.
  6. Copy your includes/config.php file from your dotProject folder to your Web2project folder.
  7. Point your browser to your web2project folder.
  8. The Installer will detect the dotProject configuration and apply database updates, data transformations, and update the config.php. This may take a while depending on how big your database is.
  9. Log into your system with your existing username and password.
  10. Add a cron job to run system maintenance tasks such as sending email notices, etc. The easiest approach is to request the URL below via a cron job:

wget -O - -q http://{web2project-install}/queuescanner.php

Warning by Gregor Cresnar from the Noun Project If you run into any problems, we recommend that you overwrite your new config.php with the dotProject version and restore the dotProject database. Then resolve the issue and try again.