Skip to main content

WHM change the Default prefix for wp- wordpress site creation

Comments

4 comments

  • cPanelMichael
    Hello, It's not supported, but you can adjust the prefix value configured in:
    /usr/local/cpanel/cpaddons/cPanel/Blogs/WordPress.pm
    EX:
    table_prefix => 'wp234',
    Note that you will need to develop a script that automatically updates the value in this file anytime the cPAddon is refreshed or updated through the upcp process. Also, ensure you enable "Allow cPAddons Site Software installations from modified sources" under the "cPAddons Site Software" tab in "WHM >> Tweak Settings". Thank you.
    0
  • AthensMatt
    Thank you!
    0
  • AthensMatt
    Hello, It's not supported, but you can adjust the prefix value configured in:
    /usr/local/cpanel/cpaddons/cPanel/Blogs/WordPress.pm
    EX:
    table_prefix => 'wp234',
    Note that you will need to develop a script that automatically updates the value in this file anytime the cPAddon is refreshed or updated through the upcp process. Also, ensure you enable "Allow cPAddons Site Software installations from modified sources" under the "cPAddons Site Software" tab in "WHM >> Tweak Settings". Thank you.

    Michael, I don't seem to be getting the desired result. All files are still wp-"whatever" instead of wp234-"whatever". I've made the change to the WordPress.pm, and the tweak setting change. But each new test site I create has the conventional default naming. I'm assuming I'm making a small mistake somewhere. I've attached a pic for reference. Any assistance would be greatly appreciated! 27751 27761
    0
  • cPanelMichael
    Hello, I was under the impression you wanted to change the database prefix. You should consult with WordPress to see if changing the file names is supported:
    0

Please sign in to leave a comment.