Changing port number in easyphp devserver 17 - numbers

I am using EasyPHP Devserver 17. I want to change it port number to 127.0.0.1:786. Because my all application has set to this type only. This new installation has default only 4 port 8080,8000,8008,8888. when ever I am trying to do manually it always reset back to normal. I am not able to change it.

Open the file eds-app-dashboard.php in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-binaries\httpserver\apachexxx
Line 18, add your port number :
$ports = array(786,80,8080,8000,8888,8008);

Related

Visual Studio Code Remote SSH uses Windows username instead of username in ssh_config

I'm using Visual Studio Code on Windows 7, along with Microsoft's Remote SSH extension. I added new remote host, and saved configuration in ssh_config file.
When I open that file, everything looks ok, both User and Host values. However, when extension asks me for a password, I can see that it doesn't use myuser#myremotehost.com , values that are written in ssh_config files, instead it uses proper host but it also uses my windows username instead of the username I set in ssh_config file.
Any solutions to that?
I found that including the username in the Host definition of the .ssh config file fixed it for me.
Edit the contents of C:/Users/me/.ssh/config
from:
Host bar
User foo
HostName bar
ForwardAgent yes
to:
Host foo#bar
User foo
HostName bar
ForwardAgent yes
I had the same problem, and what fixed it for me was disabling remote.SSH.useLocalServer in VS Code's settings.
Source: https://github.com/microsoft/vscode-remote-release/issues/2512
Edit: fix link.
I found the problem. When using Command Palette and running Remote-SSH: Connect to host, you can add your host, and then save it for future use. Now, when saving config, it will ask you which file do you want to save your configuration to, and I was presented with 2 options:
ssh_config(which is in ProgramData)
config(which is in Windows/Users/MYUSER/.ssh/)
Now, I first tried latter, but it couldn't find the file, so I went with former, ie ssh_config. That's why I had this problem.
To fix it, I went to Windows/Users/MYUSER/.ssh/ and created a blank file there. After that, I added new host, saved it to newly created config file, and, voila, everything works as expected.
I tried the following steps as I use Windows 10:
Install the Windows OpenSSH Client
Install the Windows OpenSSH Server
Run the VS Code as Administrator
and it works.
what I have done was this:
1- Add new host : ssh user_name#IP_Adrress
2- Select connect to host and it worked like a charm

pgAdmin4 - postgresql application server could not be contacted

