Changing the web id

Discussion in 'General' started by emad, May 21, 2017.

  1. emad

    emad Member

    How could I set the new site web_id (just the id) when I'm about to create it ?
    I can't find like this setting in ISPCofig. Should I do this through ISPConfig db, if so, How?
     
  2. emad

    emad Member

    For example with the default behavior the newly created site path will be
    /var/www/clients/client(x)/web(y)
    I want web(y) to be web(z).
     
  3. emad

    emad Member

    For anyone comes later I found this answer here but it was for ISPConfig 2, so I tried to figure out the corresponding one for ISPConfig 3 and it is :
    Code:
    ALTER TABLE web_domain AUTO_INCREMENT = 15;
     
  4. ahrasis

    ahrasis Member

    Note that in doing this, you might mess up your database table too.
     
  5. emad

    emad Member

    I made a backup of the ISPConfig database before touching it, after the query I downloaded the web_domain table to make a comparison against the backup to confirm nothing changed except the auto_increment and it was right.
    @ahrasis Thank you for the notice.
     

Share This Page