NFS Mounting from apache2 php worked as expected under Ubuntu 16 but not Ubuntu 18.04NFS will mount but is...

Can I ask the recruiters in my resume to put the reason why I am rejected?

Dragon forelimb placement

How does one intimidate enemies without having the capacity for violence?

How does strength of boric acid solution increase in presence of salicylic acid?

Do I have a twin with permutated remainders?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

Test if tikzmark exists on same page

Can I make popcorn with any corn?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Mathematical cryptic clues

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Why is consensus so controversial in Britain?

What do "features" mean/refer to in this sentence?

Is it possible to do 50 km distance without any previous training?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Why not use SQL instead of GraphQL?

Why can't I see bouncing of a switch on an oscilloscope?

Fencing style for blades that can attack from a distance

How much RAM could one put in a typical 80386 setup?

Writing rule stating superpower from different root cause is bad writing

Smoothness of finite-dimensional functional calculus

I'm planning on buying a laser printer but concerned about the life cycle of toner in the machine

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?



NFS Mounting from apache2 php worked as expected under Ubuntu 16 but not Ubuntu 18.04


NFS will mount but is not accessible until browsed through GUIUnable to NFS mount from Ubuntu 14.04.1 LTS against QNAP NASPHP not working after updating from 5 to 7How to Enable Viewing Subdirectories in Apache2 Under WWW under Ubuntu 16.04Ubuntu 16.04 NFS Exports/Shares not mounting on client machineUbuntu NFS Client mounts but doesn't see files on Win 2008 Serverapache2 is up and running but my php code cant runUbuntu 18.04 mounted network shares not appearing under devices in file managerProper way to set multiple user permissions for a webserverUbuntu 18.04, PHP 5.3 installing






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







0















I have php code for apache2 that is supposed to mount NFS filesystems on the server. They have the form of exec("some scripts that do the mount that has the correct sudo permissions");



This worked fine and as expected on ubuntu 16. After mounting I could do a 'df' and the mounted volume would appear and I could access it as expected.



Under ubuntu 18, the behavior is different and I don't understand it. It seems to do a virtual or temporary mount but nobody but www-data user can access it. In other words, I do php



exec("mount script");
exec("df > some_log_file");



and some_log_file will show the mount. But if at the same time I log into the server, either directly on the display or via ssh, and I type 'df' it does NOT appear (nor is it accessible in any other way even as root).



I'm guessing this might have something to do with systemd since it's sort of like the PrivateTmp thing, but I can't even figure out what string to type into google to figure out what's going on.



Note: this is an apache server that is on an isolated LAN NOT connected to the Internet so there is no security risk so you needn't point the riskiness out.










share|improve this question























  • How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

    – Pasi Suominen
    6 mins ago


















0















I have php code for apache2 that is supposed to mount NFS filesystems on the server. They have the form of exec("some scripts that do the mount that has the correct sudo permissions");



This worked fine and as expected on ubuntu 16. After mounting I could do a 'df' and the mounted volume would appear and I could access it as expected.



Under ubuntu 18, the behavior is different and I don't understand it. It seems to do a virtual or temporary mount but nobody but www-data user can access it. In other words, I do php



exec("mount script");
exec("df > some_log_file");



and some_log_file will show the mount. But if at the same time I log into the server, either directly on the display or via ssh, and I type 'df' it does NOT appear (nor is it accessible in any other way even as root).



I'm guessing this might have something to do with systemd since it's sort of like the PrivateTmp thing, but I can't even figure out what string to type into google to figure out what's going on.



Note: this is an apache server that is on an isolated LAN NOT connected to the Internet so there is no security risk so you needn't point the riskiness out.










share|improve this question























  • How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

    – Pasi Suominen
    6 mins ago














0












0








0








I have php code for apache2 that is supposed to mount NFS filesystems on the server. They have the form of exec("some scripts that do the mount that has the correct sudo permissions");



This worked fine and as expected on ubuntu 16. After mounting I could do a 'df' and the mounted volume would appear and I could access it as expected.



Under ubuntu 18, the behavior is different and I don't understand it. It seems to do a virtual or temporary mount but nobody but www-data user can access it. In other words, I do php



exec("mount script");
exec("df > some_log_file");



and some_log_file will show the mount. But if at the same time I log into the server, either directly on the display or via ssh, and I type 'df' it does NOT appear (nor is it accessible in any other way even as root).



I'm guessing this might have something to do with systemd since it's sort of like the PrivateTmp thing, but I can't even figure out what string to type into google to figure out what's going on.



Note: this is an apache server that is on an isolated LAN NOT connected to the Internet so there is no security risk so you needn't point the riskiness out.










share|improve this question














I have php code for apache2 that is supposed to mount NFS filesystems on the server. They have the form of exec("some scripts that do the mount that has the correct sudo permissions");



This worked fine and as expected on ubuntu 16. After mounting I could do a 'df' and the mounted volume would appear and I could access it as expected.



Under ubuntu 18, the behavior is different and I don't understand it. It seems to do a virtual or temporary mount but nobody but www-data user can access it. In other words, I do php



exec("mount script");
exec("df > some_log_file");



and some_log_file will show the mount. But if at the same time I log into the server, either directly on the display or via ssh, and I type 'df' it does NOT appear (nor is it accessible in any other way even as root).



I'm guessing this might have something to do with systemd since it's sort of like the PrivateTmp thing, but I can't even figure out what string to type into google to figure out what's going on.



Note: this is an apache server that is on an isolated LAN NOT connected to the Internet so there is no security risk so you needn't point the riskiness out.







18.04 mount apache2 php nfs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 36 mins ago









Bret WallachBret Wallach

112




112













  • How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

    – Pasi Suominen
    6 mins ago



















  • How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

    – Pasi Suominen
    6 mins ago

















How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

– Pasi Suominen
6 mins ago





How about; en.wikipedia.org/wiki/Filesystem_in_Userspace

– Pasi Suominen
6 mins ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/3.0/"u003ecc by-sa 3.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%2faskubuntu.com%2fquestions%2f1131753%2fnfs-mounting-from-apache2-php-worked-as-expected-under-ubuntu-16-but-not-ubuntu%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 Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1131753%2fnfs-mounting-from-apache2-php-worked-as-expected-under-ubuntu-16-but-not-ubuntu%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

List of shipwrecks in 1808...

Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...