Run httpd as domain account for NFS-mounted storagePermission error to access mounted directory in...

Why is coffee provided during big chess events when it contains a banned substance?

Having trouble with accidentals - Note-for-note vs traditional?

Can the Bountiful Luck halfling racial feat be used multiple times in one round?

What is the use of putting the grave accent after catcode?

How can I cut a metal pipe while preserving the wires inside?

How to protect my Wi-Fi password from being displayed by Android phones when sharing it with QR code?

Fill a bowl with alphabet soup

Why are Starfleet vessels designed with nacelles so far away from the hull?

Is it possible to cross Arctic Ocean on ski/kayak undetectable now?

Hieroglyphs numerals

Diamondize Some Text

Can migraine attacks be predicted by any means?

What does "drop" mean in this context?

'The Kukhtarev's model' or 'Kukhtarev's model' ('John's car' or 'The John's car')?

How to deal with intolerable behavior of a subordinate?

"Dear Stack Exchange, I am very disappointed in you" - How to construct a strong opening line in a letter?

Sum in bash outside while read line

Drawing Super Mario Bros.....in LaTeX

algebra permutations

Is Having my Players Control Two Parties a Good Idea?

Are There 3D Rules for Flying and Distance?

Which collation should I use for biblical Hebrew?

Does my code handle negative numbers or zero when summing squared digits?

How did Ron get five hundred Chocolate Frog cards?



Run httpd as domain account for NFS-mounted storage


Permission error to access mounted directory in localhostPrivileges for jenkins at apache's folderSecuring www directory in Ubuntu/Apache without restricting access to those who need it?storage server all nfs users on full 666 file permissionsWhy is apache giving DNS lookup failures?apache configuration problems, last vhost loaded becomes wildcard domain






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0

















I have this VM running CentOS 8 that hosts a web app. I want the files for the web app to be hosted over NFS on a dedicated file server so I don't have to deal with virtual disk sizing (because they cannot shrink back once they grow).



The file server is Apache's httpd with PHP-FPM, the first few attempts I made were:




  • Getting the server and web app up & running then rsync the files to the NFS share mounted via fstab at the root of the filesystem then symlink. It didn't work.

  • Editing the configuration to change every instance I found with "/var/www/html" with the location of the mount. It didn't work either.

  • Moving only the data directory of the web app to the NFS store and symlink it. Nope.

  • Doing the mount directly in the location of the server files /var/www/html and,


  • Doing the mount directly in the location of the web app files /var/www/html/datadirexample. Again no.



    By the way, the httpd returned no error when starting each time. I also changed owners, permissions, owner and permissions for the directories each time.




I tried a couple more but screw them up as well. Now I'm using Cockpit to do NFS mount, the web server is running but and I was about to do modifications when I found that users should be synced using some kind of SSO/directory to avoid permission errors -- no wonder.



As it turns out I am running an AD domain, so I joined the VM to the domain (the file server has always been on the domain) but I realized the server itself runs as a local user. How can I get this to run as a domain user?



