Can't access website hosted by raspberry pi - raspberry-pi

I am trying to see a website hosted on my raspberry pi with apache2, but when I enter 'locahost' or '127.0.0.1' in my browser, it says :
This site can not be reached
127.0.0.1 refused to connect
How do I fix this?

Related

The Python http server not working in local network

I´ve tried to start the python server with the following command python -m http.server and it says serving... so it should be working. I have this in a VM Linux maschine and the network adapter is set to bridged. When I access the localhost on port 8000 on the linux maschine the server is running on I can get access to the site and all the folders which the server serves but the problem is that I can´t access the site on any other VM nor the host maschine via the IP adress 192.168.2.206:8000 . The site is simply not loading. Can someone tell me whats wrong? I´ve also checked the firewall settings and allowed it for chrome. But this is not working as well.

No SSH on headless Raspberry Pi Zero 2 W first boot

Following the instructions at Alpine Wiki - Raspberry Pi - Headless Installation
I was able to get the Pi to boot up and connected to WiFi. I am able to ping it from my laptop, but not able to SSH into it as root. I keep getting the ssh: connect to host <raspberry-pi-ip-addr> port 22: Connection refused error.
Scanning with Nmap shows no ports are open.
How do I get the SSH server to run?
Or at least enable logs and write to SDCARD such that I can look at what is going wrong.

Connect onlyoffice in cloud and nextcloud on raspberry pi?

I am trying to connect onlyoffice which is running in the cloud to raspberry pi which is at my place.
but is not connecting in logs :
GuzzleHttp\Exception\ConnectException: cURL error 28: Connection timed out after 60001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
so how can I solve this?

Unable to connect to Raspberry Pi via a Ethernet connection

I've purchased a RaspberryPi 3 B+, booted a NOOBS Raspbian and I've been trying to open a ssh connection via an Ethernet connection for the last couple of days. My goal is to be able to access the Pi via ssh while also sharing my Wifi connection to the Pi. My machine is running Ubuntu 18.04.01.
So far I've tried creating a new Profile for the Ethernet connection but without success. The only way the connection can be "successfully" created is by checking the "Link-Local Only" box, which will add "169.254.154.221" to my IP addresses. However, the Pi can't be found on the local network (pinging raspberrypi.local fails and an nmap scan doesn't return any good results).
Also, when I was first trying to connect the Pi, I was able to see it by executing "arp -a" in terminal, but now it is gone.
I've also tried connecting the Pi to my friend's Macbook and the Pi gets a local IP address, but it is still not possible to share the laptop's internet access to the Pi.

port 22: Permission denied on raspberry 3b

I have installed the 2017-11-29-raspbian-stretch on raspberry 3b, and created a file named ssh in boot directory in SD card, then connected mac with raspberry with an Ethernet cable, I have also turned on Sharing from wifi to Ethernet on mac, but when I wanted connect with raspberry with ssh ssh pi#192.168.2.255 it says "ssh: connect to host 192.168.2.255 port 22: Permission denied".
I have no HDMI cables, what I should do to connect using ssh without visible devices?
It turned out that the Ethernet cable is broken...
Sorry for this question.