Ispconfig error 500

Discussion in 'Installation/Configuration' started by Piotr C., Sep 25, 2024.

Tags:
  1. Piotr C.

    Piotr C. New Member

    Hello to all forum members.
    I have a big problem after updating the Fedora 39 system to 40, ispconfig stopped working, error 500. I would like to mention that fedora 40 no longer supports PHP 7.2. Does anyone have an idea?

    Errors below


    ( ! ) Fatal error: Uncaught InvalidArgumentException: Please make sure the folder '/usr/local/ispconfig/interface/lib/classes/IDS/../../../temp' is writable in /usr/local/ispconfig/interface/lib/classes/IDS/Monitor.php on line 159
    ( ! ) InvalidArgumentException: Please make sure the folder '/usr/local/ispconfig/interface/lib/classes/IDS/../../../temp' is writable in /usr/local/ispconfig/interface/lib/classes/IDS/Monitor.php on line 159
    Call Stack
    #
    Time Memory Function Location
    1 0.0016 483384 {main}( ) .../index.php:0
    2 0.0070 599128 require_once( '/usr/local/ispconfig/interface/lib/app.inc.php ) .../index.php:32
    3 0.0573 630800 ids->start( ) .../app.inc.php:418
    4 0.0698 644520 IDS\Monitor->__construct( $init = class IDS\Init { public $config = ['General' => [...], 'Caching' => [...], 'Logging' => [...]] }, $tags = ??? ) .../ids.inc.php:117
     

    Attached Files:

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig supports any PHP version between 7.0 and 8.3, so the PHP version is not the issue here. Run this command and post the output:

    ls -la /usr/local/ispconfig/interface/temp
     
  3. Piotr C.

    Piotr C. New Member

    command displays:

    [root@ interface]# ls -la /usr/local/ispconfig/interface/temp
    total 1456
    drw-rw----. 2 ispconfig ispconfig 38 08-17 21:58 .
    drwxr-x---. 9 ispconfig ispconfig 89 2023-03-24 ..
    -rwxr-x---. 1 ispconfig ispconfig 0 09-23 16:07 empty.dir
    -rwxr-x---. 1 ispconfig ispconfig 1483137 08-18 00:24 ids.log
    [root@ interface]#
     
  4. Piotr C.

    Piotr C. New Member

    Hello,
    Does anyone on the forum have an idea about the errors in my ispconfig? I'm sending the php version:

    PHP 8.3.11 (cli) (built: Aug 27 2024 19:16:34) (NTS gcc x86_64)
    Copyright (c) The PHP Group
    Zend Engine v4.3.11, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.11, Copyright (c), by Zend Technologies
     
  5. Piotr C.

    Piotr C. New Member

    Current errors:

    Fatal error: Uncaught InvalidArgumentException: Please make sure the folder '/usr/local/ispconfig/interface/lib/classes/IDS/../../../temp' is writable in /usr/local/ispconfig/interface/lib/classes/IDS/Monitor.php:159 Stack trace: #0 /usr/local/ispconfig/interface/lib/classes/ids.inc.php(117): IDS\Monitor->__construct() #1 /usr/local/ispconfig/interface/lib/app.inc.php(418): ids->start() #2 /usr/local/ispconfig/interface/web/index.php(32): require_once('...') #3 {main} thrown in /usr/local/ispconfig/interface/lib/classes/IDS/Monitor.php on line 159
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe your ISPConfig runs as the wrong user now, as the folder is owned by the right user ispconfig. Have you run an ISPConfig update with reconfigure services = yes, after you updated fedora. or maybe the Fedora update activated SEWLinux and SELinux blocks access to the ISPConfig temp folder now.
     
  7. Piotr C.

    Piotr C. New Member

    Hello,
    It seems that SELinux does not block anything with ispconig. selinux settings:
    SELINUX=disabled
    SELINUXTYPE=targeted

    Do you think it is caused by a problem with writing to the temp file?
    Uncaught InvalidArgumentException: Please make sure the folder '/usr/local/ispconfig/interface/lib/classes/IDS/../../../temp'
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, what seems to fail there is the is_writable() function. Permissions of the folder look fine, so maybe ISPConfig runs now as wrong user and not the user 'ispconfig' anymore? If its not SELinux. Aa a workaround, you can disable the IDS in the file /usr/local/ispconfig/security/security_settings.ini
     
  9. Piotr C.

    Piotr C. New Member

    Hello,
    Thank you for your help.

    Disabling the option in /security_settings.ini helped.
    I did:
    #ids_anon_enabled=yes
    ids_anon_log_level=1
    ids_anon_warn_level=15
    ids_anon_block_level=20
    #ids_user_enabled=yes

    and it works.:)

    What does disabling IDS mean? Is it good to leave ispconfig without IDS_user?
     
  10. Strontium

    Strontium New Member

Share This Page