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

    7
    1
    3
    Mar 5, 2022
    Ratings:
    +5
    Local Time:
    11:56 PM
    10
    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 domain.com/en/ the vhost and wp_updater uses domain.com (and maybe other things too?). So if I want to do a second wordpress installation at domain.com with subdirectory /deu/ for example, it fails because "vhost for domain.com already exists".

    If in the installation, if subdirectory=true, it would add the subdirectory to all created files (for example: wp_updater_domain.com-deu and domain.com-deu.ssl.conf), 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

    49,869
    11,482
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,834
    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 centmin.sh 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 domain.com/blog1, domain.com/blog2 use blog1.domain.com and blog2.domain.com