• Resolved indigetal

    (@indigetal)


    Hi Guys,
    So I’ve migrated away from a LiteSpeed web server to a full Nginx web server and I see that the .htaccess file with the rewrite rules is not compatible with Nginx. I found the instructions at https://www.wp-hide.com/documentation/setup-the-plugin-for-nginx/ that explain that pro version and manual input of rewrite rules in a config file is needed. I already do have a license, but the instructions also assume that I have access to the WP Dashboard. My site is down since I migrated and the error logs show a “Failed to Open Stream: Permission Denied” caused by WP Hide, so I can’t simply access the rewrite rules for nginx in the settings page. I do have access to the .htaccess file and I attempted to copy/paste those into the nginx config file but it threw an error right away so I removed them.

    (Also worth noting that I cannot seem to ever get in contact with pro support on the site but I’ve had nothing but luck here and it’s kind of an emergency)

    • This topic was modified 4 years, 5 months ago by indigetal.
    • This topic was modified 4 years, 5 months ago by indigetal.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    Sorry but our support person (Elize) already replied to your message, might be delivered on your spam? Here’s there reply:

    Actually the rewrites you currently have can be used on Apache/LiteSpeed systems, the Nginx requires a different syntax, so can’t use the same rewrites.
    You will need to access the admin dashboard and copy the new rewrites from the plugin Setup interface. More details on how to deploy for Nginx can be found at https://www.wp-hide.com/documentation/setup-the-plugin-for-nginx/

    However the current error failed to open stream: permission denied is not related to the plugin or the rewrites, it should be caused to the WordPress files ownership (chown), so the system can’t run the files.
    You should find more details about the problem searching on google.

    Since this forum is for the free code, can you contact us from an alternative email, to ensure there isn’t an issue sending between the current addresses?

    Thanks

    Thread Starter indigetal

    (@indigetal)

    Hi tdgu,
    I’ve sent several test emails through the form at wp-hide.com but the issue with receiving responses from support has been ongoing for several months now and there is no known issues with my email account. As for the permissions, I looked up the recommended permissions for the WP files in question (wp-config.php 440, wp-settings.php 644, and wp-includes/load.php 644) and they are now stricter than what was there. I don’t know what the recommended permissions are for the wp-hide files in question or if that’s an issue at all, but the exact log error message is:

    2020/09/24 22:55:28 [error] 28735#28735: *946 FastCGI sent in stderr: "PHP message: PHP Warning: include_once(/home/mysite/webapps/mysite/wp-content/plugins/wp-hide-security-enhancer-pro/include/wph.class.php): failed to open stream: Permission denied in /home/mysite/webapps/mysite/wp-config.php on line 83PHP message: PHP Warning: include_once(): Failed opening '/home/mysite/webapps/mysite/wp-content/plugins/wp-hide-security-enhancer-pro/include/wph.class.php' for inclusion (include_path='.:') in /home/mysite/webapps/mysite/wp-config.php on line 83PHP message: PHP Warning: include(/home/mysite/webapps/mysite/wp-content/advanced-cache.php): failed to open stream: Permission denied in /home/mysite/webapps/mysite/wp-settings.php on line 95PHP message: PHP Warning: include(): Failed opening '/home/mysite/webapps/mysite/wp-content/advanced-cache.php' for inclusion (include_path='.:') in /home/mysite/webapps/mysite/wp-settings.php on line 95PHP message: PHP Warning: require_once(/home/mysite/webapps/mysite/wp-content/db.php): failed to open stream: Permission denied in /home/mysite/webapps/mysite/wp-includes/load.php on line 470PHP message: PHP Fatal error: require_once(): Failed opening required '/home/mysite/webapps/mysite/wp-content/db.php' (include_path='.:') in /home/mysite/webapps/mysite/wp-includes/load.php on line 470" while reading response header from upstream, client: 75.177.73.185, server: mysite.org, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/mysite.sock:", host: "mysite.org"

    wph.class.php is currently set to 644 and all the associated folders are set to 755.

    • This reply was modified 4 years, 5 months ago by indigetal.
    Thread Starter indigetal

    (@indigetal)

    I got a message from Elize in my alternative yahoo account. The replies might be getting tossed out altogether by zoho as definitely spam so I’ll have to adjust the spam settings to get them there I guess…

    Thanks,
    Brandon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Migrating from LiteSpeed Server to Nginx’ is closed to new replies.