Xampp close when user log off - xampp

I installed Xampp on Windows Server 2012. It works great, however when I log off the computer (not shut down) the Xampp shuts down and the domain becomes unaccessible from Internet
How can I solve this problem, I want the Apache and MySQL service to keep running even when I log off

For those looking for a solution
try to register Apache and MySQL as Windows service (red cross in the XAMPP control panel)
Stop Apache and MySQL first, then click on the Red Cross to install the services. Done,

Related

PgAdmin runs in desktop mode and I want to change it to server mode

I installed PgAdmin 5.5 version on my Windows 10 computer. Before PgAdmin was opening in default browser and there was an icon in the system tray. Now it runs as a native desktop app. I want to run it as before. Is it changed recently? Did i miss something?
Thank you.
A bit late to the party, but I had the same question (but for v6.x) and can't find much info about it either.
According to this thread in the pgAdmin_support mailing list the option to run just the server seems to be removed which is just flabbergasting.
https://www.postgresql.org/message-id/flat/CA%2BOCxoxF_hw%2BDjB8Cvv1kCP_FOjxrtFD-_cMduaMSGAZwqv6RA%40mail.gmail.com#d678896b1966fa054a500ad1ab29b63f
The way to go probably is to use the Docker although I wonder how much overhead that will bring. That said, you can kind-of work around the lack of default web server by
adapting C:\Program Files\pgAdmin 4\v6\web\config.py so the built-in webserver listens on all network addresses and you can access it from the LAN like this:
DEFAULT_SERVER = '0.0.0.0'
when starting up pgAdmin in the 'application', in the menu go to File \ Runtime \ View log and scroll all the way down, it will have a line that reads something like Application Server URL: http://127.0.0.1:5555/?key=ad836827-6a30-483b-973a-bb2f11a0267e
replacing '127.0.0.1' with the name of your server should allow you to use that url to connect from any machine on your LAN to the pgAdmin service.
Note, you can minimize the pgAdmin 'application' but don't close it because doing so will also close the web-server.

Are Apache and MySQL servers needed in addition to MAMP?

This might be a silly question, but I'm new to web-dev, so here it is:
I recently installed MAMP on my windows system [yes, MAMP works on windows too] and it shows Apache and MySQL server to be active, but neither I have installed any of these servers, nor I can find them in "Services" of my system.
So I wanted to ask whether I'll need to explicitly install both of these servers or not.
Also, If there's no need of explicit installation, how does MAMP work ? like, giving access to both these servers without actually installing them ? [A brief explanation would be enough]
T.I.A.
They come with MAMP. You can access phpMyAdmin under the Tools menu in the page that automatically opens up when you start MAMP, for me it is http://localhost/MAMP/?language=English

Installing and Re-installing XAMPP

I have recently installed XAMPP on my computer it was working fine but my friend accidentally deleted the XAMPP folder.So when I reinstallled it isn't working,ports for Apache and MySql are showing that they are busy.
What should I do ?
If you are running Skype, then you can easily change its ports. Go to Tools -> Advanced -> Connections and uncheck the Use Port 80 and 443 option and close Skype. Now again try to start Apache. You should be able to do it.
Have a look there "How to get open ports" it explains how to see what ports are open and which programs opened them.
Start running mysqld.exe file which will be seen in the bin folder inside your MySQL installation.

XAMPP on Vista not executing my own PHP files

I installed xampp on a machine with vista business SP1 version. The default page (with the "You have successfully installed XAMPP on this system" message) opens up fine.
But when I put a php page in the htdocs folder and try to access it using 127.0.0.1/mypage.php, I get the "Object not found" error.. The apache service is running as indicated by XAMPP Control Panel. I clicked the "Port-Check" button on the xampp control panel and this what it says:
Apache(HTTP) 80 System
I checked with a XP machine and it says:
Apache(HTTP) 80 C:\xampp\apache\bin\httpd.exe
How do I resolve this issue? I have disabled windows firewall and UAC.
First of all, I don't think there are some problems with your PHP interpreter, as XAMPP Welcome Screen works fine and it uses PHP.
Form the fact, that you put PHP file into htdocs and can't access it via browser plus the fact that your "port-check" shows some strange entries, I assume that you have another installation of Apache on your system or that you have a web server component enabled in your system. Information dumped from port-check clearly says that you have some system service listening on port 80, which seems to be capturing all the request before Apache on-board your XAMPP can handle it. But, on the other hand, how then you would be able to run XAMPP Welcome Screen? Really strange situation.
As first step, I would recommend doing extensive research through all your active services (run "services.msc"), installed programs and enabled system components (both in Control Panel section responsible for handling program and sys comps). Disable or uninstall everything that seems to be related to web server.
If this brings no effect, then you should address your question to a StackExchange sister project called "ServerFault", because this seems to purely server or system related question, not belonging to XAMPP discussed on StackOverflow.

What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed?

If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your development machine with IIS and SQL Server already installed, what's the best way to do it?
I found a method online which sets up a little "mini" server on Windows running instances of Apache and MySQL but they didn't advise using it on a machine with IIS already installed. Obviously one could install Apache and MySQL and do it that way but given what Windows affords you (i.e., methods of running PHP in IIS - I think Windows Server 2008 is even optimized for this), is that the best way? Are there ways to run WordPress with SQL Server as the backend? (I wouldn't think so but I thought I'd throw that out there).
And are there methods differing on the version of Windows (i.e., XP, Vista, Vista64)
I run XAMPP on a thumbdrive and install WordPress (usually multiple instances of it) on there. Then I start up XAMPP when I'm going to work on Wordpress development.
EDIT: this setup does require that IIS be stopped when the XAMPP server is running (or some byzantine configuration magic that I've never bothered to figure out. Since most of my personal needs for local IIS development are handled by the Visual Studio built-in instance of IIS, which can run side-by-side with XAMPP, I rarely have bother with anything else, but that probably won't work for everyone.
Install PHP, run Wordpress in IIS. Install MySQL which can be run side-by-side with MSSQL. The only thing you'll miss using IIS over Apache is mod_rewrite for prettier URLs.
Avoid running IIS and Apache on the same machine if at all possible. IIS likes to bind to all available IPs blocking Apache from binding to an IP, which you can get around if necessary, but it's not immediately clear what's happening.
I've been running this setup for years.
Since you are interested in developing for Wordpress I strongly suggest you use the most common WP setup: Apache, PHP and MySQL.
You can run Apache and IIS at the same time (I have IIS listening on port 81 and Apache on 80) or you can run only one at a time (create 2 bat files to start/stop the servers using the net start/stop command).
You can use IIS, PHP, MySQL to run Wordpress but there are some subtle differences that can drive you crazy or cause problems when you deploy on Apache.
You can certainly run IIS and Apache on the same box. We do it currently with Documentum/Apache and IIS on the same server. Just pick a range of addresses for one web server - 808x for Apache for example.
You should also consider using Thinstall from VMWare where you can virutalize an entire application - registry, .Net and all - distribute as a single .EXE. We do this now for packaging applications that don't play well together. You might want to virtualize Wordpress/Appache/MySql and set an IP (808x) for that configuration. This way you can move this to any server with IIS and it'll play well with different configurations.

Resources