Hi
I need to create a domain using Plesk API - calling the command line ./domain.sh in PHP.
exec ? If so where ? Which location ? I got root access to a dedication server using Fedora Core Linux.
Thanks
Location of PHP script to run external command
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Do you extract a directory containing that file at some point?
Anyway...
Anyway...
Code: Select all
locate domain.sh #or .....
find /* -name 'domain.sh' -printdomain.sh is in /usr/local/psa/bin
I have a one-line php code
Where do I place this php code and how do I run this ? Its not necessary that I got to enter a url - entering the command in Putty is fine.
In the latter case would the 1st line be something like #!/usr/bin/php ?
I have a one-line php code
Code: Select all
exec('./domain.sh $args');In the latter case would the 1st line be something like #!/usr/bin/php ?
Hello,
There is default plesk document root. Generally it is
Access this php file on the web-browser on plesk port.
I dont remember the entire path but Im sure default is in /home/httpd/vhost.
Inside this you find configuration files of plesk
There is default plesk document root. Generally it is
Code: Select all
/home/httpd/vhosts/default-host/<file.php>I dont remember the entire path but Im sure default is in /home/httpd/vhost.
Inside this you find configuration files of plesk