rename wamp services - windows-services

Is there a way to rename the services that are installed with wamp? I tried changing the name of all "wampapache" in wampmanager.ini and wampmanager.conf. That changed the name of the service installed, but then wamp's menus did not recognize the renamed service.

I give a step by step below. In short, wampmanager.ini does not control the configuration. It is generated by wamp using wampmanager.tpl. There are also a few scripts that should be changed.
For a complete answer, I also list how to change the port numbers.
run through installer - launch
remove services
exit wampmanager
open wamp/scripts/refresh.php
change all wampapache
change all wampmysqld
open wampmanager.conf
change all wampapache
change all wampmysqld
open wampmanager.tpl
change all wampapache
change all wampmysqld
open uninstall_services.bat
change all wampapache
change all wampmysqld
open bin/apache/apache/wampmanager.conf
change all wampapache
open bin/apache/apache/conf/httpd.conf
change 80 to <port>
open wampmanager.tpl
change localhost to localhost:<port>
open bin/mysql/mysql<version>/wampmanager.conf
change all wampmysqld
open bin/mysql/mysql<version>/my.ini
change 3306 to <port>
start wampserver

Related

How can I tell what options are in use on a running Mosquitto Service

How can I tell if the settings files associated with a Mosquitto instance, have been properly applied?
I want to add a configuration file to the conf.d folder to override some settings in the default file, but I do not know how to check they have been applied correctly once the Broker is running.
i.e. change persistence to false (without editing the standard file).
Test it.
You can run mosquitto with verbose output enabled, which will generally give you feedback on what options were set, but don't just believe that.
To do that, stop running Mosquitto as a service (how you do this depends on you setup) and manually run it from the shell with the -v option. Be sure to point it at the correct configuration file with the -c option.
That's not enough to be sure that it's actually working properly. To do that you need to test it.
Options have consequences or we wouldn't use them.
If you configure Mosquitto to listen on a specific port, test it by trying to connect to that port.
If you configure Mosquitto to require secure connections on a port, test it by trying to connect to the port unsecured (this shouldn't work) and secured (this should work).
You should be able to devise relatively simple tests for any options you can set in the configuration file. If you care if it's actually working, don't just take it on faith; test it.
For extra credit you can bundle the tests up into a script so that you can run an entire test suite easily in the future and test your Mosquitto installation anytime you make changes to it.
Having duplicate configuration options with different values is a REALLY bad idea.
The behaviour of mosquitto is not defined in this case, which value should be honoured, the first found, the last? When using the conf.d directory, what order will the files be loaded in?
Also will you always remember that you have changed the value in a conf.d file in the future when you go looking?
If you want to change one of the defaults in the /etc/mosquitto/mosquitto.conf file then edit that file. (Any sensible package management system will notice the file has been changed and ask what to do at the point of upgrade)
The conf.d/ directory is intended for adding extra listeners.
Also be aware that there really isn't a default configuration file, you must always specify a configuration file with the -c command line option. The file at /etc/mosquitto/mosquitto.conf just happens to be the config file that is passed when mosquitto is started as a service when installed using most Linux package managers. (The default Fedora install doesn't even setup the /etc/mosquitto/conf.d directory)

Cannot find the daemon.json file in windows 10 after docker-desktop installation

I installed the docker-desktop in windows 10 using the installer. Now i want to see the configuration file daemon.json. The official documentation says that
The default location of the configuration file on Windows is %programdata%\docker\config\daemon.json
But i cannot find a folder %programdata%\docker.Instead, the folder C:\ProgramData\DockerDesktop exists. But that doesn't have a daemon.json file in it.
Can someone help me to find why this is so and where can i find daemon.json?
On my system the file is at %userprofile%\.docker\daemon.json.
Right click Docker icon in taskbar > Click Settings > Click Docker Engine
You can update that, and it should work. I'm on Docker Engine v19.03.8.
The path C:\ProgramData\Docker\config\daemon.json, as described in Microsoft documentation, is correct, or also correct.
I think the file is not created until you change it on GUI. Once you change it on GUI,the file will be were is supposed with the exact content you apply.

OwinHost.exe from command line - how to make it start on a different port?

Yes, I have looked on google for this seeming simple question w/o much luck.
So my project includes the OwinHost (OwinHost.exe) NuGet package, and this has updated my project in such a way as to allow the Visual Studio IDE, via property pages, to specifically launch OwinHost.exe using whatever url:port I've specified on the 'Web' tab.. .. but since this is currently error-ing out and closing the cmd window before I can see the error.. I thought I'd try to run OwinHost.exe manually...
I know how to cd to my web project's bin folder and then call out to the appropriate packages subdir to OwinHost.exe to make it start listening for web requests. But, it listens on port :5000 and I want to change this.
Ugh.. just figured it out... the -u switch..
..\..\packages\OwinHost.3.1.0\tools\OwinHost.exe -u https://localhost:443/

"Project file changed" issue in PhpStorm during working remotely

I have CIFS mounted folder on my PC, where houses a PHP project.
And very often dialog box appears with the message:
Project file /path/to/mounted/directory/.idea/workspace.xml" has been
changed externally. It is recommended to reload project for changes to
take effect.
I don't make any changes in this file, but PhpStorm thinks sometimes that file was changed and shows this dialog.
This directory mounts on system startup, and this is the corresponding fstab string:
//host/path /media/server cifs _netdev,credentials=/home/user/.smbcredentials,iocharset=utf8,sec=ntlm,uid=1000,gid=1000 0 0
This mount settings I've made today. Before that the directory was mounted through sshfs and all was OK without this annoying dialog box.
How can I resolve this problem?
I've found a current solution, I hope that this can help everyone that is encountering this issue.
**Go** to Settings (File->Settings (Ctrl+Alt+S) )
and reach Appearance & Behavior-> System Settings
uncheck all 4 options of Synchronization.
This is how I managed to fix this problem, now I don't have to
reverse commit,
No dialog box that the project has been modified externally and no workspace.xml popping up in SourceTree.

Is it possible to change the url called by WAMP?

When click 1 and/or 2 WAMP open the web without my configured IP
i.e.
1 open http://localhost/, I need localhost:8080
2 open http://localhost:8080/phpmyadmin/, I need localhost:8080
Is it possible to add the port in WAMP's configuration somewhere? Currently I add it manually.
Thanks to JK suggestion I've try and found that in wampmanager.tpl file, search for localhost will expose the marked-red area which help to add the port.
Navigate to your WAMP installation folder and locate the files wampmanager.ini and wampmanager.tpl. Replace all occurrences of localhost with localhost:8080 within these two files. Restart wampserver.
Actually, #JK, the wampmanager.tpl is the template file used (by wampmanager.exe during start up) to generate wampmanager.ini. So you only need to edit the .tpl file and that solves it.
*TIP: You can also add custom menus to your wamp tray icon by adding entries to the wampmanager.tpl file.
Edit the file C:\wamp64\wampmanager.conf and change the port:
[apache]
apachePortUsed = "8080"
Then exit and relaunch wamp.

Resources