#1045 – Access denied for user ‘root’@’localhost’ (using password: YES)

I first changed the root password running mysql at a prompt with mysql -u root -p Update password: UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=”root”; Edited line in the file config.inc.php with the new root password: $cfg[‘Servers’][$i][‘password’] = ‘MyNewPass’ Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat) and got phpMyAdmin to work! EDIT 2017: for MySQL≥5.7 … Read more

Cannot bind to some ports due to permission denied

The reason is that Hyper-V takes over these ports, to prevent it from happening do the following: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V (will have to restart) netsh int ipv4 add excludedportrange protocol=tcp startport=<your port> numberofports=1 dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All The original solution is here. If after that you still can’t bind to the port do the following: … Read more

Programmatically create a web site in IIS using C# and set port number

If you’re using IIS 7, there is a new managed API called Microsoft.Web.Administration An example from the above blog post: ServerManager iisManager = new ServerManager(); iisManager.Sites.Add(“NewSite”, “http”, “*:8080:”, “d:\\MySite”); iisManager.CommitChanges(); If you’re using IIS 6 and want to do this, it’s more complex unfortunately. You will have to create a web service on every server, … Read more

Containerized Node server inaccessible with server.listen(port, ‘127.0.0.1’)

Your ports are being exposed correctly but your server is listening to connections on 127.0.0.1 inside your container: http.createServer(function (req, res) { res.writeHead(200, {‘Content-Type’: ‘text/plain’}); res.end(‘Hello World\n’+new Date); }).listen(1337, ‘127.0.0.1’); You need to run your server like this: http.createServer(function (req, res) { res.writeHead(200, {‘Content-Type’: ‘text/plain’}); res.end(‘Hello World\n’+new Date); }).listen(1337, ‘0.0.0.0’); Note the 0.0.0.0 instead of … Read more

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

There are many possible answers for this problem. The most common and most likely is that you’re running another program which is blocking port 80 or 443. If you’ve installed Skype, then you’ve found your problem! Change apache’s port settings to 81 and apache will work. There’s a good tutorial on that To check this … Read more