Blog

Solved – Error while installing magento 2.4.1/2.4.2 with php8

 

Hello Readers,
Can we INSTALL MAGENTO2 with PHP 8?
The ANSWER to this question is NO. Magento2 does support PHP 8 yet.
What if we still INSTALL MAGENTO2 with PHP8, will it work smoothly?
In this article, we are going to talk about the error which we generally face while installing MAGENTO2 with PHP8. MAGENTO2 developers asks – “I am installing MAGENTO 2.4.x with PHP 8 and it is giving me following error
Deprecated: Method ReflectionParameter::getClass() is deprecated inC:\xampp\htdocs\m2\vendor\magento\framework\Code\Reader\ClassReader.php on line 34

Solution –

MAGENTO2 does support PHP 8 yet. So you will need to download the PHP 7.4 version instead of PHP 8.0 for MAGENTO2 installation.

Before starting the installation, you can check the system requirement for installing Magento2 here.

If you are working on Windows then you can download latest Xampp version from below link.

>Download Xampp herehttps://www.apachefriends.org/download.html

 

Don’t Download Xampp of PHP version 8, otherwise you will get the “Magento\Backend\App\Request\PathInfoProcessor\Proxy” does not exist” while running magento install command.

You can INSTALL Magento2 from below links-

You can watch this video for exact solution –

 

Do comment below if you need any help on magento2.

Happy Learning !!

Leave a Reply

Your email address will not be published. Required fields are marked *