This raspberry pi is on a network with IPv6 address. I have a ddns domain name and I correctly mapped the IPv6 address of raspberry pi. And correct firewall rules are placed on my router. I verified that apache2 landing page can be reachable from external network using the ddns domain name.
However when I try to access the wordpress website using the ddns name from an external network, it just spins indefinitely and page is not being loaded. (I can see it detected the site, but simply wont load full)
Any thoughts?
]]># Rewrite AVIFs
<IfModule mod_rewrite.c>
RewriteEngine On
# Check if AVIF is supported by the browser
RewriteCond %{HTTP_ACCEPT} image/avif
# Check if the .avif file exists
RewriteCond %{DOCUMENT_ROOT}/$1.avif -f
# Serve the .avif file content for the .webp request
RewriteRule ^(wp-content/uploads/.+)\.webp$ $1.avif [T=image/avif,E=accept:avif,L]
</IfModule>
# Rewrite AVIFs END
You can safely add that into your plugin, that rewrite is working in main WordPress folder.
]]>Can you add the option to disable automatic purging in the backend of the plugin with check/uncheck? I need ability to manually purge the cache using a button in the WordPress admin bar.
I have a few websites configured with Caching and Hestia NGINX Cache. Apache2 and NGINX are going to restart itself every minute (sometimes seconds) with every change on the sites on the same server.
Is it good for the server, speed, and performance?
Thanks!
]]>I’ve tried this with the other site templates and the same error happens.
Is it an environment issue? A setting? I installed/followed Astra’s troubleshooting guide about resources, etc. already, no joy.
The environment seems well enough as I can install OceanWP demo sites just fine, all working.
{ “message”: “There was an error on your website.”, “stack”: { “error-message”: “Uncaught Error: Typed property DOMElement::$tagName must not be accessed before initialization”, “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-wxr-importer.php”, “line”: 1613,
“trace”: [ { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-wxr-importer.php”, “line”: 310, “function”: “parse_author_node”, “class”: “WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-astra-wxr-importer.php”, “line”: 445, “function”: “get_preliminary_information”, “class”: “WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/importers/wxr-importer/class-astra-wxr-importer.php”, “line”: 419, “function”: “get_data”, “class”: “Astra_WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-content/plugins/astra-sites/inc/classes/class-astra-sites-importer.php”, “line”: 559, “function”: “get_xml_data”, “class”: “Astra_WXR_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/class-wp-hook.php”, “line”: 324, “function”: “prepare_xml_data”, “class”: “Astra_Sites_Importer”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/class-wp-hook.php”, “line”: 348, “function”: “apply_filters”, “class”: “WP_Hook”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-includes/plugin.php”, “line”: 517, “function”: “do_action”, “class”: “WP_Hook”, “type”: “->” }, { “file”: “/var/www/wp_tiarani/wp-admin/admin-ajax.php”, “line”: 188, “function”: “do_action” } ] } }
]]>I have installed wordpress in the apache ingrastructure.
It is a AWS server, at EC2.
I have installed the wordpress via several different tutorials online each. And it seems i get the same results, as the method of insstall isnt causing hte error.
Originally i could open phpmyadmin, but after hte wordpress inbstall, i cant open it at integritytoysales.net/phpmyadmin, or the IP/phpmyadmin either.
I need to access php my admin, as im trying to update my wordpress user password. For some reason the last four independant wordpress intalls seem to lock me out of wp-admin, somehow the password isnt recognised.
It seems the home page is insecure, and the form on wp-admin is insecure too, through SSL. I have made the AWS SSL certificate, anyway for this problem i am consulting with AWS staff now.
Hoping you can help with accessing phpmyadmin so i can update my password…
Happy New Year
Steve
I’ve got myself a blade server running in my garage, and wanted to help out a friend that needed to setup a multisite. I’ve done this a million times before so no biggie.
The network is setup as such, because of only having one outgoing IP address:
[INTERNET] <-> [REVERSE PROXY] <-> [WORDPRESS HOST]
Turns out though, that when behind a reverse proxy, the WP installation has problems connecting to its own API as well as to www.remarpro.com, it only times out after a couple of seconds:
(http_request_failed) cURL error 28: Resolving timed out after 10000 milliseconds
The API is perfectly accessable from outside the host, as well as www.remarpro.com and it works perfectly as single site behind the proxy. So something about the multisite redirectioning I believe is wonky.
This is the Nginx configuration on proxy (works on single site):
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name THE_WORDPRESS_MULTISITE;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_certificate /etc/letsencrypt/live/THE_WORDPRESS_MULTISITE/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/THE_WORDPRESS_MULTISITE/privkey.pem;
gzip on;
gzip_min_length 10240;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";
add_header Cache-Control public;
location / {
proxy_pass https://THE_WORDPRESS_MULTISITE_IP:80;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header Proxy "";
}
}
server {
if ($host = THE_WORDPRESS_MULTISITE) {
return 301 https://$host$request_uri;
}
server_name THE_WORDPRESS_MULTISITE;
listen 80;
return 404;
return 301 https://$host$request_uri;
}
This is the Apache config on the WordPress host (works on single site):
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName THE_WORDPRESS_MULTISITE
DocumentRoot /var/www/wordpress
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/wordpress>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This is the WP-CONFIG on the WordPress host:
<?php
// ** Handle reverse proxy, passing the IP to the server.
// ** This is used by some plugins to fetch the user's IP.
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
$_SERVER['REMOTE_ADDR'] = $ips[0];
}
// ** Handle SSL reverse proxy
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
?>
<?php
[...] // Default WordPress configuration
/* Add any custom values between this line and the "stop editing" line. */
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'DOMAIN_CURRENT_SITE', 'THE_WORDPRESS_MULTISITE' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
/* That's all, stop editing! Happy publishing. */
[...] // Default WordPress configuration
Can someone hint me towards a solution?
]]>Any help is much appreciated.
]]>On a default Apache2 installation the plugin breaks the site with a 500 error with the following details:
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
That’s caused by the following line added to the .htaccess file by WP-Optimize:
Header append Vary User-Agent
The above line assumes that mod_headers is going to be available for any Apache2 installation, and therefore causing the error 500 if mod_headers is not available. This module is not enabled by default.
Using IfModule before the above line, as WP-Optimize does for other Apache2 modules, solves the issue:
<IfModule mod_headers.c>
Header append Vary User-Agent
</IfModule>
A better alternative could be to remove that from the .htaccess and let WordPress take care of adding the header when the server allows it:
function wpo_add_vary_header( $headers ) {
$headers['Vary'] = 'User-Agent';
return $headers;
}
add_filter('wp_headers', 'wpo_add_vary_header');
Would be great to see any of the above fixes added to the plugin.
]]>Would like some advices on how to fix this and\or filter malicious requests to my DB, if that is the issue here…
]]>The wordPress dashboard is accessible. However, the following error messages are displaying in the dashboard
I already added
define( ‘FS_METHOD’, ‘direct’ );
line to the wp.config.php, but it won’t fixed the eroor
I also changed file permission using the following ubuntu commands
chmod 755 wp-admin
still no luck.
I can’t upload anything to the WordPress website and can’t edit it.
]]>