mod_lsapi/lsphp error after reboot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cuboc2
    Junior Member
    Forum Explorer
    • Mar 2021
    • 12

    #1

    mod_lsapi/lsphp error after reboot

    Fresh install of CL7 with lsphp gives this error after a reboot for all users.
    [Wed Nov 04 07:25:09 2015] [ERROR Permission denied:13] sulsphp: socket bind failed
    [Wed Nov 04 07:25:19.739631 2015] [lsapi:error] [pid 2598] [client xxxxxxxxx:55006] mod_lsapi: [host xxxxx.xxx] Could not connect to lsphp backend: connect to lsphp failed: 2 No such file or directory

    When i run
    /usr/bin/switch_mod_lsapi --setup
    /bin/systemctl restart httpd.service
    All works budt there must be a way of making it work whitout that 2 commands ?
  • bogdan.sh
    Administrator
    • Nov 2016
    • 1219

    #2
    It should not work that way. Maybe you have some special setup? Like home directories mount with NFS?

    Any errors during server boot time? Also, do you have link traversal protection enabled? Please show the output of:

    Code:
    sysctl -a | grep link

    Comment

    • cuboc2
      Junior Member
      Forum Explorer
      • Mar 2021
      • 12

      #3
      Use ext4 on local disk.

      fs.enforce_symlinksifowner = 1
      fs.protected_hardlinks = 1
      fs.protected_symlinks = 1
      fs.symlinkown_gid = 1006

      Comment

      • bogdan.sh
        Administrator
        • Nov 2016
        • 1219

        #4
        Do you have /tmp/lshttpd/ after reboot? I believe it is removed somehow, maybe with some /tmp recreation script? As far as I remember mod_lsapi start should create that directory if doesn exist but maybe some strange startup order when /tmp/ does not exists when apache starts?

        Comment

        Working...