I cannot access Apache server on another folder, this command I use

sudo chmod -R 777 /var/www/html/

However, in the HTML folder I create another folder named Exe, and I use this command sudo chmod -R 777 /var/www/html/Exe/ when I start on my browser localhost/index.php it comes out error 404

P.S I can not rename or delete folder HTML or add folder in var directory.

New contributor
F.Živković is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Hi F.Živković, welcome to Ask Ubuntu. Your question looks like it relates more to Apache than it does to Ubuntu, if you are indeed using Ubuntu please include what version, e.g. 18.04, 16.04 etc. in your question. Regardless you might get better help over at Super User so I would encourage you to post there. – Hugo Jan 12 at 17:55
  • Hi F.Živković! If the document root directory is set to /var/www/html/, you should be able to access the application/page inside the 'Exe' directory at localhost/Exe. – RoseHosting Jan 14 at 8:54

Your Answer

F.Živković is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.