cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax Error in Apache2 wont allow Localhost/magento2.4 load in browser

Syntax Error in Apache2 wont allow Localhost/magento2.4 load in browser

I have the following error in Apache2  - apache2: Syntax error on line 224 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/sites-enabled/000-default.conf: /etc/apache2/sites-enabled/000-default.conf:1: <VirtualHost> was not closed. -  Also the site1.com.conf has a RED X.

The 000.default.conf has this syntax;

<VirtualHost *:80>
 

        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        
ServerName 127.0.0.1

I don't know what happened to the site1.com.conf file since I did not touch it.

I am on hold trying to get my Magento 2.4.2 activated on this ubuntu pc. When I had Apache2 running yesterday I could type in locahost in the browser and can see the apache page but not localhost/magento2.4 today. Now only typing in locahost in the browser brings up the Apache page.

 

Kind of stuck and still have the issue of actually running the setup for Magento 2.4.2 with which ID and Password I should use.

Thank you