Failed to open the system default web browser. Is one installed? Pgadmin4 - php

Just wondering has anyone come across this issue with pgadmin4?
Every time I go to open it, I get the following:
Failed to open the system default web browser. Is one installed?.
Thanks

In mac make sure the default browser is selected from System preference
Choose System Preferences from the Apple () menu.
Click General
Choose your web browser from the ”Default web browser”
If default browser is set, try to change it and try again. This should solve the problem.

My pgAdmin4 was working fine until today, and then I also received the following:
Failed to open the system default web browser. Is one installed?.
I updated to the most current version and still I received the error.
I did two other things before I fixed the problem so I'm not sure which solved it:
I remembered I got a strange pop up in my browser the day before. I ran a virus scan and a tracking cookie was found, I deleted it.
I changed my default browser from Edge to IE (in Windows 10) and then pgAdmin opened. I then put my default browser back to Edge.

I've killed pgAdmin, then removed .pgadmin folder from the home directory, and now it works like a charm :)

When running pgAdmin, wait for maybe 1-2 mins. It should automatically open in your browser. If you click the button to create a new pgAdmin window before that, it will fail because pgAdmin 4 isn't running yet. The wrong error message will be shown.

If changing the default browser to IE/chromium/chrome does not work, you can try running it as an administrator. That always works for me

I experienced this problem and then 24 hours later everything seemed to be working fine again. I did not delete my internet history, restart my PC or change my default browser. The problem just seemed to fix itself. If you have tried some of the suggestions above and the problem still persists. Then maybe in 24 hours time you will just be lucky and see the problem unexpectedly go away.

