One of my sites just had this issue. The permissions on .htaccess
were set to 404 and the entire site went down without notice. It’s a standard Media Temple VPS.
Server Type: Apache
Operating System: Linux
Server API: cgi-fcgi - Your Host Server is using CGI.
Network/Multisite: Multisite: Multisite is Not enabled
I can’t send in the DNS name because the client has strict security/privacy policies for this site, but I can’t continue using the plugin if it’s going to regularly crash the site.
Can you please add a filter around the code that does the chmod? e.g.,
$chmod404 = apply_filters( 'bps_chmod_404', true );
if ( $chmod404 && ( substr($sapi_type, 0, 3) == 'cgi' || substr($sapi_type, 0, 9) == 'litespeed' || substr($sapi_type, 0, 7) == 'caudium' || substr($sapi_type, 0, 8) == 'webjames' || substr($sapi_type, 0, 3) == 'tux' || substr($sapi_type, 0, 5) == 'roxen' || substr($sapi_type, 0, 6) == 'thttpd' || substr($sapi_type, 0, 6) == 'phttpd' || substr($sapi_type, 0, 10) == 'continuity' || substr($sapi_type, 0, 6) == 'pi3web' || substr($sapi_type, 0, 6) == 'milter') ) {
chmod($filename, 0404);
}}
That way I can write a small functionality plugin to disable the chmod.
Otherwise, I’ll have to switch to a different plugin, but I’d prefer to continue using BPS.