D
DarioG
Guest
---------------------------------------------------------------
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
OS Linux 2.6.18-028stab069.6
Panel version 10.2.0
OS Template centos-5-x86_64
Applications Installed pp10,
pp10-postfix,
pp10-vps-optimized
PROBLEM DESCRIPTION
I'm trying to generate subdomain from a php scripts. I have this:
system("sudo /usr/local/psa/bin/subdomain --create sub1 -domain example.com.ar -www-root /example_root -php true 2>&1", $vars);
Curiously, when some error occurs I can get those in $vars (for example if user doesn't have permission or if subdomain already exist)
But if there isn't error, I got my subdomain created but my php script stop working in that line, browser send a 324 error, empty response. No logs in apache and also my app doesn't show any php error, very weird.
I know you can suggest to change my script in several format, I tried a thousand of these, like remove 2>&1 (I used this for get errors), I also tried exec and other php functions
Also, creation from a terminal working well, the problem is from PHP.
Thanks in advance!
STEPS TO REPRODUCE
ACTUAL RESULT
Subdomain created but script stopping
EXPECTED RESULT
Subdomain created and script getting "Success" message from cli
ANY ADDITIONAL INFORMATION
I'm using Drupal in a Hostgator VPS
--------------------------------------------------------------
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
OS Linux 2.6.18-028stab069.6
Panel version 10.2.0
OS Template centos-5-x86_64
Applications Installed pp10,
pp10-postfix,
pp10-vps-optimized
PROBLEM DESCRIPTION
I'm trying to generate subdomain from a php scripts. I have this:
system("sudo /usr/local/psa/bin/subdomain --create sub1 -domain example.com.ar -www-root /example_root -php true 2>&1", $vars);
Curiously, when some error occurs I can get those in $vars (for example if user doesn't have permission or if subdomain already exist)
But if there isn't error, I got my subdomain created but my php script stop working in that line, browser send a 324 error, empty response. No logs in apache and also my app doesn't show any php error, very weird.
I know you can suggest to change my script in several format, I tried a thousand of these, like remove 2>&1 (I used this for get errors), I also tried exec and other php functions
Also, creation from a terminal working well, the problem is from PHP.
Thanks in advance!
STEPS TO REPRODUCE
ACTUAL RESULT
Subdomain created but script stopping
EXPECTED RESULT
Subdomain created and script getting "Success" message from cli
ANY ADDITIONAL INFORMATION
I'm using Drupal in a Hostgator VPS
--------------------------------------------------------------