Here's a working PHP 7.x and Apache setup for Docker

  • Have you tried the actual folder path (srv/dev-disk-by-label-something/) instead of /sharedfolders/ ?

    Yeah, I tried that as well.

    Modpic.gif

    Dell Precision T3500
    Processor:
    Intel Core i7 960 @3.2ghz
    Memory:
    26GB RAM
    Kernel: Linux 5.10.0-0.bpo.9-amd64
    Version: 5.6.2-1 (Usul) Debian Buster [From Fresh Install of 5]

  • If there's a way to wipe ACL settings let me know because I don't recall ever setting them up and always use SSH for setting perms.

    Use the resetperms Plugin. That also resets ACLs.


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • I’m curious whatservices are you guys use Apache for ?

    Do you ask why use Apache2 rather than nginx?


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Use the resetperms Plugin. That also resets ACLs.


    Greetings

    David

    will this reset anything beyond ACLs? I have a bunch of chmod foldes and setup with my internal server for things like calibreweb, emby, kodi, etc. Don't want to destroy all the work I've put in to this thing.


    Also, I created a new directory on the root of all 3 HDD and created a docker with this built image and set the /var/www/html to a fresh public folder and all 3 failed the exact same way. All 3 have something public viewing web interface already and work fine, it's just apache docker that seems to be failing non-stop.

    • HDD1 is a the default nginx web server with many internal websites and testing sites
    • HDD2 is the CalibreWeb portal and a couple other portals
    • HDD3 is the Emby, Kodi, Mylar holder

    Can you think of reason why it would fail on all 3 the same way? I created new folders, named public, via cli: chmod 777; chown hakarune:users; chmod a+x. And the error is the same for all. I even checked ACL/perms via the gui and they were greyed/blank for all but the normal default ngnix one that you suggested I wipe of ACL.


    Bash
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this message
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this message
    [Thu Aug 13 01:52:26.478670 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.21 configured -- resuming normal operations
    [Thu Aug 13 01:52:26.478815 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
    [Thu Aug 13 01:52:40.626552 2020] [core:error] [pid 16] (13)Permission denied: [client 10.1.1.2:4371] AH00035: access to / denied (filesystem path '/var') because search permissions are missing on a component of the path
    10.1.1.2 - - [13/Aug/2020:01:52:40 -0700] "GET / HTTP/1.1" 403 493 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
    10.1.1.2 - - [13/Aug/2020:01:52:40 -0700] "GET /favicon.ico HTTP/1.1" 403 492 "http://10.1.1.10:7080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"
    [Thu Aug 13 01:52:41.026613 2020] [core:error] [pid 16] (13)Permission denied: [client 10.1.1.2:4371] AH00035: access to /favicon.ico denied (filesystem path '/var') because search permissions are missing on a component of the path, referer: http://10.1.1.10:7080/
    [Thu Aug 13 01:52:41.602089 2020] [core:error] [pid 16] (13)Permission denied: [client 10.1.1.2:4371] AH00035: access to / denied (filesystem path '/var') because search permissions are missing on a component of the path
    10.1.1.2 - - [13/Aug/2020:01:52:41 -0700] "GET / HTTP/1.1" 403 492 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36"

    Modpic.gif

    Dell Precision T3500
    Processor:
    Intel Core i7 960 @3.2ghz
    Memory:
    26GB RAM
    Kernel: Linux 5.10.0-0.bpo.9-amd64
    Version: 5.6.2-1 (Usul) Debian Buster [From Fresh Install of 5]

  • Hi,


    I’m curious what services are you guys use Apache for ?

    ? I'm trying to use it for specific software, in this instance Sentrifugo, which does not work well with Ngnix and the hacks for it require a newer PHP on Ngnix to use, but it is still a bit of a hack job workaround that isn't clean or smooth. There are also some other web software and programing code that doesn't work well with Ngnix but work with no issue on apache.

    Modpic.gif

    Dell Precision T3500
    Processor:
    Intel Core i7 960 @3.2ghz
    Memory:
    26GB RAM
    Kernel: Linux 5.10.0-0.bpo.9-amd64
    Version: 5.6.2-1 (Usul) Debian Buster [From Fresh Install of 5]

  • will this reset anything beyond ACLs? I have a bunch of chmod foldes and setup with my internal server for things like calibreweb, emby, kodi, etc. Don't want to destroy all the work I've put in to this thing.

    It will reset ACLs and set the folder permissions (both recursively) the way you select it in the GUI: https://github.com/OpenMediaVa…r/usr/sbin/omv-resetperms



    Can you think of reason why it would fail on all 3 the same way? I created new folders, named public, via cli: chmod 777; chown hakarune:users; chmod a+x. And the error is the same for all. I even checked ACL/perms via the gui and they were greyed/blank for all but the normal default ngnix one that you suggested I wipe of ACL.

    Can you post a stat /folderpath command of the path in question?


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Okay, installing it now.



    Here are the 3 folders I'm testing with the docker on 3 separate drives (an external raid 2x2.5" HDDs, External Drive - 3.5" HDD, external m.2 SSD)

    Code
    root@omvnas:/srv/dev-disk-by-label-extended/web/apache/www# stat html/
    File: html/
    Size: 43              Blocks: 0          IO Block: 4096   directory
    Device: 801h/2049d      Inode: 51216076    Links: 2
    Access: (2777/drwxrwsrwx)  Uid: ( 1000/hakarune)   Gid: (  100/   users)
    Access: 2020-08-18 23:39:59.333785209 -0700
    Modify: 2020-08-18 23:39:11.664686720 -0700
    Change: 2020-08-18 23:39:59.309784655 -0700
    Birth: -
    Code
    root@omvnas:/srv/dev-disk-by-label-External/apache/www# stat html
    File: html
    Size: 31              Blocks: 8          IO Block: 4096   directory
    Device: 811h/2065d      Inode: 4472780167  Links: 2
    Access: (2777/drwxrwsrwx)  Uid: (   33/www-data)   Gid: (  100/   users)
    Access: 2020-08-18 04:51:14.463048068 -0700
    Modify: 2020-08-13 02:43:03.343514542 -0700
    Change: 2020-08-13 02:45:03.770344591 -0700
    Birth: -
    Code
    root@omvnas:/srv/dev-disk-by-label-Raid/Programs/apache# stat public/
    File: public/
    Size: 0               Blocks: 0          IO Block: 4096   directory
    Device: 822h/2082d      Inode: 1105453     Links: 1
    Access: (0755/drwxr-xr-x)  Uid: ( 1000/hakarune)   Gid: (  100/   users)
    Access: 2020-08-13 01:44:01.813786700 -0700
    Modify: 2020-08-09 00:18:58.046778900 -0700
    Change: 2020-08-13 01:44:01.217174800 -0700
    Birth: -



    I've also attached 3 images of how the docker is setup in the GUI (it's the default from the build in this forum).

  • Everything in the config looks just fine to me. About your deleted post: You can set it to 775, via the Plugin, too. (Group Read/write)


    A bit out of ideas without trying it locally.


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Yeah, I have no idea what's going on and everything is set to 777 on the folders even and still nothing. That's why I can only assume it's a docker omv issue. I'm giving up on trying to use OMV and going to just convert my pi zero W to a LAMP server for testing PHP.



    As for the deleted, it wasn't working through the GUI either and took a bit, but eventually fixed it (though I posted after trying for a while unsuccessfully) then found a way and deleted the post.

    Modpic.gif

    Dell Precision T3500
    Processor:
    Intel Core i7 960 @3.2ghz
    Memory:
    26GB RAM
    Kernel: Linux 5.10.0-0.bpo.9-amd64
    Version: 5.6.2-1 (Usul) Debian Buster [From Fresh Install of 5]

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!