Apache windows uninstall path - php

I'm trying to find the path of the uninstall file for apache 2.2. I can see it in add/remove programs, and tried to find the uninstall path in the registry under HKLM\software\microsoft\windows\currentversion\uninstall but there is no folder for apache...
I'm trying to find the path because I'm making an install file which installs apache/php/mysql and want to uninstall any existing installations of those 3 beforehand.
I know that running the apache installer gives you the option of repair/remove if its already installed but I want the uninstall to be silent/automated, so that the end user doesnt have to manually select remove to actually uninstall the existing apache.
I hope this makes sense, thanks in advance.

On my WinXP x32 laptop there is a key for Apache (2.2.13), installed with the MSI, under
HKLM\software\microsoft\windows\currentversion\uninstall
...and the uninstall string is
MsiExec.exe /I{UUID of key}
Just checked a Win2003 machine (Apache 2.2.19) at work and it is the same.
This probably doesn't help you very much, because you need to find the key before you know which UUID to pass to msiexec.
Looking through the other keys, this seems to be similar for all packages that were installed with MSIs.
Which version of Apache are you looking at? Because some older releases in the 2.2 branch didn't use MSI (if I remember rightly), I think they may have used InstallShield?

How did you originally install apache? Most of the time on Windows it is installed with XAMPP, WAMP, or some other similar bundled package. Try a search for php.ini or apache.conf, then look at the directory structure. That should point you in the right direction, you could also try
apache -k uninstall
Also take a look here http://support.esri.com/en/knowledgebase/techarticles/detail/23569

Here are the instructions I followed when I uninstalled my Apache server on Windows 7: http://www.ehow.com/how_7361546_uninstall-apache-windows.html
And one more thing, when doing the command prompt instruction, be sure to run it as Administrator or it will tell you that access is denied.

Related

BREW not working on Local Host PHP

I am having some trouble using BREW on my local host server. I installed brew via Terminal on my Mac and installed FREETDS using brew. I have also changed my default PHP to the MAMP PHP.
Running which php gives:
which php
/Applications/MAMP/bin/php/php7.0.0/bin/php
But it seems the packages I install via brew don't take effect on the MAMP PHP SERVER. I cant see the FREETDS driver anywhere in PHPINFO. Any help guys?
Maybe you can try from terminal to run
php --ini
Output will show you loaded ini file for PHP client. Than you can try to edit that ini file and include additional PHP extension if they are installed.
If possible i would suggest to don't use MAMP, but some Vagrant environment.
If you type:
brew info php
You'll see that Homebrew is installing to a separate directory than MAMP (including extensions). You'll need to reconcile the two somehow to get it working correctly, but it may be worth it to configure your machine to serve from Homebrew's version instead of relying on MAMP Pro - otherwise you'll be moving files around.
The problem here lies with me using MAMP. MAMP is not compatible with brew nor does it let me install extensions. The way I got around this was completely ditch MAMP and just go with PHPBREW which is a much more flexible solution and VERY EASY to setup. If you are going to need anything remotely custom (extensions etc.) go for PHPBREW.... it will save you so much time.

Install Composer fails "openssl extension is missing" error

