cancel
Showing results for 
Search instead for 
Did you mean: 

New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

SOLVED

New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

New Intallation no style

Hi folks, I am new to Magento so please be gentle with me

 

I am struggling to configure a new installation of Magento CLI 2.4.3

 

When I enter the server IP I get a 404 error and no styling. This is my site address.

 

 http://178.128.45.253/var/www/html/magento2/

 

.htaccess is default and hidden

base_url = "http://IP Address/var/www/html/magento2/"

magento.conf is enabled in sites-enabled folder and reads

 

<VirtualHost *:80>
DocumentRoot /var/www/html/magento2/pub
<Directory /var/www/html/magento2>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

 

000-default.conf is disabled

Apache2.conf is default

rewrite is enabled

 

What am I missing?

 

Any help appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

@davidcybikdf2f 

Check and verify admin route in app/etc/env.php
for example :
'backend' => [
'frontName' => 'admin'
],
1 - Delete var/cache folder
2 - Go to database and in table core_config_data
SELECT * FROM core_config_data WHERE path = 'web/seo/use_rewrites' and make it 0
Then enter url in your browser http://178.128.45.253/index.php/admin_url
Problem solved? Click Kudos and "Accept as Solution"

View solution in original post

8 REPLIES 8

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

Is there anyone out there can help me with this?

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

@davidcybikdf2f 

Try to use base URL (secure/unsecure) as http://178.128.45.253/magento2/
also check if domain URL http://178.128.45.253/ is accessible and you've 
pointed right dir like: /var/www/html/magento2
Problem solved? Click Kudos and "Accept as Solution"

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

I have changed the unsecure base URL as you suggested but the problem remains

 

The docroot is set /var/www/html/magento2/pub and directory is  /var/www/html/magento2 in my magnento.conf file. Could there be a permission issue in either of these folders?

 

Also. it my now be related but if i create a virtualhost proxy on port 8080 in the same magento.conf file for elasticsearch. The IP only produces the elastic search status in the browser.

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

@davidcybikdf2f 

 

If your docroot /var/www/html exists in magento2 folder then move it to one folder back

as the Magento root directory is pub/ in the Magento 2.4.3. So, it might cause an issue

Plus,  add test.php file at /var/www/html/ and check whether the test.php is accessible or not.

Problem solved? Click Kudos and "Accept as Solution"

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

Hi Sanjay

 

I think I have made some progress

 

The docroot is to /var/www/html/magento2/pub as this is where index.php is serviced and I have a <directory> tag pointing to the magento2 installation directory.

 

I added the <virtualhost:8080> proxy directives for elasticesearch at the top of my magento.conf file and changed the base URL to http://178.128.45.253/

 

I now have the LUMA demo page but no admin on http://178.128.45.253/admin

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

@davidcybikdf2f 

Check and verify admin route in app/etc/env.php
for example :
'backend' => [
'frontName' => 'admin'
],
1 - Delete var/cache folder
2 - Go to database and in table core_config_data
SELECT * FROM core_config_data WHERE path = 'web/seo/use_rewrites' and make it 0
Then enter url in your browser http://178.128.45.253/index.php/admin_url
Problem solved? Click Kudos and "Accept as Solution"

View solution in original post

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

Thanks I found the correct admin url now sorted

Re: New Installation Magento 2.4.3 - 404 error and no styling repeated from installation section

@davidcybikdf2f 

Glad that you've found the solution! Smiley Happy

Problem solved? Click Kudos and "Accept as Solution"