Why can't Apache2 look outside /var/www/html/ for a PHP file? The Next CEO of Stack Overflowphp change uploaded file ownerUbuntu - Is it normal that my apache webroot is in html directoryCannot create file in /var/www/htmlHow can I give SublimeText write permission for /var/www?I'm getting this “You should replace this file (located at /var/www/html/index.html)” after update to v14.4 ubuntuphpmyadmin installed but the page not rendered correctly by phpHow do I properly make a symlink for /var/www/html while keeping both security and function in mindIs it safe to have permission to create files in var/www/html?Can't access web folder after typing a chmod command (error 403)Can hackers inject anything to the server outside /var/www/html
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Why does standard notation not preserve intervals (visually)
Can we say or write : "No, it'sn't"?
When you upcast Blindness/Deafness, do all targets suffer the same effect?
Won the lottery - how do I keep the money?
Grabbing quick drinks
Solving system of ODEs with extra parameter
How to edit “Name” property in GCI output?
Is it professional to write unrelated content in an almost-empty email?
Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?
WOW air has ceased operation, can I get my tickets refunded?
What flight has the highest ratio of timezone difference to flight time?
Why didn't Khan get resurrected in the Genesis Explosion?
Why don't programming languages automatically manage the synchronous/asynchronous problem?
What connection does MS Office have to Netscape Navigator?
Why did CATV standarize in 75 ohms and everyone else in 50?
How to count occurrences of text in a file?
Can MTA send mail via a relay without being told so?
Does Germany produce more waste than the US?
Writing differences on a blackboard
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Make solar eclipses exceedingly rare, but still have new moons
Easy to read palindrome checker
How many extra stops do monopods offer for tele photographs?
Why can't Apache2 look outside /var/www/html/ for a PHP file?
The Next CEO of Stack Overflowphp change uploaded file ownerUbuntu - Is it normal that my apache webroot is in html directoryCannot create file in /var/www/htmlHow can I give SublimeText write permission for /var/www?I'm getting this “You should replace this file (located at /var/www/html/index.html)” after update to v14.4 ubuntuphpmyadmin installed but the page not rendered correctly by phpHow do I properly make a symlink for /var/www/html while keeping both security and function in mindIs it safe to have permission to create files in var/www/html?Can't access web folder after typing a chmod command (error 403)Can hackers inject anything to the server outside /var/www/html
I have just started to learn about the whole deal of PHP, MySql, and it's connections to front-end development. While doing this I found that I cannot execute a PHP file unless and until it is inside the /var/www/html directory. I have found out about this solution from multiple sources including askubuntu, but I could never find the reason as to why this is so. So does this mean that a PHP file always has to be inside this specific directory? Can I do anything to make a PHP file inside say, my Documents folder to run successfully instead of being "Save"-ad by Mozilla?
Please help.
16.04 permissions apache2 php
add a comment |
I have just started to learn about the whole deal of PHP, MySql, and it's connections to front-end development. While doing this I found that I cannot execute a PHP file unless and until it is inside the /var/www/html directory. I have found out about this solution from multiple sources including askubuntu, but I could never find the reason as to why this is so. So does this mean that a PHP file always has to be inside this specific directory? Can I do anything to make a PHP file inside say, my Documents folder to run successfully instead of being "Save"-ad by Mozilla?
Please help.
16.04 permissions apache2 php
add a comment |
I have just started to learn about the whole deal of PHP, MySql, and it's connections to front-end development. While doing this I found that I cannot execute a PHP file unless and until it is inside the /var/www/html directory. I have found out about this solution from multiple sources including askubuntu, but I could never find the reason as to why this is so. So does this mean that a PHP file always has to be inside this specific directory? Can I do anything to make a PHP file inside say, my Documents folder to run successfully instead of being "Save"-ad by Mozilla?
Please help.
16.04 permissions apache2 php
I have just started to learn about the whole deal of PHP, MySql, and it's connections to front-end development. While doing this I found that I cannot execute a PHP file unless and until it is inside the /var/www/html directory. I have found out about this solution from multiple sources including askubuntu, but I could never find the reason as to why this is so. So does this mean that a PHP file always has to be inside this specific directory? Can I do anything to make a PHP file inside say, my Documents folder to run successfully instead of being "Save"-ad by Mozilla?
Please help.
16.04 permissions apache2 php
16.04 permissions apache2 php
asked 1 min ago
The ViperThe Viper
12
12
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130051%2fwhy-cant-apache2-look-outside-var-www-html-for-a-php-file%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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130051%2fwhy-cant-apache2-look-outside-var-www-html-for-a-php-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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