This site can’t be reached || Connection refused to connect.

we installed lamp on centos 8 with mention below url

Installation done successfully and got “HTTP SERVER TEST PAGE”.

After this we configured CodeIgniter Application on it under “/var/www/html/appName”

Problem is when i call this app through browser its show error “This site can’t be reached”

i have no idea where to go kindly help me out.

Error Log shows "forbidden by Options directive [Sat Nov 06 09:20:11.075134 2021] [autoindex:error] [pid 19705:tid 140037081466624] [client] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive @ "


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there!

This sounds like a folder permission issue. If you followed that guide the Apache installation should have created the /var/www/html folder already. To remedy this you may need to run sudo chown -R user.user /var/www/html/ where user is the user you are running your Apache webserver as. In the guide it has that set to use sammy as the user and group, but that user won’t exist and is just an example on changing folder permissions. You would need to change those permissions to your system’s username and group.

Hope it helps! Nate