ERROR! in FileGallery's index.php: sudo script ChownChmod.sh not found in /usr/bin And has no output! 
    exec(ChownChmod.sh ls -l -A .), exit code=127, 0 output lines
    Possible cause are:
    • missing or incorrect
safe_mode_exec_dir setup in php.ini
    • incorrect /etc/sudoers setup — edit with visudo only and restart the webserver afterwards:
     - webserver user apache isn't granted; use the apache ALL = NOPASSWD: ALL directive
     - sudo is falsely set up to requires a tty user to run; disable this by commenting out the directive #Defaults requiretty