I have a server from AWS EC2 service running on Linux Ubuntu and I have installed Apache, PHP, and MySQL.
I have added a .htaccess file in my document root /var/www/html.
I entered this code in it: ErrorDocument 404 /var/www/html/404.php and it is still not showing up.
I kept entered this command multiple times: sudo service httpd restart to restart the server but no changes displayed...
How to fix this?