- Php Windows Installer
- Install Mysql Module Php Windows Msi Installer
- Mysql Msi Download
- Mysql Module Php
- Php
This article describes how to install MySQL on Windows, but versions are available for Mac, Linux, and several other operating systems. All-in-One packages. There are some excellent all-in-one. Click MySQL Community Server and select Windows (x86, 32-bit), MSI Installer to download. Here we using MySQL Community Server 5.1.51 Double click the installer->Click next->next->Install->Next->Next. MySQL Workbench for Windows can be installed using the MySQL Installer that installs and updates all MySQL products on Windows or the standalone Windows MSI Installer package. Important Installing MySQL Workbench using a Windows MSI Installer package requires either Administrator or Power User privileges.
Active11 months ago
I am having trouble installing a home personal LAMP development server in Windows 8.1.
I tried to manually install Apache, MySQL, and PHP on Windows 8.1. It appears that both Apache and MySQL installed correctly because I can do 'select databases' in MySQL, and localhost said something to the effect of 'If you are seeing this message it means Apache installed correctly'.
When I try to start the Apache2 service it says:
The requested operation has failed.
But, the service started after I installed it just fine. Only after a reboot did it start giving me this error and refusing to start.
I wonder why this so troublesome? I followed the instructions perfectly but it didn't give me the results that I was told to expect.
OPERATING SYSTEM:
Windows 8.1 64-bit
APACHE SERVER:
httpd-2.0.65-win32-x86-openssl-0.9.8y.msi
MYSQL SERVER:
mysql-installer-community-5.6.19.0.msi
PHP for Windows:
php-5.3.28-Win32-VC9-x86.msi VC9 x86 Thread Safe (2013-Dec-12 01:59:01)
- IIS is not installed on this machine.
- Firewall is disabled as 3dmasters recommends
- I'm not an Apache expert, which is why on a previous system I used WAMP, but I remember when I installed it in 2009, even with a turnkey 'package' that was supposed to eliminate problems, I still had problems of compatibility and configuration after the install. I eventually had success with WAMP and used it for learning PHP.
- I am aware that there are pre-made packages like XAMPP and WAMP, but I don't want to use them this time, unless somebody can tell me unequivocally that there is absolutely no way even a seasoned programmer/computer specialist/network administrator can manually install Apache/MySQL/PHP on Windows 8.1.
- In 3dmasters' tutorial video he is using VirtualBox and the no-ssl version of Apache. Again, his tutorial seems great and perhaps others were able to get up and running the first time with his instructions. However, I followed his instructions fairly close and it didn't work for me. It may be useful to note that Both of the sources (the most recent I could find) I used for the install were published last summer (2013). In McMillian's article, he summarizes the various concurrent problems that may be causing the 'The requested operation has failed' error:
'The problem seems to by [sic] that there are numerous versions of Apache and PHP. Most combinations of them are incompatible with each other. Support does not seem to have been kept remotely up to date and the documentation is terrible. Vital information is missing and in places it seems to be inaccurate. This paper describes what worked mid 2013.'
Thus, there were conflicts that at least one person knew about and was able to articulate and write about it. Yet I have found no other resources that address this in a step-by-step 'this is what you should do, and this is why' along with, 'don't do this because' manner. The closest admonishment of that sort was to make sure you are installing 'thread safe' versions of the software, which I am.
Installing Apache 2.2.22, Php 5.3.26 and Mysql 5.6.12 Microsoft
Publisher: 3dmasters
Published: Jun 28, 2013
https://www.youtube.com/watch?v=UKbEzmMliNM
Publisher: 3dmasters
Published: Jun 28, 2013
https://www.youtube.com/watch?v=UKbEzmMliNM
Installing Apache and PHP on Windows
Author: John McMillan
Published: July 25, 2013
http://johnrmcmillan.wordpress.com/2013/07/25/installing-apache-and-php-on-windows./
halferAuthor: John McMillan
Published: July 25, 2013
http://johnrmcmillan.wordpress.com/2013/07/25/installing-apache-and-php-on-windows./
15.3k77 gold badges6363 silver badges128128 bronze badges
Eric Hepperle - CodeSlayer2010Eric Hepperle - CodeSlayer20101,53266 gold badges2525 silver badges3737 bronze badges
closed as off-topic by nl-x, Zong, andrewsi, Ryan Haining, Reto KoradiJun 7 '14 at 4:37
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault.' – nl-x, Zong, andrewsi, Ryan Haining, Reto Koradi
2 Answers
You are using an Apache 2.0 VC6 build with a PHP 5.3 VC9 build. Those builds have to at least match; you can't have Apache VC6 load a PHP VC9 module/extension. And I'm not even sure if Apache 2.0 can load PHP5 above 5.2 at all.
Is there a reason for these older versions?
But, the service started after I installed it just fine. Only after a reboot did it start giving me this error and refusing to start
Open the command line in Admin mode (right click cmd.exe, select Run as admin) and execute:
It will output the problem.
If it says something about not being able to bind to port 80, check for the Services outlined in this guide:
unless somebody can tell me unequivocally that there is absolutely no way even a seasoned programmer/computer specialist/network administrator can manually install Apache/MySQL/PHP on Windows 8.1
It will take at least a few days to a few weeks if you really want to get it working fully, and correct for all edge-cases. Otherwise you should check out Xampp, WampServer, WampDeveloper Pro (not free), EasyPHP.
rightstuffrightstuff
You shouldn't use the binaries from apache.org with the latest PHP builds. They use different CRT, furthermore - apache.org still uses VC6 and that is legacy. You can fetch a newer apache build from http://www.apachelounge.com/ and the corresponding PHP from http://windows.php.net/ . Be sure that the builds use the same CRT.
Anatol BelskiAnatol Belski
Not the answer you're looking for? Browse other questions tagged phpmysqlwindowsapachewamp or ask your own question.
Active5 months ago
How do I install Apache with PHP support and the MySQL server on Windows without using any ready-to-use packages like WAMPServer or XAMPP ?
user256743
2 Answers
First, I recommend you read the Platform Specific Notes of Apache for Windows - it explains some Windows-specific features like running as a service that you don't have on other OSes and you probably have never used before.
As mentioned in these platform specific notes, Apache doesn't provide binaries for Windows, however they have links to several third-party sites that provide binaries, for example Apache Lounge.
From that website, we can download either the 32-Bit version (win32) or the 64-Bit one (Win64) - if your OS is 64-Bit you should always try to install 64-Bit versions of software, but note that you'll need to use 64-Bit modules as well, that means if you only have a 32-Bit module then download the 32-Bit Apache.
Here's the version that I used when writing this : Apache 2.4.10 Win64. The latest version when this answer was last updated: Apache 2.4.38 Win64 (look at the edit date at the bottom of the post).
Once downloaded, just extract the
Apache24
folder to the root of your hard drive, so that you have a path like C:Apache24bin
.Open a command line window (Windows+R and type
cmd
then press Enter), change directory into C:Apache24bin
and run httpd.exe
, normally it shouldn't print any errors.If you get an error dialog stating that
MSVCR110.dll
is missing on your system, you'll need to install the Visual C++ Redistributable for Visual Studio 2012 - as always, when prompted, select the appropriate bit-version : vcredist_x86.exe
for 32-Bit systems and vcredist_x64.exe
for 64-Bit ones.![Download mysql installer for windows Download mysql installer for windows](https://www.silverstripe.org/assets/screenshots/webpi-launch/webpi-05-webpi-handles-dependencies.png)
If you get an error saying that it can't bind to port 80, check if another application uses that port - also Skype is known to use ports 80 and 443 by default; uncheck 'Use port 80 and 443 as alternatives for incoming connections' in its advanced connection settings, restart Skype to apply the changes, and then you should be able to start Apache without issues.
A warning like
Could not reliably determine the server's fully qualified domain name
can be ignored for now.Windows Firewall may prompt you to allow Apache to communicate on specific networks, I recommend you use the default settings : allow it on home and work networks, but not on public/untrusted networks.
Then, open a browser and browse to
http://localhost
, if you see a page saying It works !
then it means your Apache installation is working.You can now stop the currently running Apache by pressing Ctrl+C in the command prompt.
If you got a warning about not being able to determine the system's fully qualified domain name, fix it by editing
C:Apache24confhttpd.conf
and editing the ServerName
variable (it should be already there in a comment, just uncomment it and change it) :Replace
<yourhostname>
with either the system's host name or localhost
.Finally, if you want to run the server automatically when the system starts (even if nobody logs in), you'll need to run it as a service - in a new elevated (as an administrator) command prompt, type :
That's it, now you have a new service in Services (Windows+R then type 'services.msc' then press Enter) named 'Apache2.4' that you can control just like any other Windows service.
Restricting Apache access to localhost
only - optional
If you're setting this up for development purposes you want to make sure that no one except you can access it, your firewall should already take care of that but let's add another layer of security to it by telling Apache to accept requests from the local machine only.
Open Apache's configuration file
C:Apache24confhttpd.conf
, search for the default directory block <Directory 'c:/Apache24/htdocs'>
.At the end if it, there should be a line
Require all granted
, this means that anyone can access this server. Let's make that Require local
which only allows access from the local machine.Also, you can tell Apache to only bind to the loopback interface, that way even if both your firewall and the access control directives mentioned above fail, the server still won't be open to the whole internet.
For this, locate the
Listen
directive (by default it's set to 80
) and change it to the following :The first line is self explanatory, the second one is the first one's IPv6 equivalent, the brackets are used in the IPv6 notation to separate the address and the port.
Save the file, if you're already running the server then restart it in order to take our changes into account, and now only
localhost
has access, everyone else will get a 403 Forbidden
.I suggest you read the official PHP documentation about installing it on Windows systems.
Download the latest PHP binaries from the official PHP for Windows download page, choose the thread-safe version that matches your Apache installation's bit-version (x86 for 32-Bit, x64 for 64-Bit).
The non thread-safe version is only when running as a CGI binary - more info here.
Epson sx205 driver. The version I used is this : PHP 5.6.2 VC11 x64 Thread Safe. The latest version when this answer was last updated: PHP 7.3.3 VC15 x64 Thread Safe (look at the edit date at the bottom of the post).
Create an empty
PHP
folder at the root of your hard drive, and extract the previously downloaded archive there, you should have a path like C:PHPext
, otherwise you did something wrong.In
C:PHP
, rename the php.ini-production
or php.ini-development
(depending on what you want) to php.ini
.Open that
php.ini
file, search for extension_dir = 'ext'
and uncomment that line (remove the first ;
). This sets the default extension dir to ext
(which resolves to C:PHPext
and avoids having to prepend ext/
to all extension's paths manually like in previous versions of this post.Now configure Apache to use that PHP, by editing
C:Apache24confhttpd.conf
- after all the LoadModule
lines, add the following :![Mysql Mysql](https://opensourcedbms.com/dbms/wp-content/uploads/2013/01/Image-001.png)
(The follow is for PHP 7 only)
(The following is for PHP 5 only)
Now try to start Apache manually by opening a command prompt in
C:Apache24bin
and running httpd.exe
- if you see no errors, it means your configuration file is valid and PHP is most likely working.You can test your PHP installation by creating a file like
info.php
with <?php phpinfo();
inside and going to http://localhost/info.php
- you should see quite a bit of info about your system and your PHP installation and all its modules. If you get something else like an 'Internal server error' that means something's wrong.You can now kill your current Apache process (Ctrl+C in the console) and start the service - the following part doesn't interact with Apache and can be done with the server already started.
Composer - optional
Composer is a tool for dependency management in PHP, like a package manager. It allows to easily install PHP packages and even entire frameworks.
Composer requires the PHP OpenSSL extension to be enabled, so let's enable it in
C:PHPphp.ini
.Use your text editor's search function to search for
php_openssl.dll
, there should already be a commented line for it, just uncomment that line.Now download Composer's Windows installer from their download page - or just use this direct link.
Follow the instructions, when prompted for the path to PHP, browse to
C:PHP
and select php.exe
.That's it, Composer is now installed system-wide and can be used from anywhere - you can try it out, just open a new command prompt (you can't use one that's already open since it needs to read the new
PATH
variable set by Composer's installer) and type composer
.You should get a nice ASCII-art logo and something like this :
Php Windows Installer
PHP MySQL extensions - optional
If you want to access your MySQL database from PHP, you'll need to enable extensions that allow you to do so, like
php_mysqli
or php_pdo_mysql
- I recommend enabling them both.Open PHP's configuration file
C:PHPphp.ini
in your text editor and search for php_mysqli
or php_pdo_mysql
- they should already be there, uncomment them.Done, now you can access any MySQL database using either
mysqli
or PDO
.On the MySQL Installer download page download the web installer
mysql-installer-web-community-xxxxx.msi
.I used mysql-installer-web-community-5.6.21.1.msi. The latest version when this answer was last updated: mysql-installer-web-community-8.0.15.0.msi (look at the edit date at the bottom of the post).
The installer will automatically install the appropriate version (32-Bit or 64-Bit) depending on your system, even though MySQL's bit version doesn't have to match Apache's and PHP's one but it's still beneficial to use the 64-bit version of your system supports it to take advantage of more than 3 GB of RAM, that's quite important as database servers tend to use a lot of RAM.
Follow the steps in the installer, if you're installing this for development then the
Developer default
will be your best option, it'll also install MySQL Workbench which is a native GUI client, thus avoiding you having to install slow web-based tools such as PHPMyAdmin if you aren't comfortable with using the command line client.Once everything is installed the installer will ask your for some basic configuration values, I recommend disabling 'Open firewall port for network access' unless you want to access the database from another machine on the network.
Set the root password - if it's only for development purposes and your firewall blocks incoming connections from the network then a strong password isn't necessary.
Finally, you can disable the useless MySQL Notifier by right-clicking the tray icon, going into Actions -> Options, then untick the
Run at Windows Startup
checkbox and apply. That'll save you a few MBs of RAM and avoid slowing your machine down when it's booting.And that's it, you now have a fully functional WAMP server that runs as a service and doesn't depend on any user (accessible even if no one is logged in).
Install Mysql Module Php Windows Msi Installer
Note that I have no idea about the security of this, for development purposes I'd say this is pretty safe since your firewall should block incoming connections for both Apache (port 80 and or 443) and MySQL (port 3306).
This was tested on a Windows 7 installation, it should also work just fine on Vista, Windows 8 and possibly Windows Server 2008/2012 - feel free to comment and/or downvote if that's not the case.
user256743
The instructions in the above answer work perfectly as of July 2017, however, if you wish to use PHP 7, you must add the following lines to
C:Apache24confhttpd.conf
, instead of the ones in that answer (which work only for PHP 5) [Add the following after all the LoadModule
lines]:Ensure that all paths are correct. If you don't have
rahuldottechphp7apache2_4.dll
in your PHP directory, you probably downloaded the wrong package.Mysql Msi Download
rahuldottechMysql Module Php
4,04055 gold badges2727 silver badges5353 bronze badges
protected by Mokubai♦Jul 2 '16 at 21:59
Php
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?