Server can not be found using Laravel Valet - nginx

I have followed the instructions to install Laravel Valet. No errors during installation and when pinging foo.test it seems to work:
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.079 ms
Have linked a folder with valet link and secured it. But when trying in the browser I get the "Server not found..." error. But, pinging it works(?):
PING produktbild.test (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.078 ms
Have installed and restarted Valet several times. The output from brew services list is:
valet restart
Restarting dnsmasq...
Restarting php...
Restarting nginx...
Valet services have been restarted.
brew services list
Name Status User File
dnsmasq error 512 root ~/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist
nginx none root
opensearch none
php none root
Why is it a "error" status for dnsmasq and "none" on nginx? And most important, how to solve it?
ADDED 1: I previously had MAMP Pro installed. It is uninstalled and settings reverted - I think...
/Magnus

Related

Laravel valet on Apple Silicon Failed to connect Connection refused

I have just installed Laravel valet for the very first time on Apple Silicon M1 and I can't get it to work.
I have followed all possible actions in all kind of forums (SO, github) and nothing works.
The error I see is right when I want to serve a Laravel app using valet:
valet open mysite.test
I see in the browser:
cannot connect to website
Also, if I try curl in the terminal, I get:
❯ curl -IL https://mysite.test/
curl: (7) Failed to connect to mysite.test port 443 after 5 ms: Connection refused
However, if I ping it, I do get response
❯ ping https://mysite.test
PING https://mysite.test (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.045 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.173 ms
valet config.json
{
"tld": "test",
"loopback": "127.0.0.1",
"paths": [
"/Users/me/.config/valet/Sites",
"/Users/me/development/laravel/code"
]
}
dnsmasq.d/tld-test.conf
address=/.test/127.0.0.1
listen-address=127.0.0.1
Note
I also got Docker Desktop running to run a MySQL instance ... maybe that's causing conflicts in my network? as described here
What am I missing?
How do I fix it?

Not showing pages of WordPress installed site on localhost

I have installed three WordPress sites on a WAMP localhost:
localhost/pacific_ocean
localhost/surfing_new
localhost/construction
Everything was working yesterday. Today, when I go to the above url's, the screen is blank white, and the WordPress installed site is not showing.
1.) I have checked options.php and it is pointing the site url is fine: http://localhost/pacific_ocean/
2.) I have run 'netstat -abno' on an administrator command prompt and it shows that [httpd.exe] is running on port 80
Then I ran httpd.exe -e warn and here's what I got:
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
Is httpd.exe getting in the way of Apache running or is this another issue?
One of the sites shows /index of folders, but that's it.
Can someone help me?
Thanks!

Unable to access a URL that I can see is live from a proxy

I'm trying to install Homebrew on my Mac. When I run, the install script, I get:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
However, I can see from proxies that https://raw.githubusercontent.com/Homebrew/install/master/install is live. It won't load for me in Chrome either, so I can tell the problem is at my end.
I'm on a home network, so no proxies applicable.
When I ping raw.githubusercontent.com locally, I get:
PING raw.githubusercontent.com (90.207.238.183): 56 data bytes
64 bytes from 90.207.238.183: icmp_seq=0 ttl=252 time=13.273 ms
64 bytes from 90.207.238.183: icmp_seq=1 ttl=252 time=10.497 ms
How can I figure out what's going wrong?
So turns out that Sky (my webhost) were blocking github as a fraudulent site. Unblocking via Sky Broadband Shield fixed the issue.
http://helpforum.sky.com/t5/Broadband/githubusercontent-com-blocked-by-Sky-Broadband-Shield/td-p/2722951

FileZilla: able to connect via SFTP, but failed to list directories

I used FileZilla to connect to one of my Linux servers via the SFTP protocol, but got below error stack trace.
Status: Connecting to <server_ip>...
Response: fzSftp started, protocol_version=5
Command: keyfile "C:\ruifeng_ibm.ppk"
Command: open "root#<server_ip>" 22
Status: Connected to <server_ip>
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server
On the server when I ran lsof -i, I was able to see the established sshd connection.
sshd 12333 root 3u IPv4 109406 0t0 TCP <server_hostname>:ssh-><workstation_ip>:54315 (ESTABLISHED)
How could the directories not be listed when the connection is successful? No idea how to debug either.
Turned out to be a silly problem.
I put below welcome message in the .bashrc file.
echo -e "\n\nHello Ruifeng...Welcome to the Arena! \n#>>------>---->>"
Either it contained some illegal characters FileZilla does not honor, or it's completely not supported by FileZilla. Too lazy to further dig in. After removing this message, the connection worked and the directories got listed.

Gitlab stop working after instal iRedMail

I have a little problem.
I have VPS with debian 8. I have installed on it apache2 serwer and gitlab ce with default settings.
My serwer work on port 80 and my gitlab worked on 81 ( external_url ).
Everything stop working when i installed iRedMail.
Now I have uninstalled iRedMail but gitlab doesn't work.
After use command "gitlab-ctl restart" all packages are ok (gitlab-workhouse, logrotate, nginx, postgresql, redis, sidekiq, unicorn), but If i try to open site with gitlab, I have got error the page timeout.
What and how should check to solve this problem?
I have to add that I hace checked listen ports and nginx are in this list.
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 4534/nginx
---------- EDIT
"stop working" = after I type "external_url" (which worked) I got "Connection timed out".
I have checked logs in /var/log/gitlab for
gitlab-rails, gitlab-shell, gitlab-workhorse, nginx etc.
In gitlab-rails folder I found files : production.log (clear) and sidekiq.log. There are many of ERRORS ( I paste 2 first line, next are similar ):
2015-12-14_14:57:44.37657 2015-12-14T14:57:44.376Z 14796 TID-daijk ERROR: Error fetching message: No such file or directory - connect(2) for /var/opt/gitlab/redis/redis.socket
2015-12-14_14:57:44.37672 2015-12-14T14:57:44.376Z 14796 TID-daijk ERROR: /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/redis-3.2.1/lib/redis/connection/ruby.rb:180:in `connect_nonblock'
I Have to add that my apache server works fine on :80.

Resources