Some links refers to localhost but hosts file is fine - windows

I am not sure what tags to add on this question. I will describe my situation as well as I can.
I open the virtual hosts at the chrome, run the phpstorm, read php code. After I searching the question of the code, then I refresh the page, and I am in trouble.
It is so sudden which is never happened before. I tried to figure out what is going on, but I got nothing.
All I know is some links refers to localhost automaticly and I have no idea about it.
The problem website is https://www.iviewui.com/docs/guide/install as far as I know.
I press f12, switch to Network panel and get these.
It seems https://file.iviewui.com/dist/main.9011c9acade2093b2da7.css not works well, so I visit https://file.iviewui.com directly then it shows me Access forbidden! . Ok, I visit http://file.iviewui.com, and it really confuses me that it shows the same result of localhost.
However I am not put the website into hosts file.
I have doubted that it might be caused by the proxy plugin. I open another brower firefox, still get the same result.
Also doubted that it might be caused by the virus, but it doesn't make sense. Actually I did use the safemgr software and still got nothing.
Tried stoping apache of xampp and get ERR_CONNECTION_REFUSED which means it really refers to localhost.
Before I ask this question, bootstrap website has the same problem.I was editing this question meanwhile I visited bootstrap website again and problem disappeared. I still don't know why and iView website still has the problem.
Tried restarting the computer and problem is still there.

Related

Removal of JS:Miner-AI[PUP]

When I try to access every site without using HTTPS. I get a popup from avast telling me they have blocked it.
It says 'JS:Miner-AI[PUP]'. When I try to access google.com (without https) it happens as well.
I have tried the following:
Scan with Avast, adaware and Malwarebytes (used to remove previous versions of js:miner)
Does anyone have any suggestions on what I can do to remove it?
Not sure what is going on but I am sure google.com is not malicious so my best guess is that your computer is infected with malware which tries to inject Javascript/HTML code into every page you visit probably by hooking wininet functions.
Most Malwares inject code into chrome, firefox and internet explorer. one way to check is to install another web browser and check if everything is good in that browser or not. Another way is to restart the computer and run again in safe mode (disable all the start up programs except for AV) and again run your favorite browser to see if the problem solved. if the browser's exe file (chrome.exe or firefox.exe) or any of the their DLLs are infected, then you have to reinstall the browser.
hope it helps :-)
Turns out that the router was infected. Once the router was replaced the problem was solved.

500 error on local Laragon website

I usually don't have any problem with Laragon as it works pretty good. I had no problem using Laravel.
But recently, my laptop made a Windows update, and since it restarted, nothing works anymore.
By nothing, I mean that when I try to load my virtual host "foo.dev", I have a 500 error without any info. So I tried the old way by going on localhost/www/foo/public and it loaded my website. Great !
But new bad news, impossible to connect to the database, even using a software, as if the password had been changed...
I don't have any idea on how to fix these problems and where does the problem comes from...So I'm asking for your help, if anyone has already faced a similar problem and reached to solve it.
Thank you.
I guess when updated your windows, Chrom also updated and apparently Chrome made new release that forces .dev, .app, and a few other TLDs to use HTTPS. The best fix is to use .local instead of another TLD.
see this question for more info

Laravel 'Whoops, something went wrong'

I've created a Laravel booking application that is currently being used in schools. When I test the live (production) version of the website on my own machine, the application works fine.
However, some schools are reporting that they are not even able to see the initial login screen, and are getting the Laravel 'Whoops, something went wrong' screen. I can confirm that the school firewall is not causing the issue, and that the website has worked ok in the past.
What reasons could there be for the same code to work on my machine but not on the live version? So far I have tried resetting the browser cache, and also flushed the DNS but to no avail...
Any suggestion are welcome.
Thanks.
It seems like folder permissions problem.
As the error is not shown, nobody can really help you..
What I suggest, is first to check the log file (storage/logs/laravel***.log).
There you should be able normally to see the problem and then you can fix it.
Another solution, in your ".env" file, switch from production to development mode, so you can be able to see the exception.
Check capitialization on the view name. I've had issues where everything works fine locally, but then get not found issues when live as the server behaves differently and is case sensitive.

