Hi,
You mentioned 2 different user accounts: /home/jibberish/ and /home3/yrqvp5a2/.
Unless this is a typo, you cannot use the PHP INI file from one account with another one.
According to Hostgator doc, it seems you need to use the php.ini file that is located above the /public_html/ folder.
You would need to:
-copy the code added by NinjaFirewall to the /public_html/php.ini and paste it into the hostgator php.ini.
-delete the /public_html/php.ini file created by NinjaFirewall.
-edit the /public_html/.htaccess so that the SetEnv PHPRC line points to the new php.ini.
It may take a couple of minutes before your server applies the new changes. Then click on the NinjaFirewall menu to see whether it is loaded or not.
Note that if one day you wanted to delete NinjaFirewall, you would need to remove the changes from the php.ini first, before deleting it from the WordPress plugin page otherwise your site would crash.
Thread Starter
kate.t
(@katet-1)
Now that you mentioned it, I noticed I have 2 php.ini files and 3 .htaccess files in the public_html folder
Should I delete the extra php.ini and .htaccess files?
I would only keep the Hostgator php.ini and the main public_html/.htaccess.
If you want to know which php.ini is/are being used by your site, you can upload a phpinfo.php file in the public_html folder and call it from your browser
Thread Starter
kate.t
(@katet-1)
Thank you for being so patient with me thus far.
I’m very close to setting it all up already, I’ve deleted the extras .htaccess and php.ini and found the actual php.ini
I opened up the php.ini and it looks super intimidating.
I just want to double check on where should I add the 3 lines of NinjaFireWall code?
On top? Below? or anywhere will do?
Thread Starter
kate.t
(@katet-1)
I took the plunge and added the 3 line code to the bottom of the php.ini file.
Worked!
Thanks! You are fantastic