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

Question

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>

0
kgill 3 months 2022-05-22T23:48:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse