zintis8789 Posted July 19, 2011 Report Share Posted July 19, 2011 (edited) Labvakar, man ir problēma ar php shell_exec() funkciju. Es lietoju ubuntu 10.10. Izmantoju šādu skriptu: $prog = 'sh komp.sh 2>&1'; $out = shell_exec($prog) or die("Error!"); Un php man izvada visu laiku Error! Edited July 19, 2011 by zintis8789 Link to comment Share on other sites More sharing options...
rpr Posted July 20, 2011 Report Share Posted July 20, 2011 varbūt tam lietotājam nav tiesību izpildīt šādu skritu? paskaties tiesības, itsevišķi ja ar web lietotāju laid. Link to comment Share on other sites More sharing options...
zintis8789 Posted July 20, 2011 Author Report Share Posted July 20, 2011 (edited) Kurā vietā es varu izlabot tiesības? Precīzāk man izmet šādu kļūdu apache error log failā: php warning shell_exec cannot execute using backquotes in safe mode Edited July 20, 2011 by zintis8789 Link to comment Share on other sites More sharing options...
briedis Posted July 20, 2011 Report Share Posted July 20, 2011 (edited) http://php.net/manual/en/features.safe-mode.php Iekš php.ini izslēdz to safe mode sūdu :) Edited July 20, 2011 by briedis Link to comment Share on other sites More sharing options...
zintis8789 Posted July 20, 2011 Author Report Share Posted July 20, 2011 Visos php.ini ir izmainīts uz OFF, bet tāpat rāda to kļūdu. Link to comment Share on other sites More sharing options...
briedis Posted July 20, 2011 Report Share Posted July 20, 2011 Pārstartēji apachi? Link to comment Share on other sites More sharing options...
zintis8789 Posted July 20, 2011 Author Report Share Posted July 20, 2011 Viss tagad stādā. Vajadzēja izmainīt sudoers failu! Link to comment Share on other sites More sharing options...
Recommended Posts