Article ID: 9342, created on Nov 22, 2010, last review on May 10, 2014

  • Applies to:
  • Plesk 9.x for Linux/Unix


Attempt to open Atmail webmail by fails with errors:

Warning: require_once(Global.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/atmail/index.php on line 17
Fatal error: require_once() [function.require]: Failed opening required 'Global.php' (include_path='/var/www/atmail:.') in /var/www/atmail/index.php on line 17  


There are incorrect values for php_admin_value include_path variable for https in Atmail configuration file /etc/psa-webmail/atmail/atmail_vhost.conf


For fixing this issue you can edit Atmail vhost configuration template (/etc/psa-webmail/atmail/atmail_vhost.conf - this template is used by webmailmng utility for generation of vhost config file for atmail) the following way: replace php_admin_value include_path for https to:

php_admin_value include_path "@WEBMAIL_DOCROOT@:@WEBMAIL_DOCROOT@/libs:@WEBMAIL_DOCROOT@/libs/Atmail:@WEBMAIL_DOCROOT@/libs/PEAR:@WEBMAIL_DOCROOT@/libs/File:."

i.e. the same value as for http. For example:

       <VirtualHost @WEBMAIL_IP_ADDRESS_SSL@>
        ServerName atmail.webmail
        ServerAlias atmail.webmail.*
        ServerAdmin @SERVER_ADMIN@
            php_admin_value open_basedir "@WEBMAIL_DOCROOT@:/var/log/atmail:/etc/psa:/tmp:/var/tmp"
            php_admin_value include_path "@WEBMAIL_DOCROOT@:."     <- THIS LINE SHOULD BE REPLACED.
            php_admin_value upload_max_filesize 16M
            php_admin_value post_max_size 16M

         <IfModule mod_php5.c>
            php_admin_flag engine on
            php_admin_flag safe_mode off
            php_admin_flag magic_quotes_gpc off
            php_admin_flag register_globals off

            php_admin_value open_basedir "@WEBMAIL_DOCROOT@:/var/log/atmail:/etc/psa:/tmp:/var/tmp"
            php_admin_value include_path "@WEBMAIL_DOCROOT@:."     <- THIS LINE SHOULD BE REPLACED.
            php_admin_value upload_max_filesize 16M

After that reconfigure Atmail though Plesk webmail management utility:

# /usr/local/psa/admin/sbin/webmailmng --remove --name=atmail
# /usr/local/psa/admin/sbin/webmailmng --install --name=atmail

6ef0db7f1685482449634a455d77d3f4 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF