Hai

Hi,
My WP is at public_html, but for security, I moved the file wp-config.php to the parent folder
/home/mydomain.com/public_html
/home/mydomain.com/wp-config.php

So, How to edit your code above?

it seems to check whether the wp-config.php exists or not

fi
if [ ! -f "$1"/wp-config.php ]
then
echo "$1/wp-config.php does not exist. Did you specify the path to a WordPress install?"

Thanks

Thu, 02/11/2023 - 15:33 Permalink

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA