Unable to open the configuration file

  • I have an error like this:
    Warning: The Exception Writer `iMSCP_Exception_Writer_Browser` was unable to write the following message: `Unable to open the configuration file `/etc/imscp/imscp.conf` - at line: 194 in file: /var/www/imscp/gui/library/iMSCP/Config/Handler/File.php` Reason: Unable to find the message.tpl template file - at line: 550 in file: /var/www/imscp/gui/library/iMSCP/pTemplate.php in /var/www/imscp/gui/library/iMSCP/Exception/Handler.php on line 320


    somebody know how it fix?
    Help please

  • 1,1,13 i-MSCP


    uname -a
    Linux do-m 3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:46:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

  • @sithzahar


    Please try to run the following script


    Shell-Script
    1. # /var/www/imscp/engine/setup/set-engine-permissions.pl

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

  • Run
    no errors
    But still
    Warning: The Exception Writer `iMSCP_Exception_Writer_Browser` was unable to write the following message: `Unable to open the configuration file `/etc/imscp/imscp.conf` - at line: 194 in file: /var/www/imscp/gui/library/iMSCP/Config/Handler/File.php` Reason: Unable to find the message.tpl template file - at line: 550 in file: /var/www/imscp/gui/library/iMSCP/pTemplate.php in /var/www/imscp/gui/library/iMSCP/Exception/Handler.php on line 320



    Before i have an error with include_path but I change php.ini

  • @sithzahar


    Can you give me a root access? Then I'll fix ;)

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

  • Re


    @sithzahar


    It's solved. I've run the imscp-setup script and after, Apache was unable to start. Thus, I've checked and I've found a duplicate entry:


    Code
    1. # apache2ctl -t
    2. Syntax error on line 22 of /etc/apache2/sites-enabled/do-m.kneu.kiev.ua.conf:
    3. FastCgiExternalServer: redefinition of previously defined class "/var/lib/apache2/fastcgi/php5-fcgi-do-m.kneu.kiev.ua"
    4. Action '-t' failed.
    5. The Apache error log may have more information.


    This was due to the fact that in /etc/apache2/sites-enabled, you created a file 00_.do-m.kneu.kiev.ua.conf which must not be here... I've removed this file and all is ok now. Please pay attention at what you are doing...


    Note: During setup, some packages were automatically removed (munin and some others). You'll have to reinstall them manually ;)

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

  • Re


    No. You can install it (as long you process correctly) ;) Please open another thread and ask for help. The subject of this thread was about "Unable to read imscp.conf after upgrade".


    Thank you.

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