Sorry, but i'm a looser in linux
Just ask Haggy, he write the
Plesk Subdomain Manager 0.0.2 Beta
I only write the little php-code... and i have less time for support, because of my work, sorry.
But i have make a test-file to test the "wrapper":
WrapperTest.zip
please follow this steps:
I use the programs WinSCP and Putty...
- WinSCP & Putty: Change into your Plesk Admin htdocs directory (e.g. "cd /opt/psa/admin/htdocs")
- WinSCP: Make a directory
WrapperTest
- Putty: Set chown of the dir
WrapperTest to root
saadm ("chown -R root
saadm WrapperTest")
- WinSCP: Set the permissions of the dir
WrapperTest to
0755
- WinSCP: Put the 3 files from the zip in the dir
- Putty: Set chown of the 3 files to root
saadm ("chown -R root
saadm *")
- Putty: Set chown of the file "wrapper" to root:root ("chown -R root:root wrapper")
- Putty: Set the permissions of the file "wrapper" to 4755
- Putty: Set the permissions of the file "vhost_writer.sh" to 0755
- login to plesk and start the test.php with your browser (e.g. "https://xx.xx.x.xxx:8443/WrapperTest/test.php")
there a 2 numbers... like :
1:
total 9
drwxr-xr-x 2 root psaadm 1024 Sep 7 15:34 .
drwxr-xr-x 24 root root 1024 Sep 7 15:39 ..
-rw-r--r-- 1 root psaadm 147 Sep 7 14:42 test.php
-rwxr-xr-x 1 root psaadm 47 Sep 7 14:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 12:43 wrapper
2:
total 9
drwxr-xr-x 2 root psaadm 1024 Sep 7 15:34 .
drwxr-xr-x 24 root root 1024 Sep 7 15:39 ..
-rw-r--r-- 1 root psaadm 147 Sep 7 14:42 test.php
-rwxr-xr-x 1 root psaadm 47 Sep 7 14:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 12:43 wrapper
If you see listing on
1: your php supports executing shell-command. (save-mode must be off!)
And if you see listing on
2: too, your wrapper file is OK.