Firewalld blocking all requests (after reboot)
systemctl start firewalld systemctl enable firewalld systemctl status firewalld firewall-cmd –reload
systemctl start firewalld systemctl enable firewalld systemctl status firewalld firewall-cmd –reload
There’s a 301 rule that’s redirecting to https
cd /etc/nginx/conf.d/vhosts sudo nano X.com.conf ADD: return 301 https://www.X.X$request_uri; (save) I.e. server { listen 176.31.193.41:80; access_log /var/log/nginx/access.yoursite.site.log; error_log /var/log/nginx/error.yoursite.site.log; server_name yoursite.site www.yoursite.site; root /public_html/yoursite.site; return 301 https://www.yoursite.site$request_uri; sudo nano X.X_ssl; ADD: if ($host !~ ^www\.) { rewrite ^ https://www.$host$request_uri permanent; } […]
To get your current working directory: echo getcwd(); (documentation) To get the document root directory: $_SERVER[‘DOCUMENT_ROOT’]; To get the filename of the current script: $_SERVER[‘SCRIPT_FILENAME’];
navigate to htdocs\public_html\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\ngglegacy\admin\manage-galleries.php Edit line 15 to whatever amount
Use an FTP client to navigate to <site_root>/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_addgallery_page/templates/upload_images.php Add the following code to the very top Main code snippet Code snippet in context
go to your databases’s wp-users table edit the user you want to modify In the password field, enter desired password, but use MD5 as field type log in! 😀
This is will go in your theme’s functions.php file define(‘WP_HOME’,’https://yourdomain.com’); define(‘WP_SITEURL’,’https://yourdomain.com’);
//Report all types of errors. define(‘WP_DEBUG’, true); //Don’t show errors to site visitors. define(‘WP_DEBUG_DISPLAY’, false); //Put logs in wp-content. CAUTION: Hacking hazard define(‘WP_DEBUG_LOG’, true); @ini_set(‘display_errors’,’On’); @ini_set(‘error_reporting’, E_ALL ); @ini_set ( ‘SCRIPT_DEBUG’, true ); @ini_set(‘log_errors’, ‘On’); @ini_set(‘error_log’, ‘/home/sage/xhub.fun.log’); // Simple, elegant /////////////////////////////////////////////////// // TODO: Explain “Simple, elegant” // TODO: Define top […]