1. A website returns
500 - Internal server error . All others sites work fine.
From the domain logs, the following error appears:
# tail -f /var/www/vhosts/example.com/statistics/logs/error_log
/var/www/vhosts/example.com/httpdocs/.htaccess: RewriteRule: bad flag delimiters
2. Website preview returns 500 - Internal server error. The following error appears in
[core:alert] [pid 19863:tid 140445831055104] [client 127.0.0.1:48654] /var/www/vhosts/example.com/public_html/.htaccess: Invalid command 'suPHP_ConfigPath', perhaps misspelled or defined by a module not included in the server configuration
[core:alert] [pid 19863:tid 140445831055104] [client 127.0.0.1:48654] /var/www/vhosts/example.com/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
The command 'suPHP_ConfigPath' refers to a non-existent directory:
# grep suPHP_ConfigPath /var/www/vhosts/aknsolutions.com/public_html/.htaccess
root@server:~# ll /home/aksol5/public_html
ls: cannot access '/home/aksol5/public_html': No such file or directory
According to the error is with the file
.htaccess files provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
PHP directives are not supproted by
.htaccess file if PHP is not running as an Apache module.
Rename the .htaccess file to
/var/www/vhosts/example.com/httpdocs/.htaccess_backup and check the access to website and domain logs once again.
If it didn't help check the article [HUB] 500 - Internal Server Error