• Resolved Roberto Jobet

    (@robertojobet)


    Hi,

    Just migrated a WP site and I’ve noticed in Apache’s log the following warning:

    WARNING: Got error ‘PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/omxxxxx/example.com/wp-content/plugins/ninjafirewall/lib/firewall.php) is not within the allowed path(s): (/var/www/vhosts/example.com/:/tmp/) in /var/www/vhosts/example.com/httpdocs/wp-content/nfwlog/ninjafirewall.php on line 6’, referer: https://www.example.com/wp-admin/?sucuriscan_lastlogin=1

    Thanks

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    It looks like there are two paths to your vhost (the real path and what is probably a symlink). Can you check your PHP INI file and add the “/home/omxxxxx/example.com” path to the existing open_basedir restriction list?

    Plugin Author nintechnet

    (@nintechnet)

    Sorry, I missed that you migrated your site! It looks like you migrated it without re-installing the firewall as indicated in the doc, which would explain why the firewall still used the old document_root path.

    Can I migrate my site(s) with NinjaFirewall installed?
    In order to migrate your site, follow these steps:
    1. Export your NinjaFirewall configuration from the “Firewall Options” menu.
    2. With your FTP client, download its log and cache folders located in /wp-content/nfwlog/.
    3. Uninstall NinjaFirewall.
    4. Migrate your site.
    5. Upload its /wp-content/nfwlog/ folder to your new site (unless you already copied it during the blog migration).
    6. Install NinjaFirewall.
    7. Reimport its configuration from the “Firewall Options” menu.
    Note: “File Check” configuration cannot be exported/imported, it will have to be reconfigured.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warnings in Apache’s log files’ is closed to new replies.