• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

subDomain and PHP

Laurent_c

New Pleskian
Good morning

I try to done dynamic subdomain and I can't create some

With php I write this :
<?php
exec('/usr/local/psa/bin/subdomain.sh -c subdomain_name -d domain.com 2>&1',$output);
print_r($output);
?>

I got a denied permission

If you got an basic php script to do it, it will help me very much,

Thank you
 
Me Too!

I would also like to know the answer to this question. If the posted code is not the right/best way, what is?
 
Which user tries to execute the code?
I think only root may do what you want to do here ...
 
Back
Top