• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

domain.sh exists but bash returns not found

A

anjanesh

Guest
My client is with godaddy - dedicated using Plesk 7.5 on Linux.

Using Putty I went to /usr/local/psa/bin

lt gave
Code:
[root@mywebserver bin]# ls
....
apache_cleanup.sh             domain.sh           psarestore
.....
But when I entered
domain.sh
Code:
[root@mywebserver bin]# domain.sh
-bash: domain.sh: command not found
[root@mywebserver bin]#

BTW, when browsing using WinSCP 3.8 if I right-click domain.sh > properties, it shows
Links to: /usr/local/psa/admin/plib/api-cli/domain.php

Any idea how to get domain.sh running ?

Thanks
 
Does domain.sh have the right properties for an executable?

The error says the "command is not found"

Until the permissions are correct, try "sh domain.sh" without the quotes.
 
Ok. I got it working
./domain.sh
Forgot to add the ./ in front.

BTW, where do I place a php file containing the exec("./domain.sh....") code on a dedicated server having root access ?
And how do I run it ?
 
Back
Top