Also, I followed this excellent guide for CentOS 7 (I'm puzzling it together on my own on CentOS 8) where I learned how to run different servers as multiple users but since they're local, none of them requires a password. Domain users do require a password. How/where can I enter it? Is it a Kerberos ticket? If it is, will it get it automatically?



My last resource is to DMZ the VM and run everything as root but I think I'm not there yet.



Thanks for your help !










share|improve this question

































    0

















    I have this VM running CentOS 8 that hosts a web app. I want the files for the web app to be hosted over NFS on a dedicated file server so I don't have to deal with virtual disk sizing (because they cannot shrink back once they grow).



    The file server is Apache's httpd with PHP-FPM, the first few attempts I made were:




    • Getting the server and web app up & running then rsync the files to the NFS share mounted via fstab at the root of the filesystem then symlink. It didn't work.

    • Editing the configuration to change every instance I found with "/var/www/html" with the location of the mount. It didn't work either.

    • Moving only the data directory of the web app to the NFS store and symlink it. Nope.

    • Doing the mount directly in the location of the server files /var/www/html and,


    • Doing the mount directly in the location of the web app files /var/www/html/datadirexample. Again no.



      By the way, the httpd returned no error when starting each time. I also changed owners, permissions, owner and permissions for the directories each time.




    I tried a couple more but screw them up as well. Now I'm using Cockpit to do NFS mount, the web server is running but and I was about to do modifications when I found that users should be synced using some kind of SSO/directory to avoid permission errors -- no wonder.



    As it turns out I am running an AD domain, so I joined the VM to the domain (the file server has always been on the domain) but I realized the server itself runs as a local user. How can I get this to run as a domain user?



    Also, I followed this excellent guide for CentOS 7 (I'm puzzling it together on my own on CentOS 8) where I learned how to run different servers as multiple users but since they're local, none of them requires a password. Domain users do require a password. How/where can I enter it? Is it a Kerberos ticket? If it is, will it get it automatically?



    My last resource is to DMZ the VM and run everything as root but I think I'm not there yet.



    Thanks for your help !










    share|improve this question





























      0












      0








      0








      I have this VM running CentOS 8 that hosts a web app. I want the files for the web app to be hosted over NFS on a dedicated file server so I don't have to deal with virtual disk sizing (because they cannot shrink back once they grow).



      The file server is Apache's httpd with PHP-FPM, the first few attempts I made were:




      • Getting the server and web app up & running then rsync the files to the NFS share mounted via fstab at the root of the filesystem then symlink. It didn't work.

      • Editing the configuration to change every instance I found with "/var/www/html" with the location of the mount. It didn't work either.

      • Moving only the data directory of the web app to the NFS store and symlink it. Nope.

      • Doing the mount directly in the location of the server files /var/www/html and,


      • Doing the mount directly in the location of the web app files /var/www/html/datadirexample. Again no.



        By the way, the httpd returned no error when starting each time. I also changed owners, permissions, owner and permissions for the directories each time.




      I tried a couple more but screw them up as well. Now I'm using Cockpit to do NFS mount, the web server is running but and I was about to do modifications when I found that users should be synced using some kind of SSO/directory to avoid permission errors -- no wonder.



      As it turns out I am running an AD domain, so I joined the VM to the domain (the file server has always been on the domain) but I realized the server itself runs as a local user. How can I get this to run as a domain user?



      Also, I followed this excellent guide for CentOS 7 (I'm puzzling it together on my own on CentOS 8) where I learned how to run different servers as multiple users but since they're local, none of them requires a password. Domain users do require a password. How/where can I enter it? Is it a Kerberos ticket? If it is, will it get it automatically?



      My last resource is to DMZ the VM and run everything as root but I think I'm not there yet.



      Thanks for your help !










      share|improve this question














      I have this VM running CentOS 8 that hosts a web app. I want the files for the web app to be hosted over NFS on a dedicated file server so I don't have to deal with virtual disk sizing (because they cannot shrink back once they grow).



      The file server is Apache's httpd with PHP-FPM, the first few attempts I made were:




      • Getting the server and web app up & running then rsync the files to the NFS share mounted via fstab at the root of the filesystem then symlink. It didn't work.

      • Editing the configuration to change every instance I found with "/var/www/html" with the location of the mount. It didn't work either.

      • Moving only the data directory of the web app to the NFS store and symlink it. Nope.

      • Doing the mount directly in the location of the server files /var/www/html and,


      • Doing the mount directly in the location of the web app files /var/www/html/datadirexample. Again no.



        By the way, the httpd returned no error when starting each time. I also changed owners, permissions, owner and permissions for the directories each time.




      I tried a couple more but screw them up as well. Now I'm using Cockpit to do NFS mount, the web server is running but and I was about to do modifications when I found that users should be synced using some kind of SSO/directory to avoid permission errors -- no wonder.



      As it turns out I am running an AD domain, so I joined the VM to the domain (the file server has always been on the domain) but I realized the server itself runs as a local user. How can I get this to run as a domain user?



      Also, I followed this excellent guide for CentOS 7 (I'm puzzling it together on my own on CentOS 8) where I learned how to run different servers as multiple users but since they're local, none of them requires a password. Domain users do require a password. How/where can I enter it? Is it a Kerberos ticket? If it is, will it get it automatically?



      My last resource is to DMZ the VM and run everything as root but I think I'm not there yet.



      Thanks for your help !







      apache-httpd php nfs active-directory kerberos






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question



      share|improve this question










      asked 1 hour ago









      VitaVita

      435 bronze badges




      435 bronze badges

























          0






          active

          oldest

          votes













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });















          draft saved

          draft discarded
















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545327%2frun-httpd-as-domain-account-for-nfs-mounted-storage%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

















          draft saved

          draft discarded



















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545327%2frun-httpd-as-domain-account-for-nfs-mounted-storage%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...