Permissions perl script error

  • Hello,


    When I try to run

    • /var/www/imscp/engine/setup/set-engine-permissions.pl
    • and
    • /var/www/imscp/engine/setup/set-gui-permissions.pl

    I get this error:


    Debian 7
    i-MSCP 1.2.2


    Any ideas how to fix that?
    Thank you very much!

  • Hello ;


    Please, try to update using: https://github.com/i-MSCP/imscp/archive/1.2.x.zip


    With latest 1.2.x branch, I've not such problem ;)


    /var/www/imscp/engine/setup/set-engine-permissions.pl -v output


    Code
    1. root@precise:/# /var/www/imscp/engine/setup/set-engine-permissions.pl -viMSCP::Bootstrapper::boot: Booting backend...iMSCP::Config::_init: Tying /etc/imscp/imscp.confiMSCP::Config::_loadConfig: Loading /etc/imscp/imscp.confiMSCP::Config::_parseConfig: Parsing /etc/imscp/imscp.confiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/ServersiMSCP::Config::_init: Tying /etc/imscp/postfix/postfix.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/postfix/postfix.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/postfix/postfix.dataiMSCP::Config::_init: Tying /etc/imscp/dovecot/dovecot.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/dovecot/dovecot.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/dovecot/dovecot.dataiMSCP::Config::_init: Tying /etc/imscp/bind/bind.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/bind/bind.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/bind/bind.dataiMSCP::Config::_init: Tying /etc/imscp/proftpd/proftpd.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/proftpd/proftpd.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/proftpd/proftpd.dataiMSCP::Config::_init: Tying /etc/imscp/apache/apache.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/apache/apache.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/apache/apache.dataiMSCP::EventManager::register: Registering listener on the 'afterHttpdBuildConfFile' event from Servers::httpd::apache_itk::_initiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/PackageiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Package/FileManageriMSCP::EventManager::register: Registering listener on the 'afterFrontendSetGuiPermissions' event from Package::FileManager::_initiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Package/WebstatsiMSCP::Config::_init: Tying /etc/imscp/nginx/nginx.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/nginx/nginx.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/nginx/nginx.dataiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Package/AntiRootkitsiMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Package/WebmailiMSCP::EventManager::register: Registering listener on the 'afterFrontendSetGuiPermissions' event from Package::Webmail::_initiMSCP::Config::_init: Tying /etc/imscp/pma/phpmyadmin.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/pma/phpmyadmin.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/pma/phpmyadmin.dataiMSCP::EventManager::register: Registering listener on the 'afterFrontendSetGuiPermissions' event from Package::PhpMyAdmin::_initmain: Setting base ( backend ) permissionsiMSCP::Execute::execute: Executing command: /usr/bin/find /etc/imscp -type d -print0 | xargs -r -0 chmod 0750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /etc/imscp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:imscp /etc/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0755 /var/www/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/www/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod -R 0750 /var/www/imscp/engineiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:imscp /var/www/imscp/engineiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0755 /var/www/virtualiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/www/virtualiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0750 /var/log/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:imscp /var/log/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0750 /var/cache/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/cache/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0750 /var/local/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/local/imscpiMSCP::Execute::getExitCode: External command exited with value 0main: Setting mta ( backend ) permissionsiMSCP::Config::_init: Tying /etc/imscp/postfix/postfix.old.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/postfix/postfix.old.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/postfix/postfix.old.dataiMSCP::Execute::execute: Executing command: /usr/bin/find /etc/postfix/imscp -type d -print0 | xargs -r -0 chmod 0755iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /etc/postfix/imscp -type f -print0 | xargs -r -0 chmod 0644iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:root /etc/postfix/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /etc/postfix/sasl -type d -print0 | xargs -r -0 chmod 0755iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /etc/postfix/sasl -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:root /etc/postfix/sasliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/www/imscp/engine/messenger -type d -print0 | xargs -r -0 chmod 0750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/www/imscp/engine/messenger -type f -print0 | xargs -r -0 chmod 0750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:imscp /var/www/imscp/engine/messengeriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/log/imscp/imscp-arpl-msgr -type d -print0 | xargs -r -0 chmod 0750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/log/imscp/imscp-arpl-msgr -type f -print0 | xargs -r -0 chmod 0600iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R vmail:imscp /var/log/imscp/imscp-arpl-msgriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/mail/virtual -type d -print0 | xargs -r -0 chmod 0750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/mail/virtual -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R vmail:mail /var/mail/virtualiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0750 /usr/sbin/maillogconvert.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /usr/sbin/maillogconvert.pliMSCP::Execute::getExitCode: External command exited with value 0main: Setting sqld ( backend ) permissionsiMSCP::Execute::execute: Executing command: /bin/chmod 0600 /root/.my.cnfiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /root/.my.cnfiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0644 /etc/mysql/conf.d/imscp.cnfiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /etc/mysql/conf.d/imscp.cnfiMSCP::Execute::getExitCode: External command exited with value 0main: Setting cron ( backend ) permissionsiMSCP::Execute::execute: Executing command: /bin/chmod 0640 /etc/cron.d/imscpiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /etc/cron.d/imscpiMSCP::Execute::getExitCode: External command exited with value 0main: Setting httpd ( backend ) permissionsiMSCP::Config::_init: Tying /etc/imscp/apache/apache.old.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/apache/apache.old.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/apache/apache.old.dataiMSCP::Execute::execute: Executing command: /bin/chmod 0750 /usr/local/sbin/vloggeriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /usr/local/sbin/vloggeriMSCP::Execute::getExitCode: External command exited with value 0main: Setting Webstats ( backend ) permissionsiMSCP::EventManager::register: Registering listener on the 'afterHttpdBuildConf' event from Package::Webstats::Awstats::Awstats::_initPackage::Webstats::setEnginePermissions: Calling action setEnginePermissions on Package::Webstats::Awstats::AwstatsiMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/awstats_buildstaticpages.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/awstats_buildstaticpages.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/awstats_updateall.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/awstats_updateall.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/awstats -type d -print0 | xargs -r -0 chmod 02750iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/awstats -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:www-data /var/cache/awstatsiMSCP::Execute::getExitCode: External command exited with value 0main: Setting FrontEnd ( backend ) permissionsiMSCP::Config::_init: Tying /etc/imscp/nginx/nginx.old.dataiMSCP::Config::_loadConfig: Loading /etc/imscp/nginx/nginx.old.dataiMSCP::Config::_parseConfig: Parsing /etc/imscp/nginx/nginx.old.dataiMSCP::Execute::execute: Executing command: /usr/bin/find /etc/nginx -type d -print0 | xargs -r -0 chmod 0755iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /etc/nginx -type f -print0 | xargs -r -0 chmod 0644iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:root /etc/nginxiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/log/nginx -type d -print0 | xargs -r -0 chmod 0755iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/log/nginx -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R root:root /var/log/nginxiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/www/fcgi/master -type d -print0 | xargs -r -0 chmod 0550iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/www/fcgi/master -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R vu2000:vu2000 /var/www/fcgi/masteriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 550 /var/www/fcgi/master/php5-fcgi-starteriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h vu2000:vu2000 /var/www/fcgi/master/php5-fcgi-starteriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 550 /var/www/fcgi/master/php5-fcgi-starteriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h vu2000:vu2000 /var/www/fcgi/master/php5-fcgi-starteriMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/cache/nginxiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/nginx/client_temp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R www-data:www-data /var/cache/nginx/client_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/cache/nginx/client_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h www-data:root /var/cache/nginx/client_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/nginx/fastcgi_temp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R www-data:www-data /var/cache/nginx/fastcgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/cache/nginx/fastcgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h www-data:root /var/cache/nginx/fastcgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/nginx/proxy_temp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R www-data:www-data /var/cache/nginx/proxy_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/cache/nginx/proxy_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h www-data:root /var/cache/nginx/proxy_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/nginx/scgi_temp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R www-data:www-data /var/cache/nginx/scgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/cache/nginx/scgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h www-data:root /var/cache/nginx/scgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /usr/bin/find /var/cache/nginx/uwsgi_temp -type f -print0 | xargs -r -0 chmod 0640iMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h -R www-data:www-data /var/cache/nginx/uwsgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/cache/nginx/uwsgi_tempiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h www-data:root /var/cache/nginx/uwsgi_tempiMSCP::Execute::getExitCode: External command exited with value 0main: Setting AntiRootkits ( backend ) permissionsPackage::AntiRootkits::setEnginePermissions: Calling action setEnginePermissions on Package::AntiRootkits::Chkrootkit::ChkrootkitiMSCP::Execute::execute: Executing command: /bin/chmod 0640 /var/log/chkrootkit.logiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:imscp /var/log/chkrootkit.logiMSCP::Execute::getExitCode: External command exited with value 0Package::AntiRootkits::setEnginePermissions: Calling action setEnginePermissions on Package::AntiRootkits::Rkhunter::RkhunteriMSCP::Execute::execute: Executing command: /bin/chmod 0700 /var/www/imscp/engine/PerlLib/Package/AntiRootkits/Rkhunter/Cron.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:root /var/www/imscp/engine/PerlLib/Package/AntiRootkits/Rkhunter/Cron.pliMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chmod 0640 /var/log/rkhunter.logiMSCP::Execute::getExitCode: External command exited with value 0iMSCP::Execute::execute: Executing command: /bin/chown -h root:imscp /var/log/rkhunter.logiMSCP::Execute::getExitCode: External command exited with value 0


    /var/www/imscp/engine/setup/set-gui-permissions.pl -v output


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206