Configuring PHP Development Environment in Windows This tutorial shows you two ways of configuring your PHP development environment on the Windows operating system. The first and most convenient way is to install and configure an AMP ( Apache, MySQL, PHP) package. This tutorial shows you how to install the XAMPP package. The second way is to install and configure each component separately. Contents.
To follow this tutorial, you need the following software and resources. Software or Resource Version Required PHP download bundle A PHP engine Version 5. A web server is recommended. Included in XAMPP Windows. A database server is recommended. Included in XAMPP Windows.
A PHP debugger (optional) Typically, development and debugging is performed on a local web server, while the production environment is located on a remote web server. Setting up a remote web server is described in.
This tutorial has you set up a local web server. PHP support can be added to a number of local web servers (IIS, Xitami, and so on), but most commonly is used.
Apache HTTP server is included in the XAMPP AMP package used in this tutorial. For information on installing and configuring Apache HTTP server standalone, click. Required Software To create, run, and debug your PHP projects you need the following software:. The NetBeans IDE for PHP. Downloads are available. A web server. Typically development and debugging is performed on a local web server, while the production environment is located on a remote web server.
The current version enables using a local server. Using a remote server with FTP access will be supported in future versions.
PHP support can be added to a number of web servers (IIS, Xitami, and so on), but most commonly is used. Click for information on how to install and configure Apache 2.2. The PHP engine. The supported version is PHP5.
Downloads are available. The PHP debugger. The NetBeans IDE for PHP allows you to use, but using a debugger is optional.
The recommended version is XDebug 2.0 or higher as it is compatible with PHP5. A database server. You can use various database servers while one of the most popular ones is the MySQL server. Downloads are available. Note: The recommended version of the product is MySQL Server 5.0. The provided documents describe the work with this version.
After the installation, you need to set up the environment that all the software components work properly with each other. You can use a, that contains the required software,. Using an AMP Package To have all the configuration settings for the PHP engine, the Apache HTTP Server, and the MySQL database server specified automatically, use an AMP package. This tutorial gives instructions only for the package. For help with the WAMP package, please see the. Installing and Configuring the XAMPP Package The section describes how to download, install, and configure the XAMPP package. Warning: Do NOT use XAMPP 1.7.0.
There are significant problems with XDebug in this version. Use version 1.7.1 or later, where these problems are fixed. Note: Starting with XAMPP 1.7.2, XAMPP comes with PHP 5.3, not PHP 5.2.x. NetBeans IDE for PHP version 6.7.x does not support the new PHP 5.3 functions. NetBeans IDE for PHP 6.8, currently available as a development build, fully supports PHP 5.3. Also note that Xdebug installation differs between PHP 5.2.x and PHP 5.3.
Download the installer package. (XAMPP Lite does not include XDebug.). When the download is completed, run the.exe file.
On Microsoft Vista, the User Access Control feature blocks the PHP installer from updating the Apache httpd configuration. Disable UAC while you are installing XAMPP. See for more information.
You are given the option to install the Apache server and the MySQL database server as services. If you install the Apache Server and MySQL as services, you will not have to start them manually through the XAMP Control Panel. Note that you have the option to install or uninstall these services in the. If you are using the self-extracting archive, after the archive is extracted, run the file setup-xampp.bat to configure the components of the package. (The XAMPP installer runs this file automatically.).
After configuration, open the XAMP Control Panel. (You can open it manually by running the file XAMPPHOME/xampp-control.exe or from the Xampp Control Panel icon that is automatically placed on your desktop.) When you open the XAMPP Control Panel, note that the modules that are installed as services are already running. Warning: On Windows Vista sometimes xampp-control.exe will not run. You can run xampp-start.exe instead. Warning: The winmysqladmin.exe file, which is launched by the Admin button for MySQL, does not work. A cascade of error messages appears, which can only be stopped by manually terminating the winmysqladmin process.
You cannot launch winmysqladmin.exe from the command line, either. The Svc checkboxes indicate that a module is installed as a Windows service and will start automatically on system startup. You can install or uninstall Windows services by selecting or unselecting the Svc checkbox. Uninstalling a Windows service does not uninstall the module, but it does require you to start the module manually. The XAMPP control panel includes buttons for stopping and starting modules and opening their administration consoles. Checking XAMPP Installation. Run your browser and enter the following URL: The XAMPP welcome page opens:.
To ensure that the Apache and MySQL servers have been installed as system services, restart your operating system, run the browser, and enter the URL again. The XAMPP welcome page opens. Note that the XAMPP welcome page includes a menu in the left margin through which you can check the status of XAMPP components and run phpinfo, among other useful features. Phpinfo returns a screen with configuration information about your XAMPP components.
Installing and Enabling the XDebug Debugger You need to configure your PHP stack to use XDebug. The process differs if you are using, which bundles PHP 5.2.6, or, which bundles PHP 5.3. Many users have experienced difficulties in getting XDebug to work on their systems. Please see and the for assistance. XDebug on XAMPP 1.7.1 (PHP 5.2) You must download XDebug, place the.dll file in your php extensions directory, and configure php.ini to find and use this file.
Download the latest thread-safe compatible with your version of PHP. The download links are listed under Releases. Copy the.dll file to your XAMPHOME/php/ext directory. ( XAMPPHOME refers to your XAMPP or XAMPP Lite installation directory, such as C: Program Files xampp or C: xampplite.). Locate and open the active php.ini file for your XAMPP.
This is located by default in the XAMPPHOME/apache/bin directory. Confirm which php.ini file is active by running phpinfo and searching for Loaded Configuration File. Because Zend optimizer blocks XDebug, you need to disable Zend optimizer. Apache HTTP Server.
Download the. Run the installation file.msi. The installation wizard starts.
Follow the instructions. On Microsoft Vista, do not install the Apache Server to the default location, which is in Program Files. All files in Program Files are write-protected. When the installation is completed, restart the Apache server. To check that the installation is successful, run the browser and enter the following URL: The Apache welcome test page opens: Troubleshooting By default, the Apache server listens to port 80. This port can be already used by other services, for example Skype.
To solve the issue, change the port which the server listens to:. Open the Apache web server configuration file httpd.conf. By default the file is located in C: Program Files Apache Software Foundation Apache conf. Locate the line Listen 80 and change the port number, for example 8080. Save the file. Restart the Apache web server.
To check that the web server works, run the browser and enter the URL and specify the port number explicitly: You can also stop the processes that possibly listen to port 80. In the Task Manager, select the relevant file name and click End Process.
Find more information on installing and configuring the server. PHP Engine. Download the for the PHP5 version of your choice. Important: If there is no installer available for the version of PHP you want to install, you have to install it manually from the.zip file. See in the php.net documentation. When the download is complete, run the.msi installation file. The installation wizard starts.
On the Apache Configuration Directory panel, specify the directory where the httpd.conf file is located, the default setting is C: Program Files Apache Software Foundation Apache conf. The PHP processing will be enabled automatically. If you want to use the MySQL database server, choose the Complete installation option or select the MySQL and MySQLi items in the Extensions list. After the installation is completed, restart the Apache server. To check that the PHP engine has been installed successfully and PHP processing has been enabled in the Apache configuration:. Open Notepad or another text editor.
Create a file and type the following text:. Save the file in the htdocs folder as test.php.
The default path is C: Program Files Apache Software Foundation Apache htdocs test.php. Run the browser and enter the following URL: The following page opens: Troubleshooting If the page does not open:. Restart the Apache server. Check that the Apache server configuration file httpd.conf contains the following lines: AddType Application/x-httpd-php.php LoadModule php5module 'c:/php/sapi/php5apache22.dll'.
If the lines are missing, add them, save httpd.conf, and restart Apache. Refresh the page.
MySQL Database Server Find detailed information on database server. XDebug. Download. Install XDebug into the php/ folder. You will need the path to it to. Setting Up the Environment.
If your installation follows the default settings, PHP processing will be enabled automatically.
Need to setup WAMP server or Manually install Apache PHP MySQL Windows a detailed guide on how to install Apache 2.4.x, PHP 5.x or PHP 7.x & MySQL on Any version of windows (Windows 7-8-10). The guide also includes steps for x64 bit Apache & PHP on x64 bit Windows machine. You can take full advantage of your development machine’s hardware resources.
Three Pre-Requisites for Manually install Apache PHP MySQL Windows tutorial:. Apache. PHP.
MySQL. VC runtimes Apache 2.x First and foremost part of server setup. Apache listens the port 80 by default and serves the web requests.
Apachelounge is our favorite source for Apache Windows builds. To download Apache: Apache for x32 bit Windows After download unzip the the package. Find the Apache24 folder. Copy it and place it on your C: drive (Or any drive of your preference). PHP 7.x Downloading PHP is the second part of manually install apache php mysql windows guide. PHP has started developing x64 bit build for windows os lately.
We can go for x32 bit or x64 bit windows built. To Download PHP: Rename php.ini-development to php.ini This will be the configuration file we will be using to configure our php settings. MySQL MySQL will be the final step for application download and installation process. The installation is pretty simple and straight froward. Follow the onscreen instructions. This also includes external components auto installation, setup bundles with all required third-party components. VC Runtimes: You need to install the VC run-time dependencies for Apache to run under windows environment.
Download the x86 VC for 32-bit windows and x64 VC for 64-bit windows. Apache Configuration Open Apahce24 folder that we placed on C: drive(Your preferred location). Locate and open conf folder. Open httpd.conf file under the folder.
We prefer for settings configuration. Change the configuration mentioned below to your httpd.conf file. Observe the Line 179-189, Line 242-250, Line 278 & 285 for changes.
Download the configurationready. # PHP 7 configuration LoadModule php7module C:/PHP/php7apache24.dll DirectoryIndex index.html index.php AddHandler application/x-httpd-php.php PHPIniDir 'C:/PHP' # End PHP 7 configuration # # Deny access to the entirety of your server's filesystem. You must # explicitly permit access to web content directories in other # blocks below. # # Changing settings for virtual host creation #Options All #AllowOverride ALL #Require all denied Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Allow from all # # DocumentRoot: The directory out of which you will serve your # documents.
By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot 'c:/Apache24/htdocs' # # Possible values for the Options directive are 'None', 'All', # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that 'MultiViews' must be named.explicitly. 'Options All' # doesn't give it to you. # # The Options directive is both complicated and important. Please see # # for more information. # Options ALL # # AllowOverride controls what directives may be placed in.htaccess files.
# It can be 'All', 'None', or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted. Maximum execution time of each script, in seconds;; Note: This directive is hardcoded to 0 for the CLI SAPI maxexecutiontime = 30000; Maximum input variable nesting level;; If you need variable nesting in some complex array structures etc. Maxinputnestinglevel = 500; How many GET/POST/COOKIE input variables may be accepted; To process larger form input values via GET/POST maxinputvars = 1000; Maximum size of POST data that PHP will accept.; Its value may be 0 to disable the limit. It is ignored if POST data reading; is disabled through enablepostdatareading.; postmaxsize = 100M; Maximum allowed size for uploaded files.;; Change if for larger size file uploads. Extension = phpshmop.
Dll Apache as windows service: Final step for Manually install Apache PHP MySQL Windows tutorial is to install apache as windows service. It will automatically start while login. Open command prompt with administrator privilege. Goto your Apache24 directory.
cd c:apache24 (If you store Apache24 on C drive). Goto bin direcotry. cd bin.
Fire the following command. httpd.exe -k install “Apache24” Advantage of using manual installation: What benefit you get by following Manually install Apache PHP MySQL Windows tutorial when There are popular software bundles available such as XAMPP and WAMP? The main advantage of is to take advantage of x64 bit windows platform.
MySQL Database performance would be the biggest gain and separation of applications is main advantage. You can update individual component without affecting other application bundle. It works and behave more like OS integral part as it works under Linux platform.
You don’t need to open any application interface and turn anything on or off.
This article is clearly explained, how to install MySqli with EachApache. This works for me too.
To install mysqli using EachApache:. Login to WHM as 'root' user.
Banana Yoshimoto's Asleep is a collection of three novellas. Banana Yoshimoto Sonno Profondo Pdf Files Dei suoi altri libri, tutti pubblicati da. Son no profondo movie.
Either search for 'EasyApache' or go to Software EasyApache. Scroll down and select a build option (Previously Saved Config). Click Start 'Start customizing based on profile'. Select the version of Apache and click 'Next Step'.
Select the version of PHP and click 'Next Step'. Chose additional options within the 'Short Options List'. Select 'Exhaustive Options List' and look for 'MySQL Improved extension'. Click 'Save and Build'.
. These are instructions for installing on Windows 7 desktop (they may also be useful for a server install with some thought to security) using individual components rather than a one click installer. This is intended only as a testing/evaluation install via 'localhost'. Proper server configuration and security is not considered. NOTE: This assumes that you are comfortable with administering a Windows system and can use the command line. I never use Windows and I managed, but this may not be the quickest or most efficient way to do things. Make sure your Windows installation is in good shape, you clear out all the junk and stuff making it run slower (because installing all this server software certainly isn't going to make it run faster!) and that you have installed any outstanding updates.
ANOTHER NOTE: Watch out for the irritating 'Do you want this program to get control of your computer' window that comes up at various stages. Sometimes it didn't appear but you do see a shield dimly flashing in the task bar. Click and say yes.
NOTE: Make sure you use 32 bit Apache with 32 bit PHP, or 64 bit Apache with 64 bit PHP, if mixed you will get an error when you finish and restart your Apache Server. Contents. Step 1: Install MySQL. Install the MySQL database server on your PC. We will do this using the 'MSI' one-click installer for Windows. Go to and download the 'MySQL Installer for Windows'. At the time of writing this was from a very obvious graphic at the top of the screen (which I missed the first time).
Run the installation. Install MySQL products.
Accept the license. Allow the version check (optional). At 'Choose a Setup Type' accept the 'Developer Default' and click Next. A number of downloads of required software may be identified. Click Execute and follow onscreen instructions to install them. At 'Installation progress' screen, hit Execute - the MySQL software will be installed. At 'Configuration overview' hit Next to go to the basic configuration screen.
Accept all the defaults on the 'MySQL Server Configuration' and hit Next. On the password screen, supply a password for the 'root' (main administrator) user.
Make sure it's one you won't forget. You can also create a 'User' account just for Moodle with more restricted access if you like. This would be good practice on a public server but just using the 'root' user will suffice for testing.
On the Service details page, accept the defaults and hit Next and then Next a couple more times for the configuration progress. Click Finish. MySQL Workbench will open. Under Server Administration (right hand column, double click 'Local MySQL56' (or whatever you called it). A box should pop up asking for the root password. Enter the password you supplied. The server management screen should appear.
You don't have to worry too much about this. It just shows the install is working.
Step 2: Install Apache. Install the Apache web server on your PC. Scroll down the page until you find the download for the 'Apache 2.4 win32 binaries' and download.
You need to be careful that the module dll in PHP matches the version of Apache you install. Apache won't load otherwise.
Unzip the file into C:. You should end up with a directory 'Apache24' (or whatever the latest version is). Find Start All programs Accessories Command Prompt. BUT, right click, and select 'Run as administrator'. Enter the following commands cd Apache24 bin httpd -k install httpd -k start.you may well get a warning about the server name.
Give More Feedback
Don't worry about it. Don't close this window, you will need it again in a minute. To test it worked type ' into your browser. You should get a screen up to the effect that Apache is installed and working. Step 3: Install PHP. Now install the PHP scripting language on your PC. In the current stable release section click on link for Windows 5.x.x binaries and source.
Scroll down to the newest 'Zip' for VC11 x86 Thread Safe (non thread safe doesn't have the Apache dll- the VC version may be different, and you may need x64 version) PHP (again, the newest versions of PHP didn't have this but it shouldn't matter) and download.Don't. be tempted to use the Microsoft Installer version; it won't work. Open the zip file and extract to C: PHP. In a console window, type php -v to see if it worked. (You may need to set up your PATH. Alos, if you get weired error messages, or no error messages at all, read the bit on the left of where it talks about installing 'C Redistributable for Visual Studio') Step 4: Configure Apache and PHP You now need to edit Apache's httpd.conf file. In the file explorer navigate to C: Apache24 conf httpd.conf.
See More On Stackoverflow
Open it in Notepad. At the end of this file (or wherever you like if you want to be more organised) add the following lines: LoadModule php5module 'C:/PHP/php5apache24.dll' AddHandler application/x-httpd-php.php PHPIniDir C:/PHP The version of the module file matters (24 in this case).
It MUST match the Apache version installed. In the same file. Search for the line starting DirectoryIndex. Change it as follows DirectoryIndex index.php index.html Now, navigate to C: PHP, and copy php.ini-development to php.ini.
Edit this file, find the following lines and modify them as follows (all should exist already): memorylimit = 256M postmaxsize = 128M uploadmaxfilesize = 128M You need to specify the extensions required for Moodle. Find the 'Dynamic Extensions' section and change the following lines (uncomment and add the correct path): extension=c:/php/ext/phpcurl.dll extension=c:/php/ext/phpgd2.dll extension=c:/php/ext/phpintl.dll extension=c:/php/ext/phpmbstring.dll extension=c:/php/ext/phpmysqli.dll extension=c:/php/ext/phpopenssl.dll extension=c:/php/ext/phpsoap.dll extension=c:/php/ext/phpxmlrpc.dll (these are a minimum.
You may need others - e.g. LDAP - for specific functions).and save.
Back in the 'cmd' window for Apache, you need to restart it to load your changes. Httpd -k restart Step 5: Test your install Navigate to C: Apache24 htdocs and create a file called 'test.php'.
I had to change a file explorer setting to create.php files - Organise Folder and search options View and then untick 'Hide extensions for known file types'. In this file enter the single line.