- Server operating system version
- Centos 7
- Plesk version and microupdate number
- Plesk Obsidian v18.0.49_build1800221221.11 os_CentOS 7
I want to be able to run commands like:
composer create-project drupal/recommended-project:9.3.12 my_site_name_dir (for a new instance of Drupal 9)
composer require drupal/module_name (to install a Drupal module)
All looks good when I open the Plesk PHP Composer tab. I see Package Dependencies including Symphony, which D9 uses. Opening composer.json shows D9 core components. But when I open PuTTY and navigate to the folder to install Drupal, I get a PHP version error saying 5.4.16 is being used. But Plesk shows the PHP version for the domain as 7.4.33. The attached file shows some screenshots.
I haven't made any changes to the Environment Variables or the composer.json. And I assume that I have to use command line rather than the Plesk UI.
I sense I'm missing something simple, hopefully someone can point out what. I've never used composer before. Thanks.
composer create-project drupal/recommended-project:9.3.12 my_site_name_dir (for a new instance of Drupal 9)
composer require drupal/module_name (to install a Drupal module)
All looks good when I open the Plesk PHP Composer tab. I see Package Dependencies including Symphony, which D9 uses. Opening composer.json shows D9 core components. But when I open PuTTY and navigate to the folder to install Drupal, I get a PHP version error saying 5.4.16 is being used. But Plesk shows the PHP version for the domain as 7.4.33. The attached file shows some screenshots.
I haven't made any changes to the Environment Variables or the composer.json. And I assume that I have to use command line rather than the Plesk UI.
I sense I'm missing something simple, hopefully someone can point out what. I've never used composer before. Thanks.