Nein, muss so bleiben!!Achso wozu ich noch ne Frage habe ist die Stelle in der config: define("DOCROOT", "/var/www/vhosts/{DOMAIN}/");
Muss ich da eine Domain angeben? Weil dann könnte ich den SuDo ja nur mit einer Domain nutzen?
root@host:/opt/psa/admin/htdocs/subdomedit# ls -la
total 136
drwxrwxrwx 3 root psaadm 4096 2010-03-19 15:03 .
drwxr-xr-x 22 root root 4096 2010-03-19 15:01 ..
-rwxrwxrwx 1 root psaadm 3896 2010-03-19 15:03 AdminRights.class.php
-rwxrwxrwx 1 root psaadm 0 2010-03-19 15:03 aliases.txt
-rwxrwxrwx 1 root psaadm 1917 2010-03-29 00:59 config.inc.php
-rwxrwxrwx 1 root psaadm 1226 2010-03-19 15:03 conn.php
-rwxrwxrwx 1 root psaadm 13008 2010-03-19 15:03 doit.php
-rwxrwxrwx 1 root psaadm 7814 2010-03-19 15:03 funcs.php
-rwxrwxrwx 1 root psaadm 6551 2010-03-19 15:03 index.php
-rwxrwxrwx 1 root psaadm 2684 2010-03-19 15:03 INSTALL.txt
drwxrwxrwx 2 root psaadm 4096 2010-03-19 15:03 lang
-rwxrwxrwx 1 root psaadm 17977 2010-03-19 15:03 LICENSE.txt
-rwxrwxrwx 1 root psaadm 1473 2010-03-19 15:03 logo.gif
-rwxrwxrwx 1 root psaadm 26079 2010-03-19 15:03 main.php
-rwxrwxrwx 1 root psaadm 43 2010-03-19 15:03 pixel.gif
-rwxrwxrwx 1 root psaadm 216 2010-03-19 15:03 positiv.gif
-rwxrwxrwx 1 root psaadm 701 2010-03-19 15:03 progress.gif
-rwxrwxrwx 1 root psaadm 0 2010-03-19 15:03 rights.txt
-rwxrwxrwx 1 root psaadm 589 2010-03-19 15:03 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 2010-03-19 15:03 wrapper
kmXXX-02://opt/psa/admin/htdocs/subdomedit# chmod 4755 wrapper
kmXXX-02://opt/psa/admin/htdocs/subdomedit# ls -la
total 136
drwxr-xr-x 3 root root 4096 Apr 1 22:57 .
drwxr-xr-x 22 root root 4096 Apr 1 22:55 ..
-rw-r--r-- 1 root psaadm 3896 Oct 12 14:19 AdminRights.class.php
-rw-r--r-- 1 root psaadm 2684 Oct 12 14:19 INSTALL.txt
-rw-r--r-- 1 root psaadm 17977 Oct 12 14:19 LICENSE.txt
-rw-r--r-- 1 root psaadm 0 Oct 12 14:19 aliases.txt
-rw-r--r-- 1 root psaadm 1917 Apr 1 22:09 config.inc.php
-rw-r--r-- 1 root psaadm 1226 Oct 12 14:19 conn.php
-rw-r--r-- 1 root psaadm 13008 Oct 12 14:19 doit.php
-rw-r--r-- 1 root psaadm 7814 Oct 12 14:19 funcs.php
-rw-r--r-- 1 root psaadm 6551 Oct 12 14:19 index.php
drwxr-xr-x 2 root psaadm 4096 Oct 12 14:19 lang
-rw-r--r-- 1 root psaadm 1473 Oct 12 14:19 logo.gif
-rw-r--r-- 1 root psaadm 26079 Oct 12 14:19 main.php
-rw-r--r-- 1 root psaadm 43 Oct 12 14:19 pixel.gif
-rw-r--r-- 1 root psaadm 216 Oct 12 14:19 positiv.gif
-rw-r--r-- 1 root psaadm 701 Oct 12 14:19 progress.gif
-rw-r--r-- 1 root psaadm 0 Oct 12 14:19 rights.txt
-rwxr-xr-x 1 root psaadm 589 Oct 12 14:19 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Oct 12 14:19 wrapper
[...]
error_reporting(1);
define("DB_USR", "admin");
define("DB_PWD", trim(exec ("cat /etc/psa/.psa.shadow")));
define("DB_NAME", "psa");
define("DB_HOST", "localhost");
define("DOCROOT", "/var/www/vhosts/{DOMAIN}/");
define("SUDO_VERSION","1.8");
// define your language file, ex: en; ro; de;
define("LANG", "de");
define("PHP4MOD","mod_php4.c");
// You have to try it out which you have. To make sure, have a look in one of you httpd.include of you domains
// "mod_php4.c" for Server4You
// "sapi_apache2.c" for HostEurope
define("TDB_PATH","cgi-bin/"); //Path to your TDB-Engine if you have!
define("TDB_BIN","tdbengine"); // Name of your TDB-Engine Binary if you have!
define("PHP5_PATH","/usr/bin/php5/"); //Path to your PHP5-Engine if you have!
define("PHP5_BIN","php5"); // Name of your PHP5 Binary if you have!
define("PSA_PATH",trim(exec ("grep PRODUCT_ROOT_D /etc/psa/psa.conf | sed 's/^[\t]*[A-Z_]*[\t]*//'"))."/");
define("PSA_VERSION",substr(trim(exec ("cat ".PSA_PATH."version")),0,1));
define("PSA_ADMIN_USER","PSAptADM");
define("PSA_ADMIN_WIDCARDS","NO");
define("ERROR_DEBUG",0);
?>[B][/B]
-rwxr-xr-x 1 root psaadm 3896 Apr 9 17:44 AdminRights.class.php
-rwxrwxrwx 1 root psaadm 2795 Apr 9 17:44 INSTALL.txt
-rwxrwxrwx 1 root psaadm 17977 Apr 9 17:44 LICENSE.txt
-rwxrwxrwx 1 root psaadm 0 Mar 25 00:13 aliases.txt
-rwxr-xr-x 1 root psaadm 1931 Apr 11 12:47 config.inc.php
-rwxr-xr-x 1 root psaadm 1226 Apr 9 17:44 conn.php
-rwxrwxrwx 1 root psaadm 7494 Apr 11 12:48 debug.txt
-rwxr-xr-x 1 root psaadm 13248 Apr 9 17:44 doit.php
-rwxr-xr-x 1 root psaadm 8037 Apr 9 17:44 funcs.php
-rwxr-xr-x 1 root psaadm 6551 Apr 9 17:44 index.php
drwxr-xr-x 2 root psaadm 4096 Mar 25 00:13 lang
-rwxr-xr-x 1 root psaadm 1473 Apr 9 17:44 logo.gif
-rwxr-xr-x 1 root psaadm 26492 Apr 9 17:44 main.php
-rwxr-xr-x 1 root psaadm 43 Apr 9 17:44 pixel.gif
-rwxr-xr-x 1 root psaadm 216 Apr 9 17:44 positiv.gif
-rwxr-xr-x 1 root psaadm 701 Apr 9 17:44 progress.gif
-rwxrwxrwx 1 root psaadm 190 Apr 9 17:55 rights.txt
-rwxr-xr-x 1 root psaadm 589 Apr 9 17:44 vhost_writer.sh
-rwsr-xr-x 1 root root 7576 Apr 9 17:49 wrapper
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/domain.tld/httpdocs
root@server:/opt/psa/admin/htdocs/subdomedit# gcc wrapper.psa9.c -o wrapper
wrapper.psa9.c:19:20: error: stdlib.h: No such file or directory
wrapper.psa9.c:20:20: error: unistd.h: No such file or directory
wrapper.psa9.c:21:19: error: stdio.h: No such file or directory
wrapper.psa9.c:22:20: error: string.h: No such file or directory
wrapper.psa9.c:23:23: error: sys/types.h: No such file or directory
wrapper.psa9.c:24:17: error: pwd.h: No such file or directory
wrapper.psa9.c:25:17: error: grp.h: No such file or directory
wrapper.psa9.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
wrapper.psa9.c: In function ‘is_root_psaadm’:
wrapper.psa9.c:40: warning: assignment makes pointer from integer without a cast
wrapper.psa9.c:41: error: ‘NULL’ undeclared (first use in this function)
wrapper.psa9.c:41: error: (Each undeclared identifier is reported only once
wrapper.psa9.c:41: error: for each function it appears in.)
wrapper.psa9.c:42: warning: incompatible implicit declaration of built-in function ‘fprintf’
wrapper.psa9.c:42: error: ‘logfile’ undeclared (first use in this function)
wrapper.psa9.c:45: error: dereferencing pointer to incomplete type
wrapper.psa9.c:48: warning: assignment makes pointer from integer without a cast
wrapper.psa9.c:50: warning: incompatible implicit declaration of built-in function ‘fprintf’
wrapper.psa9.c:53: error: dereferencing pointer to incomplete type
wrapper.psa9.c:56: warning: incompatible implicit declaration of built-in function ‘fprintf’
wrapper.psa9.c: In function ‘main’:
wrapper.psa9.c:64: error: ‘FILE’ undeclared (first use in this function)
wrapper.psa9.c:64: error: ‘tmp’ undeclared (first use in this function)
wrapper.psa9.c:67: error: ‘logfile’ undeclared (first use in this function)
wrapper.psa9.c:67: error: ‘stdout’ undeclared (first use in this function)
wrapper.psa9.c:81: warning: incompatible implicit declaration of built-in function ‘strcpy’
wrapper.psa9.c:92: warning: incompatible implicit declaration of built-in function ‘fprintf’
wrapper.psa9.c:93: warning: incompatible implicit declaration of built-in function ‘exit’
wrapper.psa9.c:96: error: ‘NULL’ undeclared (first use in this function)
wrapper.psa9.c:112: warning: incompatible implicit declaration of built-in function ‘fprintf’
wrapper.psa9.c:120: warning: incompatible implicit declaration of built-in function ‘execl’
root@server:/opt/psa/admin/htdocs/subdomedit#
-rw------- 1 root psaadm 3896 Apr 8 14:34 AdminRights.class.php
-rwxrwxrwx 1 root psaadm 2795 Apr 8 14:34 INSTALL.txt
-rwxrwxrwx 1 root psaadm 17977 Apr 8 14:34 LICENSE.txt
-rwxrwxrwx 1 root psaadm 0 Apr 8 14:34 aliases.txt
-rw------- 1 root psaadm 1915 Apr 8 14:34 config.inc.php
-rw------- 1 root psaadm 1226 Apr 8 14:34 conn.php
-rw------- 1 root psaadm 13248 Apr 8 14:34 doit.php
-rw------- 1 root psaadm 8037 Apr 8 14:34 funcs.php
-rw------- 1 root psaadm 6551 Apr 8 14:34 index.php
drwx------ 2 root psaadm 4096 Apr 8 14:34 lang
-rw------- 1 root psaadm 1473 Apr 8 14:34 logo.gif
-rw------- 1 root psaadm 26492 Apr 8 14:34 main.php
-rw------- 1 root psaadm 43 Apr 8 14:34 pixel.gif
-rw------- 1 root psaadm 216 Apr 8 14:34 positiv.gif
-rw------- 1 root psaadm 701 Apr 8 14:34 progress.gif
-rwxrwxrwx 1 root psaadm 0 Apr 8 14:35 rights.txt
-rwxr-xr-x 1 root psaadm 589 Apr 8 14:35 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Apr 8 14:35 wrapper
hallo zusammen,
erstmal vielen dank an haggybaer fuer das plug-in.
jedoch habe ich ein problem; ich habe alles lt der install anweisung eingerichtet und bekomme nach dem klicken des buttons die meldung
...
//edit
hat sich erledigt, ich hatte es versaeumt, die variable " define("DOCROOT", "/var/www/vhosts/{DOMAIN}/"); " anzupassen.
We use essential cookies to make this site work, and optional cookies to enhance your experience.