• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk command script php

jerominL

New Pleskian
I have a script php that creates a subdomain with plesk, when I execute this one with the term, it works well, my subdomain is created and no error appears. But my problem is when I submit my Html form I have a first script that call my "plesk script" by

Code:
system("php plesk.php");

but the script does nothing, my subdomain is not creating. My safe_mode php is turned off, so I ask if someone knows something about it, please help me.

thank you guys !
 
This can be a zilion things
Here are some things to test/check.

When does it work? If you execute is via the command line as root?
And as what user it is executed when you run it from the form? As the website user, or even as apache (if php is a module)? Are you rights ok? Does that user have the proper rights to execute whatever you want to execute to create the subdomain? (You dont say if its API RPC or Command Line utils)

Is it the same php that is started via the commandline and via the website? If the overal php is mod_php 5.3.x and the website has fast-cgi then it has a different php.ini
Is php in your path?

Is "system" enabled in php.ini?

what is the error (return string of the system command?

http://www.php.net/manual/en/function.system.php

regards
Jan
 
My script works when i'm running it as root when I type in my term : php plesk.php
And the php that i'm using it is /usr/bin/php5
But when my script is launched by an other script, plesk's commands don't want to work, but only plesk command. All of my "echo" lines work but not my plesks command.
How do I execute the good php that will recognize the commands ?
How do I know which one is executed by the website ?
 
Last edited:
Back
Top