PHP/Apache server setup on Windows 10 machine

Sorry if this is the wrong place for this question but I'm having a tough time trying to setup server with PHP and Apache on my Windows 10 computer. The best tutorial I've found, this video, seems to work until I actually try to view the localhost "site" (not even sure if that's the right word) where "There's Nothing Here".
I'm concerned that it might be because I didn't use the exact same version of PHP and/or apache from the video causing some sort of compatibility error (I used the closest version of each to what was used in the video).
Is there something obvious I've missed here?
Please word your reply in relatively simple terms; not only am a newbie at coding, I imagine others trying to do this same thing in the future are going to be just as inexperienced.
If attempting to go to "localhost" doesn't bring up the "Index Of /" page like in the tutorial it is because the "DirectoryIndex" option in httpd.conf is set to index.php, meaning it will automatically redirect to that page if you go to localhost. It's like the default page that will be accessed. If you want to access the info.php file, you must type "localhost/info.php" in directly. think of the "Apache24/httpd" folder as the "Root" folder of your local server, and everthing in the "Root" directory is accessed with "localhost/NAME_OF_FILE"
It may also be possible that Apache is not starting up again automatically after your computer restarted. To make sure that Apache is running, you can run "ApacheMonitor.exe" found in "Apache24/bin." After running that check the notifications area (that little menu on the right of the task bar that you open up with the tiny arrow) and there should be a small symbol that looks like the icon of the ApacheMonitor application. The symbol should have a green arrow in it if it's running. Otherwise, left-click it and select start.
Another option is to download a more pre-built windows binary of Apache from one of the links on the Using Apache with Windows page. I recommend ApacheHaus. There is still set up required, but when I downloaded it and set it up on my windows 10 it seems to work fine.
I'm not a pro at server set up either, but I hope this helps.

Can't access microsoft.com and skype.com web site after installing VS2013 Preview

Recently i installed Microsoft Visual Studio 2013 Preview Ultimate on Windows 7. Everything went smoothly except now i can't access www.microsoft.com and www.skype.com anymore. Tried latest IE10 and FireFox, both show blank page when accessing the above mentioned web sites. Firefox in its left bottom corner shows that it is waiting for ajax.aspnetcdn.com.
I'd really like not to reinstall OS on my machine, so i'd appreciate any idea how to fix this. For myself i tried to stop Firewall service and disable MS Security Essentials runtime protection, neither helped.
PS: I can access www.microsoft.com and www.skype.com from another machine in the same local network
UPDATE: i am using tfs.visulstudio.com as my TFS server and it opens fine if i am not signed in. But once i am trying to log in it opens blank, like browser is waiting for something (the same as for microsoft.com and skype.com). Something related to live ID?
Don't think this is the website to post this kind of question but try uninstalling VS2013 preview because you think that's causing the problem. Search in Google for people getting similar problem. I also don't think it is VS2013 because I can't think of anyway of how VS2013 would somehow disable you from going to a certain website. Make sure the sites weren't down at the time or if you're having something kind of Internet server issues.
skype is owned by microsoft, so you can't enter both microsoft pages. This could be related with some kind of ISP (Internet Service Provider) and not with VS2013, or you can try rebooting your router. Last thing i would do is traceroute both address and see where they fall.
I wanted to write this as a comment but I don't have enough reputation yet. Anyway, obviously trying to uninstall the program and trying again would be a good start as already mentioned, but you should also look inside your hosts file for any weird redirections some virus of malware might have set up. It's located at "C:\Windows\System32\drivers\etc" and you can open this inside notepad (might require notepad to be run as an administrator). Check to see if skype.com or microsoft.com are in there and are pointing to a different IP address. If they are you can just remove them and save the file (might require a restart to take effect). If still no luck you should try a livecd of a linux distro to make sure the problem is definitely inside your windows somewhere.
Let us know how it goes.

Resources