New wordpress keep redirecting to localhost/wp-admin/install.php

IN my fresh wordpress install via docker. Everytime i hit localhost it gets redirected to http://localhost/wp-admin/install.php

Now its missing the wp , the url should be http://localhost/wp/wp-admin/install.php

My Env variable is like this

WP_ENV=development
WP_HOME=http://localhost/wp
WP_SITEURL=${WP_HOME}/wp

my apache vhost file is

VirtualHost *:80    
    ServerName  http://localhost
    DocumentRoot ${APACHE_DOCUMENT_ROOT}
    Directory ${APACHE_DOCUMENT_ROOT}
        AllowOverride all
    /Directory
    CustomLog /var/log/apache2/local-access.log combined
    ErrorLog /var/log/apache2/local-error.log        
/VirtualHost

Topic docker apache Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.