Magento 2 Installation Issue: 404 error while trying to load admin pagemagento 2 admin url not working and...
-1 to the power of a irrational number
What does *dead* mean in *What do you mean, dead?*?
Writing text next to a table
When to use a QR code on a business card?
What can I do if someone tampers with my SSH public key?
What does the Digital Threat scope actually do?
Yet another question on sums of the reciprocals of the primes
I am the person who abides by rules, but breaks the rules. Who am I?
Why aren't there more Gauls like Obelix?
Is divide-by-zero a security vulnerability?
Is there stress on two letters on the word стоят
Too soon for a plot twist?
How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?
Which country has more?
How can a demon take control of a human body during REM sleep?
Do black holes violate the conservation of mass?
Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?
How do spaceships determine each other's mass in space?
How should I solve this integral with changing parameters?
Rationale to prefer local variables over instance variables?
What do you call someone who likes to pick fights?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Cycles on the torus
Having the player face themselves after the mid-game
Magento 2 Installation Issue: 404 error while trying to load admin page
magento 2 admin url not working and loaded frontend is all messyMagento 2 jquery/jquery-ui-1.9.2.js 404adding calendar on form field in magento 2 not working error 404Magento 2.0.2 js not loadedMagento 2 Wamp installation CSS/JS files return 404 error - multi storeStatic files aren't deploying in developer modeMagento 2 Product checkout isnt loadUncaught Type Error in magento 2 and 404 errorMagento 2 Minicart dropdown delete icon not workingCss not loading after theme installationInstalled magento 2.1 on windows but it is is giving many require js errorsI am getting jquery error while adding custom field in payment method in magento 2?
I have successfully installed Magento 2 on the wamp server but I'm having a slight issue of loading the admin page as it is giving me a 404. Also, when loading its homepage the default theme that is luma in my case doesn't apply and instead gives me the following errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/calendar.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/images/logo.svg
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/requirejs/require.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js
Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:602 Uncaught ReferenceError: require is not defined
127.0.0.1/:24 Uncaught ReferenceError: require is not defined
127.0.0.1/:26 Uncaught ReferenceError: require is not defined
magento2 404-page
add a comment |
I have successfully installed Magento 2 on the wamp server but I'm having a slight issue of loading the admin page as it is giving me a 404. Also, when loading its homepage the default theme that is luma in my case doesn't apply and instead gives me the following errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/calendar.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/images/logo.svg
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/requirejs/require.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js
Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:602 Uncaught ReferenceError: require is not defined
127.0.0.1/:24 Uncaught ReferenceError: require is not defined
127.0.0.1/:26 Uncaught ReferenceError: require is not defined
magento2 404-page
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21
add a comment |
I have successfully installed Magento 2 on the wamp server but I'm having a slight issue of loading the admin page as it is giving me a 404. Also, when loading its homepage the default theme that is luma in my case doesn't apply and instead gives me the following errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/calendar.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/images/logo.svg
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/requirejs/require.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js
Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:602 Uncaught ReferenceError: require is not defined
127.0.0.1/:24 Uncaught ReferenceError: require is not defined
127.0.0.1/:26 Uncaught ReferenceError: require is not defined
magento2 404-page
I have successfully installed Magento 2 on the wamp server but I'm having a slight issue of loading the admin page as it is giving me a 404. Also, when loading its homepage the default theme that is luma in my case doesn't apply and instead gives me the following errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/calendar.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/images/logo.svg
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-m.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/styles-l.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/requirejs/require.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/css/print.css
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1/test1/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js
Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:602 Uncaught ReferenceError: require is not defined
127.0.0.1/:24 Uncaught ReferenceError: require is not defined
127.0.0.1/:26 Uncaught ReferenceError: require is not defined
magento2 404-page
magento2 404-page
edited May 22 '16 at 8:52
Purushotam Sharma
8551729
8551729
asked Jan 5 '16 at 14:17
SaharcasmSaharcasm
51113
51113
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21
add a comment |
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21
add a comment |
6 Answers
6
active
oldest
votes
Css and js will created at run time in pub/static folder
In first time,if css and js missing then run below command
if you are using windows:
php binmagento setup:static-content:deploy
if using linux of 'git bash':
php bin/magento setup:static-content:deploy
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
add a comment |
I was also facing this problem. Admin gives 404 error and frontend didn't attach css(i.e. Luma didnot showing in proper format..).so i did these steps to solve these both problems in magento 2.
1)go to terminal and run this command
sudo gedit /etc/apache2/apache2.conf
And change:-
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
chnage only AllowOverride none to All
and
2) go to terminal and run command :-
sudo a2enmod rewrite
sudo service apache2 restart
Then give the permission to your var,pub and app/etc.
and then go to your admin and frontend it works properly.
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
add a comment |
For those who are using wamp server, then run these commands in your CLI.
C:wampbinphpphp5.5.12>php.exe
C:wampwww\binmagento setup:static-content:deploy
add a comment |
I was also facing this issue. After fresh install of magento 2 with demo data when navigating to the frontend and backend too in localhost. Got MIME type mismatch errors for calendar.css and require.js. Nothing worked for me unless deployed the static content through
php bin/magento setup:static-content:deploy
in git bash and while it is default mode.
add a comment |
I was facing the same problem, I used Alan Storm solution from that article - http://alanstorm.com/magento_2_adding_frontend_files_to_your_module
use that command in ssh
find /path/to/magento2/pub/static -exec chmod 777 '{}' +
find /path/to/magento2/var/ -exec chmod 777 '{}' +
add a comment |
Enable URL rewrites.
1) Open terminal in Ubuntu and execute these commands:
sudo a2enmod rewrite
sudo service apache2 restart
2) Make sure you have the .htaccess
file in your root directory of magento, if there is no .htaccess
file copy the /pub/.htaccess
file and paste it in the root directory
3) Open /etc/apache2/apache2.conf
file using following commands:
sudo nano /etc/apache2/apache2.conf
And change the following lines of code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Save and close the file by Ctrl + X
Restart the apache
sudo service apache2 restart
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%2f96032%2fmagento-2-installation-issue-404-error-while-trying-to-load-admin-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Css and js will created at run time in pub/static folder
In first time,if css and js missing then run below command
if you are using windows:
php binmagento setup:static-content:deploy
if using linux of 'git bash':
php bin/magento setup:static-content:deploy
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
add a comment |
Css and js will created at run time in pub/static folder
In first time,if css and js missing then run below command
if you are using windows:
php binmagento setup:static-content:deploy
if using linux of 'git bash':
php bin/magento setup:static-content:deploy
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
add a comment |
Css and js will created at run time in pub/static folder
In first time,if css and js missing then run below command
if you are using windows:
php binmagento setup:static-content:deploy
if using linux of 'git bash':
php bin/magento setup:static-content:deploy
Css and js will created at run time in pub/static folder
In first time,if css and js missing then run below command
if you are using windows:
php binmagento setup:static-content:deploy
if using linux of 'git bash':
php bin/magento setup:static-content:deploy
edited Feb 8 '16 at 11:56
Seetpal singh
1032
1032
answered Jan 5 '16 at 14:28
Anand OntigeriAnand Ontigeri
5761721
5761721
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
add a comment |
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Also, make sure you enabled Apache server rewrites
– Steve Johnson
Jan 7 '16 at 14:42
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
Would appreciate if you could break down the steps. How to run the Windows command? How to know if it actually worked?
– Mohammed Joraid
Jun 28 '17 at 19:49
add a comment |
I was also facing this problem. Admin gives 404 error and frontend didn't attach css(i.e. Luma didnot showing in proper format..).so i did these steps to solve these both problems in magento 2.
1)go to terminal and run this command
sudo gedit /etc/apache2/apache2.conf
And change:-
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
chnage only AllowOverride none to All
and
2) go to terminal and run command :-
sudo a2enmod rewrite
sudo service apache2 restart
Then give the permission to your var,pub and app/etc.
and then go to your admin and frontend it works properly.
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
add a comment |
I was also facing this problem. Admin gives 404 error and frontend didn't attach css(i.e. Luma didnot showing in proper format..).so i did these steps to solve these both problems in magento 2.
1)go to terminal and run this command
sudo gedit /etc/apache2/apache2.conf
And change:-
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
chnage only AllowOverride none to All
and
2) go to terminal and run command :-
sudo a2enmod rewrite
sudo service apache2 restart
Then give the permission to your var,pub and app/etc.
and then go to your admin and frontend it works properly.
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
add a comment |
I was also facing this problem. Admin gives 404 error and frontend didn't attach css(i.e. Luma didnot showing in proper format..).so i did these steps to solve these both problems in magento 2.
1)go to terminal and run this command
sudo gedit /etc/apache2/apache2.conf
And change:-
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
chnage only AllowOverride none to All
and
2) go to terminal and run command :-
sudo a2enmod rewrite
sudo service apache2 restart
Then give the permission to your var,pub and app/etc.
and then go to your admin and frontend it works properly.
I was also facing this problem. Admin gives 404 error and frontend didn't attach css(i.e. Luma didnot showing in proper format..).so i did these steps to solve these both problems in magento 2.
1)go to terminal and run this command
sudo gedit /etc/apache2/apache2.conf
And change:-
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
chnage only AllowOverride none to All
and
2) go to terminal and run command :-
sudo a2enmod rewrite
sudo service apache2 restart
Then give the permission to your var,pub and app/etc.
and then go to your admin and frontend it works properly.
edited May 22 '16 at 4:17
Amit Bera♦
58.9k1575175
58.9k1575175
answered May 21 '16 at 17:24
sushant kumarsushant kumar
13112
13112
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
add a comment |
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
1
1
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
man i tried 1000s of solution but only this one worked for me thanks a lot!
– Wasif Khalil
Apr 3 '17 at 6:13
add a comment |
For those who are using wamp server, then run these commands in your CLI.
C:wampbinphpphp5.5.12>php.exe
C:wampwww\binmagento setup:static-content:deploy
add a comment |
For those who are using wamp server, then run these commands in your CLI.
C:wampbinphpphp5.5.12>php.exe
C:wampwww\binmagento setup:static-content:deploy
add a comment |
For those who are using wamp server, then run these commands in your CLI.
C:wampbinphpphp5.5.12>php.exe
C:wampwww\binmagento setup:static-content:deploy
For those who are using wamp server, then run these commands in your CLI.
C:wampbinphpphp5.5.12>php.exe
C:wampwww\binmagento setup:static-content:deploy
edited 4 mins ago
magefms
1,254220
1,254220
answered Jun 30 '16 at 9:54
MaYaNkMaYaNk
1,6321926
1,6321926
add a comment |
add a comment |
I was also facing this issue. After fresh install of magento 2 with demo data when navigating to the frontend and backend too in localhost. Got MIME type mismatch errors for calendar.css and require.js. Nothing worked for me unless deployed the static content through
php bin/magento setup:static-content:deploy
in git bash and while it is default mode.
add a comment |
I was also facing this issue. After fresh install of magento 2 with demo data when navigating to the frontend and backend too in localhost. Got MIME type mismatch errors for calendar.css and require.js. Nothing worked for me unless deployed the static content through
php bin/magento setup:static-content:deploy
in git bash and while it is default mode.
add a comment |
I was also facing this issue. After fresh install of magento 2 with demo data when navigating to the frontend and backend too in localhost. Got MIME type mismatch errors for calendar.css and require.js. Nothing worked for me unless deployed the static content through
php bin/magento setup:static-content:deploy
in git bash and while it is default mode.
I was also facing this issue. After fresh install of magento 2 with demo data when navigating to the frontend and backend too in localhost. Got MIME type mismatch errors for calendar.css and require.js. Nothing worked for me unless deployed the static content through
php bin/magento setup:static-content:deploy
in git bash and while it is default mode.
edited Sep 12 '17 at 18:14
answered Jan 10 '17 at 7:39
Umar YousafUmar Yousaf
31324
31324
add a comment |
add a comment |
I was facing the same problem, I used Alan Storm solution from that article - http://alanstorm.com/magento_2_adding_frontend_files_to_your_module
use that command in ssh
find /path/to/magento2/pub/static -exec chmod 777 '{}' +
find /path/to/magento2/var/ -exec chmod 777 '{}' +
add a comment |
I was facing the same problem, I used Alan Storm solution from that article - http://alanstorm.com/magento_2_adding_frontend_files_to_your_module
use that command in ssh
find /path/to/magento2/pub/static -exec chmod 777 '{}' +
find /path/to/magento2/var/ -exec chmod 777 '{}' +
add a comment |
I was facing the same problem, I used Alan Storm solution from that article - http://alanstorm.com/magento_2_adding_frontend_files_to_your_module
use that command in ssh
find /path/to/magento2/pub/static -exec chmod 777 '{}' +
find /path/to/magento2/var/ -exec chmod 777 '{}' +
I was facing the same problem, I used Alan Storm solution from that article - http://alanstorm.com/magento_2_adding_frontend_files_to_your_module
use that command in ssh
find /path/to/magento2/pub/static -exec chmod 777 '{}' +
find /path/to/magento2/var/ -exec chmod 777 '{}' +
answered May 22 '16 at 10:13
electroidelectroid
324210
324210
add a comment |
add a comment |
Enable URL rewrites.
1) Open terminal in Ubuntu and execute these commands:
sudo a2enmod rewrite
sudo service apache2 restart
2) Make sure you have the .htaccess
file in your root directory of magento, if there is no .htaccess
file copy the /pub/.htaccess
file and paste it in the root directory
3) Open /etc/apache2/apache2.conf
file using following commands:
sudo nano /etc/apache2/apache2.conf
And change the following lines of code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Save and close the file by Ctrl + X
Restart the apache
sudo service apache2 restart
add a comment |
Enable URL rewrites.
1) Open terminal in Ubuntu and execute these commands:
sudo a2enmod rewrite
sudo service apache2 restart
2) Make sure you have the .htaccess
file in your root directory of magento, if there is no .htaccess
file copy the /pub/.htaccess
file and paste it in the root directory
3) Open /etc/apache2/apache2.conf
file using following commands:
sudo nano /etc/apache2/apache2.conf
And change the following lines of code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Save and close the file by Ctrl + X
Restart the apache
sudo service apache2 restart
add a comment |
Enable URL rewrites.
1) Open terminal in Ubuntu and execute these commands:
sudo a2enmod rewrite
sudo service apache2 restart
2) Make sure you have the .htaccess
file in your root directory of magento, if there is no .htaccess
file copy the /pub/.htaccess
file and paste it in the root directory
3) Open /etc/apache2/apache2.conf
file using following commands:
sudo nano /etc/apache2/apache2.conf
And change the following lines of code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Save and close the file by Ctrl + X
Restart the apache
sudo service apache2 restart
Enable URL rewrites.
1) Open terminal in Ubuntu and execute these commands:
sudo a2enmod rewrite
sudo service apache2 restart
2) Make sure you have the .htaccess
file in your root directory of magento, if there is no .htaccess
file copy the /pub/.htaccess
file and paste it in the root directory
3) Open /etc/apache2/apache2.conf
file using following commands:
sudo nano /etc/apache2/apache2.conf
And change the following lines of code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Save and close the file by Ctrl + X
Restart the apache
sudo service apache2 restart
edited Nov 7 '18 at 13:39
answered Sep 3 '18 at 13:42
Usman YousafUsman Yousaf
24010
24010
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%2f96032%2fmagento-2-installation-issue-404-error-while-trying-to-load-admin-page%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
check answer here : magento.stackexchange.com/questions/91087/…
– Anil Suthar
Jun 9 '16 at 8:21