I know this question may be marked as repeated, but keep in mind that I have searched for numerous posted solutions and my error has not been fixed.
When starting postgres, I get the following error:
postgresql application server could not be contacted.
When running as administrator the error is "solved", but the application opens in another port - sometimes it opens in 50142, 51120 and others in 50859 -. And when it opens on another port (like the ones previously said), it asks for the password to connect to the server and I get this error:
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Infos:
Windows 10 64Bits
Postgresql 10
pgAdmin 4.1
Port 5432 (appears even in PostgreSQL\10\data\postgres.conf)
Solutions already tried:
Run in administrator mode
Modify the postgres.conf file
Clear the contents of the folder AppData\Roaming\pgAdmin
I would like to know how to avoid this error when starting the application and always opening on a specific port.
Simply locate AppData\Roaming\pgAdmin, delete the pgAdmin folder and try to start pgAdmin again... It should work
I finally got the right solution after 3 days of tries, this was insane, some answers above was correct at least not in my case but if you running to the same problem I had, I suggested following these steps even though some answers was very clear and helpful regarding deleting the folders inside the pgAdmin folder but not all the time and it depends.
So here are the steps to follow:
I installed the PostgreSQL and the pgAdmin4 comes with but the pgAdmin4 wasn't working and it was giving me the error (couldn't connect to the server).
To fix the problem, go to
This PC > local Disk(C:) > Users > (your folder's name)
in this folder you need to show the hidden folders.
on top left click on view > options > change folder and search option > view > (mark
show hidden files, folders and drives > then click ok.
now you will see the AppData folder click on it then roaming > pgadmin > (here you will see folders and files) delete them all and then go to the recycle ben and delete them from there too.
now go to pgadmin4 website and download the latest version, follow the steps to finish it .
now go to windows symbol in the bottom left of the screen where is says start, and run the latest version of the pgAdmin4 that you just installed, you will see it there separately from the one that, it comes inside the PostgreSQL.
(RUN THE NEW VERSION YOU JUST INSTALLED, IT WILL WORK, DO NOT RUN THE VERSION THAT IT COMES WITH POSTGRESQL BECAUSE IT WON'T WORK)
This error is happening because you haven't started the ppgadmin server.
For pgadmin3 we don't need to do this thing because pgadmin3 was an application but for pgadmin4 they have build web interface in a specific port.
So before starting pgadmin4 in browser you have to start the server.
In python we just download the pgadmin4 package and after activating the venv we run the pgadmin server file.
I would suggest you to try for the same.
Here is how I fixed this issue on window 10
Delete all files and folders within App Data folder found in C:\Users\%USERNAME%\AppData\Roaming\pgAdmin (please note AppData is a hidden folder, to find it ,go to C:\Users%USERNAME%, go to View tab on top panel of file explorer > Click Options > click change folder and search options > View tab >in Advance options click show hidden files, folders and drives, click OK, this will display the AppData folder)
Add to Path Variables C:\Program Files\PostgreSQL\9.6\bin (To access environment variables: Control Panel > System and security > System or right click on PC, then > Advance system settings > Environment variables > System variables > Path > New > add the copied path)
Go to start menu of windows search PgAdmin > Right click and start as admin.

EasyPHP Devserver 17

Is there an easier way to connect to my localhost than using my the whole directory structure
e.i.:
file:///C:/Program%20Files%20(x86)/EasyPHP-Devserver-17/eds-binaries/httpserver/apache2425vc11x86x180404190153/htdocs/CCB%20Waterloo/index.html.
Still need help,
Your suggestion for http://localhost/CCB%20Waterloo/index.html doesn't work get refused to connect
(This site can’t be reached
localhost refused to connect.
Search Google for localhost CCB Waterloo index
ERR_CONNECTION_REFUSE)
Not used to the newer version. Have an error with dashboard that MSVCR100.dll not found. Then the Easy PHP server at 127.0.0.1 refused to connect.
For your MSVCR problem, fisrt, read this : http://www.easyphp.org/faq_devserver.php#collapse001
And when EasyPHP Devserver is running properly, open tyour file with : http://127.0.0.1/CCB%20Waterloo/index.html. If the port is different from 80, 88 for example, use http://127.0.0.1:88/CCB%20Waterloo/index.html

Netbeans IDE8 Glassfish 4, GlassFish Server: Administrator port is occupied by null

I just downloaded Netbeans IDE7 with the Glassfish 4.
I just made a project to test it out and see how it goes, and I got this error right from the start:
Could not start GlassFish Server: DAS port is occupied while server is not running
[location]: Deployment error: Could not start GlassFish Server: DAS port is occupied while server is not running
See the server log for details.
BUILD FAILED (total time: 1 second)
I have reinstalled it three times, with the Glassfish and without and then later add it to Netbeans, i changed the domain.xml name="admin-listener" port="4848" to something different
i did this cmd code netstat -aon | find ":80" | find "LISTENING" and closed the programm.
i ran as administrator i think i did almost everyting but it wont simply run, and it keeps returning to the same error
usually i would have given up but this software is required for a school project.
i will try everything.
i hope someone can help me.
Thx in advance
You have to find the process that has taken the port you need. You can try finding it by running the terminal with the command:
netstat -aon | find ":80" | find "LISTENING"
Find the information you need and than kill the process with specific PID in Task Manager.
I hope you find this useful,
Thanks.
A few points:
Why not download NetBeans 8 that also includes GlassFish 4?
Assuming that you have successfully figured out that no other process is listening on port 4848, then Which version of the JDK are you using? Can you try JDK 7 if you are using JDK 8?
Looks like you are not alone - see NetBeans bug 237477.
Note that this isn't the only problem. I run on a Mac and can use the asadmin start command successfully on the remote server. IF I try to start it from NetBeans, it gives me this message.
One hint might be that the domain.xml file is set so that the listening port is 9090, the properties screen for the remote server, which I entered 9090 for, tells me the HTTP port is 23043. I can't edit it. Everytime I try to create that remote server it sets it to this value. The server will run fine if I start it by hand on the remote server, but NetBeans doesn't think it is running.
This occurs because I had to select domain2 because NetBeans says domain1 is already registered on my local machine. I wanted to have a local domain1 and a remote domain1 that are identical so I can test locally, and then deploy remotely.
This error message could be misleading, because it is the same when IP adress of glassfish server in netbeans settings is wrong (not port).
By my experience with this over win 8.1 + Netbeans 8.0 + Glassfish 4.0
The problem resides in permission of folder in windows that block the server execution
I solve the problem changing the permission of the glassfish/domain/domain1 folder for xxxx/user to totalcontrol
If this not solve your problem, try launch the server over console:
asadmin start-domain --verbose
And read the exceptions to try solve the problem.
-EDIT:
Reading other post to try help:
like this: Glassfish server started failed in netbeans 6.9
Or check your firewall:
allow >> C:\Program
Files\glassfish-X.X\glassfish\modules\glassfish.jar
In my case when using the command
netstat -aon | find ":4848" | find "LISTENING"
I noticed that one process was occupying this port. When checked what it was I noticed it was VMWare NAT controller, because I previously had configured a network adapter to listen to this port.
Just stopped all VMWare related services (in my case I didn't need them for development purposes), and solved the problem.
Go to Task Manager -> Services -> Stop Process whose PID IS 3136,2268,2468 ,23.... and near Range in PID. All processes near to the web server's PID.
It works for me on Windows 8.1 pro & Windows 7.
I had the same error message.
Turned out it was caused because my firewall blocked port 4848
May be late but I solved this issue by deleting the app server from the Netbeans and by adding it again. In my case Netbeans 8.2 and Payara 4.1 instead of Glassfish.
If you changed the host of Glassfish server then set it to localhost it should work.

Postgres.app configuration (port and other options)

I just installed Postgres.app on my Mac, and I need to make some specific configuration to server. For example I want to use different port, not 5432.
I found that it have postgresql.conf at ~/Library/Application\ Support/Postgres/var/postgresql.conf, but even if I change value of port = to something other, it listen on 5432 after server restart.
Seems that this postgresql.conf isn't used by Postgress.app. Where it stores server configuration files?
The postgresql.conf-file at ~/Library/Application\ Support/Postgres/var/ is used by Postgres.app. The only problem: if you change the port in that file, that change will not be reflected in the menu-bar. So the elephant over there will still say "Running on Port 5432", although postgres might be running on, for example, port 5433. (Mac OS X 10.8.2, Server.app 2.2, Postgres.app 9.2.2.0)
I can see the output from ps aux |grep post
/Applications/Postgres.app/Contents/MacOS/bin/postgres -D /Users/chenc26/Library/Application Support/Postgres/var -p5432
So I think there must be some config in this app to specify the CLI parameter which ignore the value from config file.
I'm running a Mavericks 10.9.3 and opening Postgres app v9.3 config via nano ~/Library/Application\ Support/Postgres/var-9.3/postgresql.conf and uncommenting the port = 5432 line, then changing it to, say, 5433 did the trick for me. (Restarting the app was required, as the config file mentions). Afterwards the app correctly displays that it is running on port 5433.
If correctly changing the content of postgresql.conf, then restarting the PostgreSQL server doesn't change the port it's listening on, you're almost certainly editing the wrong postgresql.conf.
On other platforms, PostgreSQL puts a copy of its default version of postgresql.conf in the data directory. So you're liable to find at least two copies of all the configuration files somewhere on your computer--usually one in the directory where the distribution or source was downloaded or uncompressed, and one in the data directory. On your Mac, if you're using version 9.1, the data directory might be
/Library/PostgreSQL/9.1/data/
Check for a postgresql.conf there. If you find one, consider making a copy of it to replace the one you edited. (So the one you edited will again be an unedited version.)
In 2022, I can't just edit the server.conf file. It looks like instead, I've had to do this from the GUI to change the port which the command line parameters refer to:
... bin/postgres -D /Users/MyUser/Library/Application Support/Postgres/var-11 -p 6543
The way I was able to make the change was to:
Open the Postgres elephant icon in the top bar.
Select "Open Postgres"
Stop the server.
Click on server settings.
Then, change the port in the simple input.
After this, start the server and find that the port has changed.
This works for the Postgres.app (version 11 on my desktop).