Install issue permission and htaccess Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Trying to install magento 2 and get page_cache is not writablePermission Denied htaccess in folders where no htaccess file even existsAccess Denied (Permission Issue) after upgrade 2.0.3 -> 2.0.4Magento 2 - How to set chown and chmod for root folder and sub folder in linux (centos 6.5)Magento 2.1 CE Installed but front/backend not loading/workingMagento 2: Unable to write file into directory. Access forbiddenCron job permission issue?Error 500 after magento migrationMagento2 Error 404 Admin after installIn production mode the site does not load
“Since the train was delayed for more than an hour, passengers were given a full refund.” – Why is there no article before “passengers”?
A journey... into the MIND
How can I introduce the names of fantasy creatures to the reader?
Why these surprising proportionalities of integrals involving odd zeta values?
What were wait-states, and why was it only an issue for PCs?
Pointing to problems without suggesting solutions
Who can become a wight?
Raising a bilingual kid. When should we introduce the majority language?
Lights are flickering on and off after accidentally bumping into light switch
Proving inequality for positive definite matrix
Why aren't these two solutions equivalent? Combinatorics problem
Can gravitational waves pass through a black hole?
What's the connection between Mr. Nancy and fried chicken?
What documents does someone with a long-term visa need to travel to another Schengen country?
Providing direct feedback to a product salesperson
Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?
A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?
Recursive calls to a function - why is the address of the parameter passed to it lowering with each call?
Determine the generator of an ideal of ring of integers
When does Bran Stark remember Jamie pushing him?
How was Lagrange appointed professor of mathematics so early?
What is the evidence that custom checks in Northern Ireland are going to result in violence?
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
Will I be more secure with my own router behind my ISP's router?
Install issue permission and htaccess
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Trying to install magento 2 and get page_cache is not writablePermission Denied htaccess in folders where no htaccess file even existsAccess Denied (Permission Issue) after upgrade 2.0.3 -> 2.0.4Magento 2 - How to set chown and chmod for root folder and sub folder in linux (centos 6.5)Magento 2.1 CE Installed but front/backend not loading/workingMagento 2: Unable to write file into directory. Access forbiddenCron job permission issue?Error 500 after magento migrationMagento2 Error 404 Admin after installIn production mode the site does not load
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to install Magento 2. I run this for permission file and folder
chown -R admin:www-data /var/www/magento2
find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/magento2/pub,var
I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error
Forbidden
You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe
I tried to add this on .htaccess file but not work
<Directory /mymagento2-folder/>
AllowOverride None
</Directory>
What should I check or try to see magento2 install page?
magento2 server-setup
add a comment |
I'm trying to install Magento 2. I run this for permission file and folder
chown -R admin:www-data /var/www/magento2
find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/magento2/pub,var
I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error
Forbidden
You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe
I tried to add this on .htaccess file but not work
<Directory /mymagento2-folder/>
AllowOverride None
</Directory>
What should I check or try to see magento2 install page?
magento2 server-setup
add a comment |
I'm trying to install Magento 2. I run this for permission file and folder
chown -R admin:www-data /var/www/magento2
find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/magento2/pub,var
I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error
Forbidden
You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe
I tried to add this on .htaccess file but not work
<Directory /mymagento2-folder/>
AllowOverride None
</Directory>
What should I check or try to see magento2 install page?
magento2 server-setup
I'm trying to install Magento 2. I run this for permission file and folder
chown -R admin:www-data /var/www/magento2
find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/magento2/pub,var
I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error
Forbidden
You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe
I tried to add this on .htaccess file but not work
<Directory /mymagento2-folder/>
AllowOverride None
</Directory>
What should I check or try to see magento2 install page?
magento2 server-setup
magento2 server-setup
asked Dec 4 '15 at 15:47
MoonMoon
76172343
76172343
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
If using Apache 2.4, try similar virtual hosts config:
<VirtualHost *:80>
DocumentRoot "/var/www/magento2ce"
ServerName magento2.vagrant
<Directory /var/www/magento2ce>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
If Apache 2.2, then replace Require all granted
with Allow from all
. See more details in the official dev docs.
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
add a comment |
probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid
just to debug this issue set permissions 644/755
and is .htaccess available?
add a comment |
Please set default permission for Magento 2 root directory by running following command:
sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento
I hope it works for you.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
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/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%2fmagento.stackexchange.com%2fquestions%2f92681%2finstall-issue-permission-and-htaccess%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
If using Apache 2.4, try similar virtual hosts config:
<VirtualHost *:80>
DocumentRoot "/var/www/magento2ce"
ServerName magento2.vagrant
<Directory /var/www/magento2ce>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
If Apache 2.2, then replace Require all granted
with Allow from all
. See more details in the official dev docs.
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
add a comment |
If using Apache 2.4, try similar virtual hosts config:
<VirtualHost *:80>
DocumentRoot "/var/www/magento2ce"
ServerName magento2.vagrant
<Directory /var/www/magento2ce>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
If Apache 2.2, then replace Require all granted
with Allow from all
. See more details in the official dev docs.
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
add a comment |
If using Apache 2.4, try similar virtual hosts config:
<VirtualHost *:80>
DocumentRoot "/var/www/magento2ce"
ServerName magento2.vagrant
<Directory /var/www/magento2ce>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
If Apache 2.2, then replace Require all granted
with Allow from all
. See more details in the official dev docs.
If using Apache 2.4, try similar virtual hosts config:
<VirtualHost *:80>
DocumentRoot "/var/www/magento2ce"
ServerName magento2.vagrant
<Directory /var/www/magento2ce>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
If Apache 2.2, then replace Require all granted
with Allow from all
. See more details in the official dev docs.
answered Dec 4 '15 at 17:24
Alex PaliarushAlex Paliarush
11.1k23851
11.1k23851
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
add a comment |
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
this is maybe a bad idea to grant access.
– MagenX
Dec 4 '15 at 23:24
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
@MagenX what is better option? This one seems to be officially recommended.
– Alex Paliarush
Dec 5 '15 at 9:44
add a comment |
probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid
just to debug this issue set permissions 644/755
and is .htaccess available?
add a comment |
probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid
just to debug this issue set permissions 644/755
and is .htaccess available?
add a comment |
probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid
just to debug this issue set permissions 644/755
and is .htaccess available?
probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid
just to debug this issue set permissions 644/755
and is .htaccess available?
answered Dec 4 '15 at 23:26
MagenXMagenX
2,0781024
2,0781024
add a comment |
add a comment |
Please set default permission for Magento 2 root directory by running following command:
sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento
I hope it works for you.
add a comment |
Please set default permission for Magento 2 root directory by running following command:
sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento
I hope it works for you.
add a comment |
Please set default permission for Magento 2 root directory by running following command:
sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento
I hope it works for you.
Please set default permission for Magento 2 root directory by running following command:
sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento
I hope it works for you.
edited 2 days ago
answered 2 days ago
Kamlesh YaduwanshiKamlesh Yaduwanshi
213
213
add a comment |
add a comment |
Thanks for contributing an answer to Magento 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.
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%2fmagento.stackexchange.com%2fquestions%2f92681%2finstall-issue-permission-and-htaccess%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