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.

Apache impossible to write in folder

Discussion in 'Apache' started by julio0907, Sep 1, 2019.

  1. #1
    Hello guys,
    I installed an apache server on a CentOS VM.
    From there I dropped the code of an application in the WWW repository.
    I put in my browser the URL of the application and I can properly reach the configuration
    page of the application (Normal).
    Now, during the configuration the application is trying to create log file in a folder.
    Problem: I have always a problem of permission so impossible to install anything.
    I tried:
    > To give apache user the sudo privilege
    > To give 777 access to the application repo
    Its not working.
    FI: It's working perfectly fine on a windows VM
    Thanks a lot for your help guys
     
    julio0907, Sep 1, 2019 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    • Check the permissions of the folders that you are trying to have the user "apache" write to.
    • Review the error_log file for the Apache web server to help pinpoint the issue.
    • You may have SELinux turned on, turn it of then try your tests again to see if it is the issue.
    Regards,
    Chris
     
    RHS-Chris, Sep 3, 2019 IP
  3. tuxandrew

    tuxandrew Active Member

    Messages:
    63
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    68
    #3
    The Apache user: (Apache or Nobody) might doesn't have the permissions to write the log file on the desired folder.
    You may have to add correct user permissions for that folder to make Apache writable on that directory.
     
    tuxandrew, Nov 22, 2019 IP