Skip to main content

WordPress Toolkit error Could not create new 'wp-config.php' file.

Comments

12 comments

  • cPRex Jurassic Moderator
    Hey there! Is it possible there is already a WordPress site or a wp-config.php file on the account? Although no sites are linked to WordPress Toolkit yet according to your screenshot, a manual installation that hasn't been linked is still possible, and that would cause this error. As a test, you could try installing WordPress in a different directory to see if that works well. If that does work, the problem is with something specific to the original installation directory.
    0
  • tpartzard
    Hey there! Is it possible there is already a WordPress site or a wp-config.php file on the account? Although no sites are linked to WordPress Toolkit yet according to your screenshot, a manual installation that hasn't been linked is still possible, and that would cause this error. As a test, you could try installing WordPress in a different directory to see if that works well. If that does work, the problem is with something specific to the original installation directory.

    I have installed it in a new directory and tested it on a new account, but still the same issue.
    0
  • cPRex Jurassic Moderator
    That's definitely odd - if you have root access could you open a support ticket with our team so we can take a look at this?
    0
  • tpartzard
    That's definitely odd - if you have root access could you open a support ticket with our team so we can take a look at this?

    Sorry, my company has a security policy for access. But if you want to see the configuration or log about it I can provide.
    0
  • cPRex Jurassic Moderator
    I did reach out to the WordPress Toolkit team, and they were also not familiar with this error. Our support team would be able to provide you with a list of IP addresses for server access, so you wouldn't have to open up SSH or WHM globally, if that would ease some concerns about submitting a ticket, but it seems we may be in uncharted territory here.
    0
  • tpartzard
    I did reach out to the WordPress Toolkit team, and they were also not familiar with this error. Our support team would be able to provide you with a list of IP addresses for server access, so you wouldn't have to open up SSH or WHM globally, if that would ease some concerns about submitting a ticket, but it seems we may be in uncharted territory here.

    I've already opened a ticket to your support team. The issue caused by imunify360 generated a rule preventing /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/config-command/src/Config_Command.php Thank you very much for support.
    0
  • cPRex Jurassic Moderator
    I'm glad we were able to help track that down!
    0
  • HostXNow_Chris
    I started noticing this issue. cPanel promotes Imunify360. Why on earth would Imunify360 start blocking a process from cPanel WordPress Toolkit!? It can make the web host look at fault. So the solution is to Ignore detected rules for those files Path: /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/wp-cli/vendor/wp-cli/config-command/src/Config_Command.php Rules: Auto Immunity rule generated on 2023-02-28 18:14:16.303399 Here's an idea, as cPanel/Imunify360 are partners, why don't cPanel ask Imunuify360 to whitelist the above automatically? :-p
    0
  • HostXNow_Chris
    Seems Config_Command.php is not the only process that is blocked. Checking further with Imunify360.
    0
  • cPRex Jurassic Moderator
    I don't hate the idea of being a bit more collaborative and seeing if we can fix some things before they are an issue, but let me know what Imunify has to say and we can go from there!
    0
  • HostXNow_Chris
    CloudLinux/Imunify360 have now corrected this on their product. Thank you for the provided information. We have added cpanel scripts to PHP Immunity whitelist. The rules on your server will be updated automatically.
    0
  • cPRex Jurassic Moderator
    Nice!
    0

Please sign in to leave a comment.