12.09.2019
Posted by 

Apache First, I recommend you read the 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. 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: - it was the latest version when this answer was last updated (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: Apache24 bin. Open a command line window (Windows+R and type cmd then press Enter), change directory into C: Apache24 bin and run httpd.exe, normally it shouldn't print any errors.

This tutorial shows you step by step how to install MySQL on Windows environment using MySQL Installer. Install, configure and integrate PHP and. Want to install MySQL as a Windows service and whether. Module in order to make use of MySQL with PHP.

Php

If you get an error dialog stating that MSVCR110.dll is missing on your system, you'll need to install the - as always, when prompted, select the appropriate bit-version: vcredistx86.exe for 32-Bit systems and vcredistx64.exe for 64-Bit ones. 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;, 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 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: Apache24 conf httpd.conf and editing the ServerName variable (it should be already there in a comment, just uncomment it and change it): ServerName Replace 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: httpd.exe -k install 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: Apache24 conf httpd.conf, search for the default directory block. At the end if it, there should be a line Require all granted, this means that anyone can access this server.

Install Mysql Module Php Windows Installer

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: Listen 127.0.0.1:80 Listen ::1:80 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. PHP I suggest you read the about installing it on Windows systems. Download the latest PHP binaries from the official, 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.

Php

The version I used is this: - it was the latest version when this answer was last updated (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: PHP ext, 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 extensiondir = 'ext' and uncomment that line (remove the first;). This sets the default extension dir to ext (which resolves to C: PHP ext and avoids having to prepend ext/ to all extension's paths manually like in previous versions of this post. (The following is for PHP 5 only. For PHP 7, see @Rahul2001's answer) Now configure Apache to use that PHP, by editing C: Apache24 conf httpd.conf - after all the LoadModule lines, add the following: LoadModule php5module C:/PHP/php5apache24.dll DirectoryIndex index.html index.php AddHandler application/x-httpd-php.php PHPIniDir 'C:/PHP' Now try to start Apache manually by opening a command prompt in C: Apache24 bin 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 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). 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.

PHP 7 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: Apache24 conf httpd.conf, instead of the ones in that answer (which work only for PHP 5) Add the following after all the LoadModule lines: LoadModule php7module C:/PHP/php7apache24.dll DirectoryIndex index.html index.php AddHandler application/x-httpd-php.php PHPIniDir 'C:/PHP' Ensure that all paths are correct. If you don't have php7apache24.dll in your PHP directory, you probably downloaded the wrong package.

The latest major release of PHP version 7.0 has been released with lots of speed optimizations and security. So you should try this version for your development. This tutorial will help you to install PHP 7.0, Apache = 2.4.17, & MySQL 5.6 on Ubuntu 15.10, 15.04 & 14.04 LTS release.

To setup LAMP stack on Ubuntu 16.04 LTS, visit our new tutorial below. For installHow To Install LAMP Stack on Ubuntu 16.04 Install PHP 7 First install python-software-properties package on your system which provides add-apt-repository command then use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install it. $ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php7.0 Install Apache 2.4 After successfully installation, lets begin installing Apache 2.4. Use the following set of commands to install Apache2 on your Ubuntu system available in default apt repositories.

Samsung mobile phone usb driver software. $ sudo add-apt-repository ppa:ondrej/apache2 $ sudo apt-get update $ sudo apt-get install apache2 Install MySQL 5.6 Use the following commands to install or upgrade MySQL 5.6 on your Ubuntu systems. At the last update of this tutorial MySQL 5.6.27 is latest available MySQL version in series of MySQL 5.6.X. $ sudo add-apt-repository -y ppa:ondrej/mysql-5.6 $ sudo apt-get update $ sudo apt-get install mysql-server-5.6 Install Other Requirements You may also need to install modules like PHP7-MySQL, libapache2-mod-php7.0 etc based on your application requirements. Use the following command to find our available php 7 modules. $ sudo apt-cache search php7-.

Above command will list all available PHP7 modules for installation, Let’s begin installation of modules. $ sudo apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json Verify Setup Finally verify installation of PHP7 with Apache2. Let’s create a file info.php on website document root using following content. Now browse this file in web browser.

Mysql Windows Installer Download

It will so all the details about version’s and installation.