the error msg is not visible probably of the log level.. but im wonder how exec is working when u add own error pages and in this case is not workin
________ Ram
________ CORVETTE C5-R
________ BARBIEGIRRL
Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
Normally the default error level is to display all except notices or even including notices in some cases. So if this is not changed it should be either logged to the webserver's logfile or to your display.
Are you talking about the same vhost where exec in custom errorpages is working and when you are trying to run your script? As you can influence / override some default settings on a vhost basis.
Another issue could be that exec is working but the code passed throguh is wrong. So do you see any difference when warpping a var_dump() around the exec part as exec returns the last line of the command's result.
i copy the command for insert custom error pages .. to see is the problem from my script and it wont work again,
for more clear view i put error_reporting(E_ALL);
ini_set('display_errors', '1');
and still no errors
var_dump of source and target is string(46) "/usr/local/ispconfig/interface/web/bss/content" string(34) "/var/www/clients/client6/web10/web"
finaly i have to exec cp -r /usr/local/ispconfig/interface/web/bss/content /var/www/clients/client6/web10/web
when i execute rhis one from shell (as a root) ... its workin ...
when i try to execute trought ispconfig ... no error .. no nothin .. even when im using the same script that puts custom error pages. i have no idea whats happened
why copying of error page is working with no problems .. but if u want to copy somethin esle with the same methods its not working ... what am i missing or is there any other limits for disable copy
________ New jersey marijuana dispensary
________ Walter Hayes
________ Brunette Cam
Posts: 31,883
Thanks: 691
Thanked 4,187 Times in 3,204 Posts
You mix up interface and server. You can not use exec in the ispconfig interface as the interface runs under a non priviliged user for security reasons and does not has access to the customer websites. You have to write a server plugin if you want to run commands as root user.
You mix up interface and server. You can not use exec in the ispconfig interface as the interface runs under a non priviliged user for security reasons and does not has access to the customer websites. You have to write a server plugin if you want to run commands as root user.
Posts: 31,883
Thanks: 691
Thanked 4,187 Times in 3,204 Posts
Take a look at the existing server plugins in /usr/local/ispconfig/server/plugins-available to get an idea how they work. Every plugin must have a unique name. These plugins are event based, so depending on the event that you want to execute your code, write a new plugin which subscribes to the events. To activate the plugin, create a symlink in the plugins-enabled directory to the file in the plugins-available directory.
Recent comments
2 days 9 hours ago
2 days 18 hours ago
2 days 21 hours ago
2 days 22 hours ago
2 days 23 hours ago
3 days 1 hour ago
3 days 2 hours ago
3 days 4 hours ago
3 days 19 hours ago
3 days 20 hours ago