1. Home
  2. Docs
  3. User Guide
  4. CMS
  5. How to setup Drupal on CWP

How to setup Drupal on CWP

Drupal is content management software. It’s used to make many of the websites and applications you use every day. Drupal has great standard features, like easy content authoring, reliable performance, and excellent security. But what sets it apart is its flexibility; modularity is one of its core principles. Its tools help you build the versatile, structured content that dynamic web experiences need.

In this guide, we shall see how to setup drupal on CWP.As the time of writing this guide, the current version of drupal was 8.7.0

Step 1. system Requirements

  • Database server – MySQL 5.5.3/MariaDB 5.5.20/Percona Server 5.5.8 or higher with InnoDB as the primary storage engine, and requires the PDO database extension
  • Web Server – Apache, Nginx
  • PHP requirements – PHP 7.2 OR higher with the following extensions :
    [‘date’, ‘dom’, ‘filter’, ‘gd’, ‘hash’, ‘json’, ‘pcre’, ‘pdo’, ‘session’, ‘SimpleXML’, ‘SPL’, ‘tokenizer’, ‘xml’, ‘OPcache’]

To ensure the above requirements are satisfied, the following needs to be done.

To ensure the above requirements are satisfied, the following needs to be done.
install PHP 7.2 and the required extensions:

  • For PHP-FPM:
  • CWP.Admin left Menu -> PHP settings -> PHP-FPM Selector(NEW)(PHP 7.2) -> start compiler(build and install)
    Note: To Ensure all the required extensions are check,select the options list on a particular PHP version and check those that are not checked.click save custom configuration and start compiler(build and install)

  • For PHP-CGI:
  • CWP.Admin -> PHP settings –> PHP version switcher –> select PHP version and ensure all the required extensions are checked -> Save and Build

    Install supported webservers

    CWP.Admin left Menu -> Webserver settings -> Webserver Domain Conf -> Select username -> select the domain and create configuration -> Select appropriate webserver option and the required PHP version -> and save and rebuild Configuration.

    Step 2: Download drupal

  • Download the latest version of drupal from www.drupal.org/download
  • Upload the file via File Manager or FTP
  • To upload via File Manager; CWP.User -> File Management -> File Manager -> Click on public_html -> upload. After decompress the compressed file.This creates a folder – drupal-xxx(where xxx is your specific version) in the public_html directory.

    Click in the drupal-xxx and click All and then click move,its will ask for a destination, then click on public_html on the left.This will move all the files into your public_html directory.

    Step 3: Create database

    CWP.user left menu –> SQL services –> MySQL Manager –> Create database and database user.
    Enter database name and the password that will be used for the user.
    After creation, click on List Databases and users , you will see the database name and database user(created automatically).

    Step 4: Install the Drupal using the Web Setup Wizard

    Start the drupal web installer by opening your favorite browser and browsing to the site’s domain name. For example, http://www.yoursitename.com and you will see the installation screen

    Was this article helpful to you? Yes No 1