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.
Solved! Go to Solution.
'backend' => [ 'frontName' => 'admin' ],
Is there anyone out there can help me with this?
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.
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.
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
'backend' => [ 'frontName' => 'admin' ],
Thanks I found the correct admin url now sorted
Glad that you've found the solution!