Apache HTTP Server stops working for only a certain local website

First open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag: define(‘WP_MEMORY_LIMIT’, ’64M’); We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host. Most likely, they would have to go in their … Read more

Virtual HostX and MAMP not working with WordPress

You’re wanting to use MAMP, but VirtualHostX shows that Apple’s built-in Apache is running. You’ll need to stop it by running this command in a Terminal window… sudo apachectl stop Then, start MAMP using their control panel and try again. Also, make sure “MAMP” is set as your “Default Web Server” in VirtualHostX’s Preferences window.

Caching plugins + mod_pagespeed = overkill?

It is hard to say whether it is overkill or not. Generally there are several type of caches need to be implemented, Opcache (for PHP codes), Query cache (for Database access), Object cache (for community type of website or shared server where content are constantly updated) and Page cache (for static content such as HTML). … Read more

WordPress page not accessible through WAN [closed]

WordPress keeps WP_HOME and WP_SITEURL in DB, this is set during initial installation and usually is the domain of your website, in your case it is a LAN IP. Your visiting site via WAN IP, but WordPress redirects to LAN IP, causing redirect loop which obviously fails. To fix this, change WP_HOME and WP_SITEURL values … Read more

post permalinks with dot in url don’t resolve to correct page template

I wound up using the index_template filter to load the right template when the CPT single page is being incorrectly redirected to the index and $_SERVER[‘REQUEST_URI’] contains the slug of the CPT. Like so: add_filter(‘index_template’, ‘wpse300393_resolve_cpts_with_dots_in_name’); function wpse300393_resolve_cpts_with_dots_in_name($templates=””){ if( strpos($_SERVER[‘REQUEST_URI’], ‘artwork’) !== false ){ $templates = locate_template( ‘single-artwork.php’ ); } elseif( strpos($_SERVER[‘REQUEST_URI’], ‘artist’) !== false … Read more

Forbidden You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server [closed]

I found out that the issue was on .htaccess file. I restored the file to the original wordpress config and it work fine again # BEGIN WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress Here is the … Read more

fix 302 redirection error on https

First, you should not customize anything between # BEGIN WordPress and # END WordPress, it’s just not a good practice. You should add your own rules above WP rules. And you should also make use of some flags, like “L”. # BEGIN Custom <IfModule mod_rewrite.c> Options All -Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTPS} !on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)