Question

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

Posted November 6, 2021 35 views
CentOS 8

we installed lamp on centos 8 with mention below url
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-centos-8-quickstart

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 72.255.58.32:29428] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
@ ”

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.

×
Submit an Answer
1 answer

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