I've been trying to install Composer for about a month now on a Windows 10 computer. Every time I run the Windows OS installer, it gives me this error:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
I've checked in my php.ini file (C:\Bitnami\wampstack-5.4.39-0\php\php.ini) and it is not commented out. I've checked for the DLL itself in the ETC folder, it's there. I've restarted my Apache Web Server several times. Heck, I've reinstalled PHP and my WAMP Servers. Nothing is working. I've tried downloading a fresh Composer installer thinking maybe my original one got corrupted some how. Still doesn't work. Am I missing something here?
After about another week of research and talking with a University professor about it, I ultimately found that the issue stemmed from my Bitnami installation path. Installing the wampstack as it defaulted by the installer (wampstack-version#) seems to cause problems in composers ability to install. Make sure to install it without the version on the end of the wampstack path.

XAMPP Apache not starting because of Apache2.4

So I'm starting to use MySQL and phpMyAdmin and I firstly installed Apache2.4. After installing Apache2.4 there were numerous errors so I decided to install XAMPP instead. Now me not thinking through the consequences deleted the Apache2.4 Folder completely along with all its contents.
So now when I start XAMPP, MySQL runs fine but Apache is stuck on "Attempting to start Apache service..." Now when I look at the services tab Apache2.4 is still on my list, I have disabled it but it's made no difference. I have checked through my computer for any remaining Apache2.4 files but I can't find any.
If anyone can help me with this, it would be extremely helpful!
UPDATE: I have restored Apache24 from my recycling bin, should I attempt a uninstall using cmd?
It appears that an instance of apache 2.4 is running on the system. It is probably locking port 80 which the reason why XAMPP apache is unable to start.
Shutdown apache 2.4 from it's control panel, shutdown the service, and ensure there is no "httpd" process running using task manager. If there is kill it.
Once the above are done you should be able to start xampp.
Follow those steps:
1- Uninstall Apache 2.4
2- Clean Windows Registry with a tool like CCleaner
3- Restart Windows
4- Install XAMPP

I install mcrypt by homebrew , and phpmyadmin still tell me it's missing

Sorry for ask this simple question, but I really can't find any useful information for mcrypr extension missing.
I code PHP on my Mac air, at first time. I sucked in every package's building, and every details was gone and crash,so,I reinstall all my OS and upgrade to OS X 10.8.
I read some tutorials about homebrew, second time, after I enable apache and PHP (already in OS X), I download homebrew and install mysql and mcrypt, and put PhpMyAdmin that download from official website in /Library/WebServer/Document/.
The steps I use was:
brew install mysql <= this is command i use , not just describe my action
brew install mcrypt <= command
make mysql startup when booting
add new line: extension = mcrypt.so in php.ini.default and rename to php.ini.
set mysql root name and pw.
Every log about install was right and success, the folder Cellar was there in /usr/local/. Folder mcrypt was there too.
But when I login phpMyAdmin,still find the line: mcrypt extension is missing still there
Some step I miss or, I add wrong line in php.ini?
And another question, if we install mysql by homebrew, and the charset will set to UTF-8 automatically? Cause my system show me this before i edit my.cnf :(
You should restart Apache so it can notice the newly-installed PHP extension.
Finally ...... I find a answer for my question.
In this Post,even question in this post was different from mine,but there is a very important idea I forgot.
At last , I use macports to create the same environment of PHP+Apache at /opt/local/xxxx/xxx
,homebrew is different from macports,macports didn't depend system's lib or files as much as possible,so I try to use macports and install mcrypt by:
sudo port install php5-mcrypt
when it's done,I copy crypt.so to php/extension/xxxx/xxxx , and it's work finally,maybe someone can reference this kind of answer :)

Activate Apache/PHP on Mac OS X 10.8.3

I have a MacBook Pro with OS X 10.8.3 factory installed. I want to set up a working Apache/PHP environment on my local machine. Is this a matter of activating/changing settings in Terminal or do I need to install something?
There have been other guides out there but they don't explicitly answer how to begin if I have a factory installed OS and not an upgrade from an earlier version.
Thanks for any help.
If I'm not mistaken, all you have to do is edit the httpd.conf (/etc/apache2/httpd.conf) file to load the php module into apache (Look for 'LoadModule php5_module', it will probably be there, but with a # at the beginning of the line, simply remove it) and then start apache by entering this in terminal: apachectl start (you will maybe need to put 'sudo' before)
Of course this will only run apache and php. After that you can change your documentRoot and all the settings you want
I found a guide that'll walk someone through getting the factory installed Apache and PHP working on OS X 10.8. It goes over getting MySQL installed too:
http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion

Categories