Hi,
Should I modify the Path to WordPress root directory to /site/ or just the root?
If you followed this article, then you need to change the path during the installation process. This is a very specific installation.
Otherwise, you don’t need to change anything.
Then what’s next? Should I rename the php.ivi to php5.ini?
According to Goddady “What filename does my PHP initialization file (php.ini) need to use” php5.ini is what you should use on shared hosting accounts, and .user.ini if you have your own dedicated/VPs server.
You may also need to wait a couple of minutes after the change.
Rename your php.ini accordingly, then edit the .htaccess file so that the line added by the installer (SetEnv PHPRC xxxxx) points to that new INI file.
ok so:
path directory : /html/site/
and php5.ini
Now I need to wait a few minutes now (cross fingers) 🙂
Well, it did not worked.
Should I install it to /html/ ?
How do you access your WordPress site?
1) http://domain.tld/
Or:
2) http://domain.tld/site/
If it is 1), then you must change the path during the installation.
If it is 2), do not change it.
You can download this script, rename the file to ninjacheck.php, upload it in your WP root folder, call it from your browser and paste here the output.
NinjaFirewall (WP edition) troublershooter v1.01
========================== %< ============================
HTTP server: Apache
PHP version: 5.3.24
PHP SAPI: CGI-FCGI
Loaded INI file: /web/conf/php5.ini
auto_prepend_file: none
user_ini.filename: .user.ini
user_ini.cache_ttl: 300
user INI: php5.ini found
PHPRC: /home/content/78/10529478/html/site/php5.ini
DOCUMENT_ROOT: /var/chroot/home/content/78/10529478/html
wp-config.php: error: cannot find wp-config.php
ABSPATH: error: unknown
WP version: error: unknown
WP_CONTENT_DIR: error: unknown
========================== %< ============================
so I guess i have to change the path to /html/
root wp is in /html/site but I access the site by /html/
I use “Pointing your home site’s URL to a subdirectory”
Yes, you need to change it.
I recommend to delete all NinjaFirewall directives added to your php5.ini and .htaccess files and re-run the installer.
During the installation, change the WP path, and select php5.ini.