I have a Linux Ubuntu Server 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 ...
i checked this post (https://monovm.com/blog/what-are-htaccess-files-and-their-uses/) on the Internet and learn about .htacess file but i think this is not solve my problems,
How can I fix this ... Did I do something wrong?
Thanks in advance!