Wednesday, May 16, 2018

Magento: The requested URL /magento/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80

Error:
Not Found

The requested URL /magento/ was not found on this server.

Apache/2.4.18 (Ubuntu) Server at localhost Port 80





Solution:

Run the following commands:


a2enmod rewrite
systemctl restart apache2
a2enmod ssl
systemctl restart apache2
a2ensite default-ssl
systemctl restart apache2

Edit apache2.conf and change (None to All)following:

vim.tiny /etc/apache2/apache2.conf

<Directory /var/www/>
     Options Indexes FollowSymLinks
     AllowOverride All
     Require all granted
</Directory>

systemctl restart apache2 


No comments:

Post a Comment