Join the community today
Become a Member

Install Wordpress WordPress subdirectory installation -> vhost already exists

Discussion in 'Feature Requests & Suggestions' started by JMX, Mar 14, 2023.

  1. JMX

    JMX New Member

    Mar 5, 2022
    Local Time:
    11:56 PM
    Hi there,
    I'm not sure if I can call this a bug or if it falls into an improvement request.

    Since 123.09beta01 it is possible (LINK) to install WordPress into a subdirectory out of the box. This is a very handy functionality, but I think it could be improved.

    Even though, the installation is the vhost and wp_updater uses (and maybe other things too?). So if I want to do a second wordpress installation at with subdirectory /deu/ for example, it fails because "vhost for already exists".

    If in the installation, if subdirectory=true, it would add the subdirectory to all created files (for example: and, it would be possible to easily create many blogs under one domain (I think the main use case is language sub-sites). The only thing the user had to do would be merge the nginx configs into one.

    Just an idea :)

    Best, JMX

    PS: If you have an Idea how I can do the installation manually, please let me know. Currently I'm trying to backtrace everything that has been done for the first installation in /deu/ and replicate it for a manual installation into /en/.

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    8:56 AM
    Nginx 1.21.x
    MariaDB 10.x
    Yeah it's currently by design so not really a bug so moved your thread to appropriate forum :)

    I suppose it should be that hard to have a subdirectory if it exists check to allow menu option 22 Wordpress to re-run for subdirectory runs? Haven't tested such so that's why it isn't a feature right now. It would be easier to do subdomain installs for Wordpress so instead of, use and