The problem was not having the location of node and npm in $PATH. printf "%s\n" $PATH shows this.
find / -iname 'node*' finds all locations of the file node. The one I want is /opt/plesk/node/26/bin
This link provided the way to update $PATH so I can run node and npm from any folder on...
Thanks for responding to my problem. I've followed the instructions in the link but the final command nodenv local 21 gives the error nodenv: version `21' not installed .
Plesk /installer/select_components shows Nodejs support with a green tick but I can't find any details of which versions...
Node.js manager gives the path to the node and npm executable files - /opt/plesk/node/24/bin/node.
But where do I go to run these files - for example to see the version numbers with node - v and npm -v. and to install applications e.g. npm install [<package-name>]
I sense I might be...
Brilliant Mikhail. Thanks. As you say, running ln -s /opt/plesk/php/8.4/bin/php /usr/bin/php solves the problem. So the command below rebuilds the drupal cache...
[root@716881 d10314a]# ./vendor/bin/drush cr
[success] Cache rebuild complete.
Thank you again for sorting this problem.
.
I have successfully installed drush and re-run the install to check all is still good,,,
[root@716881 d10314a]# /opt/plesk/php/8.4/bin/php /usr/lib64/plesk-9.0/composer.phar require drush/dru
sh
Do not run Composer as root/super user! See How do I install untrusted packages safely? Is it safe...
Thank you.
What I want to do is redirect http://example.com/d100x to http://example.com/d100x/web - i.e simply add a sub-directory to the url.
The way to do this in the article seems to be the last option - Make an existing domain a domain forwarder while keeping the website content (Linux...
I want to redirect an url like http://example.com to http://example.com/web. I know this is possible by editing the .htacess but is there a UI way of doing this in Plesk? I've looked hard but can't find what I want. If I've missed something obvious, apologies!
Here is the response from the support team at the hosting company, detailing what they did.
1. Inside Plesk, navigate to > Tools & Settings > Database Servers > Settings > Local MariaDB/MySQL Settings and make sure "Allow local MariaDB/MySQL external..." is checked
2. SSH into the server and...
The hosting company responded as follows "I've made some changes and made sure the port is allowed in the server's firewall too in order to accept external connections." After this ODBC connectivity works!
Interestingly I found this article Resolved - 3306 port is not accessible - how to fix...
Thanks for clarifying the Web Application Firewall setting. I'll raise this issue with the hosting company and post back when I know more. Thanks again.