• Resources
  • Changing the table prefix when creating a WP site

I don't know if this information is widely known, but there is a setting in the /etc/wo/wo/conf file that controls whether or not wo site create prompts for a table prefix to be used in place of the default 'wp_' when creating the database tables.
It's at line 64 in the [wordpress] section, change the value for the 'prefix' setting from the default 'false' to 'true'.
There are also settings there to supply the default values for the site administrator username and email, which I found useful as these are standard for all sites I create. Happy days!
I think that a description of the settings in this file would be a useful addition to the documentation. I'm happy to do an initial write-up can anyone advise how I get to submit such an article for inclusion?

    grl570810 I think that a description of the settings in this file would be a useful addition to the documentation. I'm happy to do an initial write-up can anyone advise how I get to submit such an article for inclusion?

    It's actually pretty easy to edit the documentation. There's a section on the 'Contributing to WordOps' page about improving documentation here:-
    https://docs.wordops.net/about/contributing/#improve-documentation
    The docs do generally need improving and more detail added, so anyone with time to contribute it's an easy way without having to know code.

      8 months later

      I think the answer is here https://github.com/WordOps/WordOps/blob/master/config/wo.conf

      Just change the configuration below

      [upl-image-preview url=https://community.wordops.net/assets/files/2023-12-07/1701939123-155207-wordopsconfigwoconf-at-master-wordopswordops-github-071220231551.jpg]
      Ask for WordPress prefix while site creation
      prefix = False

      change the value = true

      Hosted by VirtuBox