Hello All,
I have installed the Magento 2.0.9 successfully in Ubuntu and PHP7, but when I click the link of my store address: http://localhost/magento/, the web can't use the css, and when I click the link of Magento admin address: http://localhost/magento/admin_ou2xgm/, it will display following message:
Not Found
The requested URL /magento/admin_ou2xgm/ was not found on this server.
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
I also try to install 2.1.1version, it is a same problem. How can I do?
Hi @JordanHuang
Please visit following post it may help you https://community.magento.com/t5/Installing-Magento-2/Magento-2-Localhost-Admin-url-returning-404/m-...
Thank you for your help, I have change the config
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
And I restart the Apache, but the problem still exist.
Do I need to install the Magent to /var/www/html/? I install the magento in the /var/www/html/magento.
Thanks!
Hi
I have install the Magento to the root folder of the web, but It also display:
404 error: Page not found.
Hi @JordanHuang
Have you tried the steps mentioned on the following documentation http://devdocs.magento.com/guides/v2.1/install-gde/trouble/tshoot_access-browser.html
Try to use 127.0.0.1 instead of localhost
I have been having the same problem, I also checked the other page that saying to copy .htaccess to root directory. plus changing the DriverInterface.php to 755 and 644 non of the problem resolves.
i think the issue was permissions so just for test purposes i gave all directory and files 777 but it didn't change anything. also change httpd.conf too.
I'm using php 7.0.10 mysql 5.7.13 apache24. the admin link tell me error 404
and the homepage basically show the page without css i think. personally i think it should be something simple . I search for this issue on the forum but no luck yet. I have see couple of YouTube videos too but unfortunately install without any issue. but i haven't seen anyone install it on freebsd, maybe that's the issue. please if anyone know that is its not for freebsd. sorry for my english
What is in the apache and magento log files?
Brendan
here ill post some here on bottom, not sure where is the magento log file is let me check on those
[Wed Sep 21 12:05:53.471266 2016] [:error] [pid 21260] [client 10.0.0.199:55834] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:05:56.086076 2016] [:error] [pid 21258] [client 10.0.0.199:55835] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:05:57.594257 2016] [:error] [pid 21259] [client 10.0.0.199:55836] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:06:22.613951 2016] [:error] [pid 21258] [client 10.0.0.199:55837] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:06:42.445608 2016] [:error] [pid 21259] [client 10.0.0.199:55838] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:06:45.205589 2016] [:error] [pid 21259] [client 10.0.0.199:55838] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:07:05.483729 2016] [:error] [pid 20139] [client 10.0.0.199:55839] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:07:07.741439 2016] [:error] [pid 21319] [client 10.0.0.199:55840] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:07:39.906225 2016] [:error] [pid 11800] [client 10.0.0.199:55841] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209 [Wed Sep 21 12:07:41.097101 2016] [:error] [pid 21257] [client 10.0.0.199:55842] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php:209\nStack trace:\n#0 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...')\n#1 /usr/local/www/apache24/test/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/local/www/...')\n#2 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array)\n#3 /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true)\n#4 /usr/local/www/apache24/test/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true)\n#5 /usr/local/www/apache24/test/vendor/ in /usr/local/www/apache24/test/vendor/magento/zendframework1/library/Zend/Cache.php on line 209
Hi,
The Log is pointing to an issue
[Wed Sep 21 12:05:53.471266 2016] [:error] [pid 21260] [client 10.0.0.199:55834] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/local/www/apache24/test/var/page_cache" is not writable in
Looks like possible culpit