1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Chmod 666 on php-fpm-apache2.sock after every server restart

Discussion in 'Apache' started by Thomas T., Aug 22, 2016.

  1. #1
    Hi everyone,

    I have a problem on our webserver.
    Every time I restart or if the server reboots, the webserver keep giving me a 500 internal server error.
    After some research, I tried the following chmod 666 /var/run/php-fpm-apache2.sock and restart the service and the web server comes up.
    Now I would like to fix the problem permantly (that if the server reboot the problem doesn't occur anymore).
    Any of you guys know what the reason could be for this problem?

    Thanks,
     
    Thomas T., Aug 22, 2016 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    What OS are you using? First thing that comes to mind is SELinux. Who is the owner of the file and what are the permissions prior to you changing them?

    Regards,
    Chris
     
    RHS-Chris, Aug 22, 2016 IP
  3. Thomas T.

    Thomas T. Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    The OS is a Debian 7.1 with Apache 2.2.22 and on that a drupal is running.
    If I do a ls -l on the file I see the following:
    srw-rw-rw- 1 root root 0 Aug 17 15:03 /var/run/php-fpm-apache2.sock
    I don't know what output is after a restart.
     
    Thomas T., Aug 23, 2016 IP