Search code examples
magento2

Why do I get "Class "Magento\Backend\App\Request\PathInfoProcessor\Proxy" does not exist" when I install Magento 2?


I need your assistance, please!

I started installing Magento and used the following command line to initiate the setup:

php bin/magento setup:install --base-url="http://localhost/magento" --db-host="localhost" --db-name="magento" --db-user="root" --db-password="" --admin-firstname="admin" --admin-lastname="admin" --admin-email="[email protected]" --admin-user="admin" --admin-password="admin123" --use-rewrites="1" --backend-frontname="admin"

However, when I execute this command, I encounter the following error:

Class "Magento\Backend\App\Request\PathInfoProcessor\Proxy" does not exist

How can I resolve this issue?

Thank you!


Solution

  • This error is coming when there is some permission related issue, so try to provide appropriate permissions to Magento folder & files.

    For permission cmd, you can follow below commands :

    cd <your Magento install dir> 
    
    // 644 permission for files
    find . -type f -exec chmod 644 {} \; 
                       
    // 755 permission for directory
    find . -type d -exec chmod 755 {} \;    
    
    chmod 644 ./app/etc/*.xml
    
    chown -R :<web server group> .
    
    chmod u+x bin/magento