Introduction:

Magento is an open-source e-commerce platform written in PHP. It uses multiple other PHP frameworks such as Laminas (formerly known as Zend Framework) and Symfony. Magento source code is distributed under Open Software License (OSL) v3. 0

Follow the below steps to fix the error “ Autoload error” while browning a Magento site

Prerequisite:

1. A user account with sudo privileges

2. Database name

3. Database user name

4. Database root password

5. Magento admin’s first and last name

6. Email ID to get Magento admin information

Implementation:

Step:1 To fix the error as per the snapshot, re-check the below system requirement (specifically version)

(i) Apache – 2.4 / Nginx – 1.18

(ii) PHP – 7.4 and its modules

libapache2-mod-php7.4

php7.4-common

php7.4-gmp

php7.4-curl

php7.4-soap

php7.4-bcmath

php7.4-intl

php7.4-mbstring

php7.4-xmlrpc

php7.4-mcrypt

php7.4-mysql

php7.4-gd

php7.4-xml

php7.4-cli

php7.4-zip

(iii) Mysql – 8.0 / Mariadb – 10.4

Step:2 Rename the vendor directory inside the document root and run the below command

$ composer install

Step: 3 Ensure whether the new vendor directory has been created or not. If it is not created check the errors while installing composer and resolve it.

Step:4 Restart the webserver

$ systemctl restart apache2
Or
$ systemctl restart nginx

Step:5 Check the domain example.com in the browser, we can get the Magento2 page as per the snapshot 

Note: The document root should be /var/www/html/magento2

Step 6: Update the URL in the database, and execute the query as mentioned

$ mysql -u root -p
$ UPDATE core_config_data SET value=’http://example.com’ WHERE path=’web/unsecure/base_url’;

Step:7 Replace the user name, password, and URL as per the requirement and run the below command in the ubuntu server

php bin/magento setup:install –base-url=”http://example.com/setup/” –db-host=”localhost” –db-name=”magento2″ –db-user=”magento” –db-password=”magento@123″ –admin-firstname=”admin” –admin-lastname=”admin” –admin-email=”admin@example.com” –admin-user=”admin” –admin-password=”admin123″ –language=”en_US” –timezone=”America/Chicago” –use-rewrites=”1″ –backend-frontname=”admin”

Step 8: Once the 830 checks are completed we will receive the success message as mentioned below.

Step 9: Browse the URL http://examples.com/admin to get the login page of Magento2. Log in to the console as per the details mentioned in step 7

Leave a Reply