This happens because you have some other app listening on port 5432 or some other is already running on this port and pgadmin not being able to override it.
You can check if there are any other apps at this port (in local host at ip http://127.0.0.1) by running following command in powershell:
netstat -ano | findstr :5432
Possible fixes for this problem:
You can configure pgadmin to run at port other than 5432, by right clicking on pgadmin (elephant icon) in your notification shade and click on 'configure' and changing the port to something else, like 22 there.
Or, if you have already setup lots of applications to use postgresql on port 5432 and don't want to change the port, you can kill the application running on 5432 by running:
taskkill /PID 5280 /F
Replace "5280" with the number listed next to LISTENING when you run the first command. this will kill what was running at 5432. Now, you can should be able to run pgadmin without any problems.
Here you can see me finding the app, killing it, checking if it's running after having killed and then checking after running pgadmin:
In first command, I have checked what's running at 5432 port.
In second command, you can see that I have killed it.
In third command, I have checked if there's anything running again.
Then I started pgadmin and checked what's running at port 5432 in fourth and fifth commands. (I clicked on pgadmin and then ran this command quickly, that's the reason you can't see 'LISTENING' in fourth command.)

if you have this problem [Failed to open the system default web browser. Is one installed
]
I fixed that , just by setting another default browser ,in my case I was using Chrome, then I installed Firefox Mozilla but for pgadmin4 to work, you must find the file pgadmin4, that is in file programs :
postgresql/11/pgadmin4/bin/docs/en_US/html/
then you must replaced in the html file "browser" like default with another browser that you prefer (besides Internet Explorer).

The reason why most major browsers don't open up pgAdmin is that it is an applet and major browsers have dropped support for Java. Internet Explorer still supports Java applets at the time of this answer and thus works with IE.

The problem seems to be that pgAdmin4 runs in an old version of Flask, the two simplest options are:
Install it thru pip (not pacman or apt-get) in a virtual env, here is the tutorial from pgAdmin website
Use a different program like Dbeaver

It happens because PGAdmin didn't found a default browser, note PGAdmin is web-based tool and it needs a browser to run.
On windows, go to system settings and set your preferred browser as default browser.

Related

Xampp is bringing apache and mysql not found when i run the control exe

I have been using xampp for a while and suddenly it brings error for apache and mysql:
"Apache or mysql shutdown unexpectedly This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums". A second attempt to retry will bring "apache/mysql not found".
I check both apache and mysql bin folder and i notice it removes httpd.exe and mysqld.exe this files automatically for some reason. I have tried several troubleshooting like un-installing and re-installing completely but its all been futile.
I manage to tweak it by creating a cmd file that copies this files (httpd.exe and mysqld.exe) where they are needed in xampp folder before i run xampp which seems to be working fine but i believe it shouldnt be so and i need to find out the reasons this files get removed on my pc. Any help and suggestions is highly welcomed.
check any third party antivirus software?
Kaspersky Enterprise v10 killed my WAMP installation on win10 a few months back...
Bit more complicated but ...
if that does not fix it, you can run disk mon.. a Microsoft tool, wait for it to happen again an find the process ID in the disk mon log, that matches your file and look for the process in task manager to see what program did the delete...
https://learn.microsoft.com/en-us/sysinternals/downloads/diskmon

Wamp server is not working although it is showing green icon

I have been developing a php project and the wamp server was seems
working fine but suddenly it stops working and i don't know what to do
because when i check its status it says server online and green icon is also
showing but it just does not work whenever i run .php files, Mr. browser
just write it down as i did in notepad++ but before some days it was working
fine, please help me I'm kinda stuck?
I also want to mention that in the mean while I installed tomcat server for some other work is it anything to do with fault because i'm pretty sure both operating on differnet port numbers
use <?php instead of <?or left click wamp > php > settings > short_open_tags
and make sure you are running your scripts through localhost and not just opening the php file in the browser
Read More about wamp problem
If you're definitely viewing the script through your MAMP setup (if your URL bar starts with http:// instead of file://) and it is showing the contents of the PHP file instead of executing the script, it sounds like Apache is running fine, but PHP-FPM is the issue or a misconfiguration between the two. Apache should detect it is a PHP script and ship it to the PHP-FPM process, accept a response then ship it to your browser.
I would recommend checking PHP-FPM logs first. All logs are in MAMP/logs - scroll to the bottom of each one for latest entries. Ensure the service is running as expected and logging hits when Apache serves a .php file. PHP-FPM may be using a socket file (which can hit permission problems) or on a network port (which can be in use/require admin privileges/etc). Otherwise check your config files, or re-install MAMP for fresh config files.
If Apache cannot start, common reasons are;
The port is in use by another application
The port is a low number and you do not have administrator privileges to use that port
Switching from wired to wireless / switching network adapters / changing hostname, etc
Apache is already running, or Apache thinks it is
You must sign out from Skype it'll occupied the port of Apache or you should turn down the server and then restart you pc and turn it on. It will work fine.

php server ERR_CONNECTION_REFUSED

I can't make a php server run on my local computer. I tryed with wampserver and Easy PHP. I checked the usage of my port:80, I changed the port from :80 to :8080, I gave Apache and mysql the permissions required on the firewall settings... I did everything, but when a type http://localhost with or without the port number browser answer is always the same:
ERR_CONNECTION_REFUSED
Can you help me, please?
While I think this questions is off-topic, I will try to answer it.
I have had problems with Skype and WAMP running at the same time. If you have Skype open, close it and WAMP, then open just WAMP. There is a setting in skype to use an alternate port. It has been covered thousands of times all over the internet.
Close everything you can think of.. Zone Alarm or any other software based firewall, disable Windows firewall, temporarily disable your AV if it has a built in firewall. I am not saying you should run without protection, but you need to identify what is causing the troubles. As far as hardware firewalls, I have a Linksys wireless router (built in firewall) and I have never had to do anything to get WAMP to work behind it.
If you have been messing with tons of settings in your WAMP, then just uninstall it and re-install it. You don't need to change your port to 8080 to get it working, and doing so would require you to always include :8080 in your URL (unless you have it listen on both).
With a stock WAMP, and everything you can think of closed or disabled, try again.
The WAMP icon should be green. Click on it, and go into both Apache and MySQL. They have a "services" sub-menu, where you can start/stop/restart the service. Start should be greyed out, and stop and restart should be available. If you see one of them not started, try clicking "start service". If it still won't start, then click "Install Service". Wait a minute. Then click "Start Service".
For some reason, when I freshly install WAMP, I have to manually install the service on one of them. I don't recall which one. Once I install the service, it then will work. You might have to click the WAMP icon again, and select "Restart All Services". Then go into the Apache and MySQL menus and make sure the services are started.
OK after about an hour of trying all of the fixes and youtubes I could find, I read Wade's approach. So with that knowledge I went:
wamp menu->apache->services->start/resume and boom localhost wamp page popped right up.
This was a fresh install the error for localhost was 404 err connection refused.
I hope this helps your frustration.

The weirdest issue with lamp+mediawiki ever experienced

Ok, so I have set up a installation of lamp and mediawiki on my machine with the path http://localhost/mw/. I then proceeded to install windows on a virtual machine so i could test mediawiki installation with Internet Explorer. So i set the appropriate $wgServer setting to my host IP addr which was reachable from the virtualbox client.
First i accessed http://x.x.x.x/ and got a directory listing, yay it works. right?.... NO..
I then proceeded to access http://x.x.x.x/mw/ (mediawiki path), and to my suprise, IE was just loading on recieve. Several hours went by, and still IE was loading the page... No connection timeout, no recieve timeout. just loading.. forever and ever...
When trying to investigate what was really going on here, i downloaded the cli utility cURL. and proceeded with the command: curl -v http://x.x.x.x/mw/index.php/Main_Page. I was able to retrieve the page, however the result was mind blowing!
First off, mediawiki reports that the page was rendered quite fast (as read from the recieved html source)
Served in 0.356 secs.
Curl on the other hand;
* 14542 bytes transfered in 764.580 seconds (19 bytes/sec).
This suggests to me that for some reason the path /mw/... has a very slow transfer rate. All the other sites works just fine, but not /mw/
And since i never got a connection timeout or receive timeout in IE im guessing that i'm recieving byte for byte at a very slow rate, and it does this for all the resources on the page im trying to get.
And to make things even more interesting, the host machine can access /mw/ without any problems at all. I also tried connecting with another computer on the network (not a virtual machine), and it also suffered the same issue with endless loading.
Any ideas on what is going on here?
The issue seems to be traced back to xdebug module when configured with auto connect back.
Removing xdebug.xdebug.remote_connect_back in xdebug config solved the issue.

XAMPP Apache and MySQL services not starting or stopping after first installation

Hi I want to start learning PHP and MySql and also polish my knowledge of Javascript witch is very limited at the moment having only use jQuery and knowing only the core sintax of the language.I choose to read Learning PHP MySQL and Javascript witch seemed to fit all my needs.
Having always had bad luck when installing something new I immediately hit a dead end with XAMPP 1.7.7.
The server runs corectly when is first installed and I can stop MySQL and Apache from running from the control panel.But if close the control panel and reopen it I get and error.
If when it was first opened I left apache and Mysql opened I get the error Apache Service not stopped [-1] the same goes for MySQL.If the services were close I get the same error that says apache service can't start same for MySQL.
I have tryed multiple instalations and the same thing happens.
I first tought I will install it and live them open so I can start working but sadly it didn't work corectly or I don't know how to run a PHP script corectly.
Here's what I did:
I opened PHPStorm and pasted this little scripped with a PHP extension :
<?php
echo "Hello world";
?>
After that I tried to run it but I get the error "PHP interpretor is not installed".
Shouldn't it have worked if the apache server was running?
You should wait after you stopped apache or mysql to let them clean things up. If you want to force them to end their processes, you can kill httpd.exe and mysqld.exe from task manager and then try starting it from xampp control panel.
Could it be that you are running Skype on the same machine? Its a known issue where Skype takes control over port 80 in order to become a supernode in the Skype network.
Go to Skype and in the "Tools" menu locate subsection "Advanced", option "Connection". There you'll find an option saying "Use port 80 and 443 as alternatives for incoming connections". Uncheck it, click "Save" and try restarting your server.
What OS are you using? Are you using the XAMPP control panel?
In windows press
Start
Run
Type "Services.msc"
Find the "Apache" service
Right click and stop
I find i get this error if i start the apache service without the control panel but try to stop it with the control panel.

Categories