Download Php5apache2_4.Dll Win64
Apache 2.x on Microsoft Windows This section contains notes and hints specific to Apache 2.x installs of PHP on Microsoft Windows systems. We also have. Note: You should read the first! Note: Apache 2.2 Support Users of Apache 2.2 should note that the DLL file for Apache 2.2 is named php5apache22.dll rather than php5apache2.dll and is available only for PHP 5.2.0 and later. See also You are strongly encouraged to consult the to get a basic understanding of the Apache 2.x Server. Also consider reading the for Apache 2.x before reading on here.
Apache 2.x is designed to run on the Windows version designated as server platforms, such as Windows NT 4.0, Windows 2000, Windows XP, or Windows 7. While Apache 2.x works tolerably well on Windows 9x, support on these platforms is incomplete, and some things will not work correctly.
There is no plan to remedy this situation. Download the most recent version of and a fitting PHP version. Follow the and come back to go on with the integration of PHP and Apache. There are three ways to set up PHP to work with Apache 2.x on Windows. You can run PHP as a handler, as a CGI, or under FastCGI. Note: Remember that when adding path values in the Apache configuration files on Windows, all backslashes such as c: directory file.ext should be converted to forward slashes: c:/directory/file.ext. A trailing slash may also be necessary for directories.
# LoadModule php5module 'c:/php/php5apache2.dll' AddHandler application/x-httpd-php.php # configure the path to php.ini PHPIniDir 'C:/php' Note: Remember to substitute your actual path to PHP for the C:/php/ in the above examples. Take care to use either php5apache2.dll or php5apache22.dll in your LoadModule directive and verify that the referenced file is in fact located at the file path that you point to in this directive. The above configuration will enable PHP handling of any file that has a.php extension, even if there are other file extensions. For example, a file named example.php.txt will be executed by the PHP handler. To ensure that only files that end in.php are executed, use the following configuration instead.
Please for the love of god, download the threaded version. I spent over an hour trying to figure out why php5apache2.dll could not be found, and while desperately looking through manuals I went into the php 5 structure and found that it doesn't exist in the non-threaded version.
This really could use a mention somewhere other than the PHP 5 structure, like the paragraph to the left of the homepage which talks about which PHP version to choose, or this part of the manual which covers Apache. Anywhere but structure, seriously. I would have never guessed to look there. If you come with an error like this: Wrapper xxxx cannot be accessed: blah blah blah when starting Apache.
You have 3 choices to solve this problem. Any one of them would work. Reinstall your applictions in paths that do not contain spaces. Place a backslash before every space in the path set to the FcgidWrapper directive in httpd.conf, like: FcgidWrapper 'C:/Program Files/PHPServer/PHP/php-cgi.exe'.php 3. Use mklink (or junction for windows XP/2003) to create a symbol link to the path of php-cgi.exe's containing folder.
Run cmd.exe and type this command: mklink /j C: php 'C: Program Files PHPServer PHP'. Or this command if you are on Windows XP/2003 junction C: php 'C: Program Files PHPServer PHP' Remember this: you need to download junction.exe to use it.
Don't know where to download? Then the FcgidWrapper directive should be like this: FcgidWrapper 'C:/php/php-cgi.exe'.php Don't forget to change the paths above to your working paths. Installing Apache and PHP on Windows 7 Home Premium on a Gateway NV75S laptop with a quad AMD A6-3400M All I need to do with these programs is to test my website out on my laptop.
I have HTML and PHP files. I do not need MySQL as I use html5 storage. Getting and installing Apache 1 In your browser go to h t t p: / / h t t p d. O r g / d o w n l o a d.
C g i (without the spaces) 2 Click on httpd-2.2.22-win32-x86-nossl.msi (this is a self-installing executable file without crypto. Here is yet another aspect of the 'faulting module php5ts.dll' crash when trying to start apache. I installed Apache 2.2.18, Mysql 5.1.57 and PHP 5.2.17 (apache module, VC6 thread-safe - initially with no extensions) on a fresh WinXP SP3 system. The versions chosen were because I was trying to replicate as near as possible apps on my Linux server. Everything configured and ran properly without php extensions, so I then reran the msi installer and chose the necessary extensions. I reconfigured httpd.conf but apache then just kept crashing. Eventually I came across the 'fix' mentioned elsewhere 'copy libmysql.dll to apache folder' and suddenly it worked.
I checked and the php installation folder was in the system path. The answer was simply that I had never rebooted. It seems that whatever process controls windows services only reads the path at boot time. I was thrown by assuming that if I started httpd from the command line then it would inherit that path.
Here are a few diagnostic tips that helped me along the way: Try the CLI command: php -m and see that the command line version loads all the modules you asked for. In php.ini, enable displayerrors = On and displaystartuperrors = On The latter pops up a window saying which extension it has trouble loading.
Of course it is not perfectly clear, because it says something like 'unable to load 'C: php ext phpmysql.dll' - The specified module could not be found'. It lies - it really does find that dll, but it must have failed on the dependency of libmysql.dll. If you come with an error like this: Wrapper xxxx cannot be accessed: blah blah blah when starting Apache. You have 3 choices to solve this problem. Any one of them would work. Install your applictions in paths that do not contains spaces.
Place a backslash before every space in the path set to Wrapper, like: FctidWrapper 'C:/Program Files/PHPServer/PHP/php-cgi.exe'.php 3. Use mklink (or junction for windows XP/2003) to create a link to the path you have installed php in. Run cmd.exe and type this command: mklink /j C: php 'C: Program Files PHPServer PHP'. Or this command if you are on Windows XP/2003 junction C: php 'C: Program Files PHPServer PHP' Remember this: you have to download online to use this application. Don't know where to download? Go and Google it.
Then the FctidWrapper directive should be like this: FctidWrapper 'C:/php/php-cgi.exe'.php Don't forget to change the paths above to your working paths. Version httpd-2.4.23-win32-VC14.zip php-5.6.26-ts-Win32-VC11-x86.zip install path c:/wamp/ php path c:/wamp/php apache path c:/wamp/Apache24 used as Apache handler modify as below #below for apache #modify c:/ to c:/wamp/ #modify ServerName to localhost:80 and remove# #DirectoryIndex insert index.php #below for php #rename file php.ini-production to php.ini LoadModule php5module 'C:/wamp/php/php5apache24.dll' PHPIniDir 'C:/wamp/php/' AddType application/x-httpd-php.php AddType application/x-httpd-php.html AddHandler application/x-httpd-php.php And things goes well! Windows Apache 2.4.12 (x64) PHP 5.6.5 (x64) If your Apache still outputs code instead of parsing a script. Make sure you put a trailing ' ' at the end of the PHPIniDir value and use ONLY ' ' in path to PHPIniDir. And '/' in LoadModule. A very subtle 'feature' of Apache module. Lost several hours after upgrading to apache x64 to resolve the issue.
Httpd.conf ############################################### PHPIniDir 'C: folder to hold php ' LoadModule php5module 'C:/folder/to/hold/php/php5apache24.dll' AddHandler application/x-httpd-php.php ###############################################.Installed and Working 1- Fell Swoop - UPDATED. Installed on Windows 8.1 XPS 12 - Dell 8GB RAM 128GB SSD - Notes - Complications due to Apache latest version causes issues with the PHP handler on install. Following below will get it run right off the bat. Getting and installing Apache 1 In your browser go to h t t p: / / h t t p d.
O r g / d o w n l o a d. C g i (without the spaces) - You will need to go 'Other Files', 'Binaries', 'W32', and then your installer MSI will be listed as below. 2 Click on httpd-2.2.25-win32-x86-nossl.msi (this is a self-installing executable file without crypto. I am very new to PHP. I was looking to start a Drupal project and spend almost 4 hours to get Apache and Drupal talk each other. What I found out was there are lots of mismatch in documentation and snapshots.
As I am using Windows I found out following two installation bundles works without any issue. Php-5.3.28-Win32-VC9-x86.msi httpd-2.2.25-win32-x86-openssl-0.9.8y.msi Make sure you install your packages directly into into C: drive in Windows machine (If there are spaces in the file paths it would cause issues). Hope this would help someone. Hi guys, In my case, it work right away when I change the version to thread-safe.
I spent some time trying the different things that were posted here and I was kind of lazy about downloading a different version, but once I test it with a thead-safe it started right away. So be sure you try this.
I was on Apache 2.2, XP and php 5.2.17 thread-safe This is my conf: LoadModule php5module 'c:/php5/php5apache22.dll' AddHandler application/x-httpd-php.php #configure the path to php.ini PHPIniDir 'C: php5 ' Good luck! Like someone else mentioned, on the Windows download page for PHP, ignore the warning about not downloading the VC9 compiled installers for the Apache.org version of Apache. Whoever wrote that is guaranteeing that people install a PHP that breaks their Apache server. (On Windows 7 anyway.) The installer failed to write the correct path info to httpd.conf, and even after fixing that manually, Apache wouldn't start because of missing dlls. Ignore that dumb warning and get the newest installer anyway. Everything just plain works with no hassle and no hunting down dll files over google.
Good God finally I was able to make PHP 5.2 work on Apache 2.4. For those still having problems with 'You don't have permission to run php-cgi.exe', you must replace 'Order allow,deny' and 'Allow from all' from the PHP directory block with 'Require all granted'. They must have changed the format with Apache 2.4 since the old method used to work just fine for me before. So the usual method of setting up CGI, I'm sure you already know that you should add these 3 lines to httpd.conf: ScriptAlias /php/ 'c:/php/' AddType application/x-httpd-php.php Action application/x-httpd-php '/php/php-cgi.exe' And now add the directory for PHP: AllowOverride None Options None Require all granted Important: Notice that instead of 'Order allow,deny' and 'Allow from all' added into the PHP directory as usual, I replaced them with 'Require all granted' as I mentioned above. I wanted to install PHP5.3 for Apache2.2 with PostgreSql 9.0 support on WindowsXP. It took me hours to solve it. The following possible problems occur: - You should use the VC6-compiled version of php instead of VC9.
The later one does not work properly with apache. the postgres handler dlls are not working in PHP5.3. The symptom was a misleading and very confusing error message: Unable to load dynamic library 'c: Progra1 PHP ext phppgsql.dll' The dll itself was there but when it started to load the other dll (libpq.dll) from the php directory then this caused an error. This error was misinterpreted internally in the above message. The solution was NOT to use the libpq.dll from php but use it from postgres distribution instead. For this purpose I inserted the following line into the apache httpd conf: LoadFile 'C:/Progra1/PostgreSQL/9.0/bin/libpq.dll' This preloads the dll.
When phppgsql.dll would load his own libpq.dll, then there is the preloaded version of this file in the memory already. This prevents us from using the bad version of dll. I hope I helped. After using the Windows installer for Apache 2.2 and PHP 5.3.2, and installing PHP as an Apache module (not CGI), Apache would crash and fail to start. There were two problems with the configuration files for Apache and PHP.
First, make sure your Apache configuration file reads something similar to: LoadModule php5module 'C:/Program Files/PHP/php5apache22.dll' PHPIniDir 'C:/Program Files/PHP/' While other users have disabled some or all of the MySQL extensions to prevent all three from running at the same time, I have all of them enabled. However, I do not have PostgreSQL, so I needed to comment out loading the phppgsql.dll in my php.ini file, as follows:;PHPPGSQL;extension=phppgsql.dll This stopped Apache from crashing and started successfully. Here is how I created a silent install for Apache2.2 and PHP5.2.10 on Windows XP (running on a MacBook Pro): Download Apache2 and PHP5 installer files in a directory and update the msi file names in the following commands. To have PHP installer find Apache2, do not forget APACHEDIR! Msiexec /i apache2.2.11-win32-x86-nossl.msi /passive ALLUSERS=1 SERVERADMIN=admin@localhost SERVERNAME=localhost SERVERDOMAIN=localhost SERVERPORT=80 INSTALLDIR=c: apache msiexec /i php-5.2.10-win32-installer.msi /qn APACHEDIR=c: apache INSTALLDIR=c: php ADDLOCAL=extphpmssql,apache22 net stop 'Apache2.2' net start 'Apache2.2'. Can anyone tell me: Why PHP + Apache 2.2.x installation is such a big deal.
I am a Java Developer and currently I am trying to learn PHP, but I am not able to install PHP and use it the way we use Java. I could use steps mentioned in comments and run home.php from htdocs folder of apache. But, could anyone please tell me DO I HAVE TO PUT EVERY FILE IN THE SAME FOLDER? Can't I make my workbench where I can put a good project hierarchy and use it like other languages. Its horrible. May be my question is little silly, but I need help for sure. For PHP 7 configuration just add these lines to the end of httpd.conf file (of Apache): PHPIniDir '/alex/apps/php-7.2.3/' LoadModule php7module 'C:/alex/apps/php-7.2.3/php7apache24.dll' SetHandler application/x-httpd-php Here '/alex/apps/php-7.2.3/' is PHP path.
Rename php.ini-development or php.ini-production to php.ini 2. Uncomment / set extensiondir parameter in php.ini; Directory in which the loadable extensions (modules) reside.;; extensiondir = './'; On windows: extensiondir = 'ext' You are set. Just re/start Apache server (httpd -k restart).
If you install PHP as an Apache CGI binary, you can add: AddHandler cgi-script.php into Apache httpd.conf, and add shebang line to every PHP scripts like: #!php. But adding shebang line has a disadvantage that if you decided to install PHP as an Apache module afterwards, then the shebang line WILL appear in the web page. In fact, you do NOT need to add shebang line to every PHP script even if you install PHP as an Apache CGI binary, because you can add: ScriptInterpreterSource Registry-Strict into Apache httpd.conf, and make the registry file and merge it like: Windows Registry Editor Version 5.00 HKEYCLASSESROOT.php Shell ExecCGI Command @=' 'C: Program Files PHP php-cgi.exe '. Then you will NOT need to change the PHP scripts which do not contain shebang line. To do a silent install of PHP wich correctly modify the httpd.conf file, you HAVE (I find no other way) to put the directory of the Apache inside the INSTALLDIR's MSI option. The APACHEDIR doesn't seem to work. That's the only way I've make it work.
Maybe it's because my Apache is not in the default directory, I don't know, but there is a solution for people who cannot make work the silent install (for those who are told by the php setup that it cannot find the httpd.conf file). Hope it helps someone. Some XP machines are having troubles with the PHPIniDir derective not finding the php.ini (or so they think).
Directories that do contain a php.ini file are returned as empty and it defaults to the next method of finding php.ini (often C:/windows or C:/winnt). This is likely caused by read permissions not being set correctly on NTFS file systems, however, it has occurred when no cause could be identified. If setting correct file permissions doesn't work, the easiest way around this problem is moving php.ini to the Apache directory or adding the HKEYLOCALMACHINE SOFTWARE PHP IniFilePath string to your registry and setting it to the correct directory. Apache 2.2 crashing on WindowsXP/Apache2.2/php5.3.8Win32.VC9-x86 There is a distinction between LoadFile and LoadModule. LoadModule is typically used to load Shared Objects (.so), and comes in very handy for Dynamically Shared Objects LoadFile on windows it typically used to load DLL Please note: In order for a LoadMoudle directive to work on a DLL the module must be compiled into the library. If you use VI you can usually locate the module, but the file is compiled, don't write it!
A dll can be located anywhere on the system. A.so should be located in your Apache install modules folder. What worked for me for Windows XP/Apache2.2/php5.3.8Win32.VC9-x86 PHPIniDir 'C:/PHP/' LoadFile 'C:/PHP/libeay32.dll' LoadFile 'C:/PHP/libpq.dll' LoadFile 'C:/PHP/libsasl.dll' LoadModule php5module 'C: PHP php5apache22.dll' This comment is to support the Apache startup, NOT serve PHP pages.
If you are having problems with php5ts.dll. Php5ts.dll is php5.dll but thread safe, hence the 'ts' at the end. Software Details: MySQL 5.5 PHP 5.2.17 VC6 Non-thread safe Apache 2.2.19 Win XP SP3 Here's how I fixed the problem: I've been looking online on how to integrate Apache with PHP right so I come across this code to put in my httpd.conf apache configuration file: LoadModule php5module 'C:/php/php5apache22.dll' AddHandler application/x-httpd-php.php PhpIniDir 'C:/php' I paste it in a voila! I know its not news, but I looked and lo and behold its that darn php5ts.dll file! In short: I installed PHP 5.2.17 VC6 Non-Thread Safe. I then installed the PHP 5.2.17 VC6 thread safe so I could copy these files from the thread safe installation into the PHP 5.2.17 VC6 Non-Thread safe installation directory: php5apache22.dll php5apache22filter.dll Not sure if that last file is needed but I added it anyway.
Then I uninstalled the thread safe installation. The Apache service started right up. Had some problems with MySQL too: When I installed it the first time it was fine. Then I uninstalled it and got that 'Service could not be started Error: 0' message. To do a complete deletion do this: 1) Use MySQLInstanceconfig.exe to remove the service 2) Use the 'Add/Remove programs' to uninstall MySQL 3) Delete the 'c: program files MySQL directory' 4) Delete the 'c: documents and settings All Users Application Data MySql ' directory 5) Launch regedit.exe from STARTRUN and press ctrl+f for the find function and type in MYSQL to find and get rid of anything 'MySQL' in there.
Press F3 to find repeat instances of 'MySQL' I hope this helps you. I spent about 30hrs uninstalling and reinstalling this crap. If Apache won't start after PHP install, check for this scenario: When I followed the instructions for the Windows installer, using Apache HTTP server 2.2.17, the install completed normally but Apache would then fail to start. It turned out that the installer was not properly configuring the last section of Apache's httpd.conf file: #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir 'c:/php/' LoadModule php5module 'c:/php/php5apache22.dll' #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL The text above is the correct configuration (in my case, I had asked the installer to place PHP into directory C:/PHP.) However, the installer omitted the string 'c:/php/' from the two lines above where you can see them. I had to edit the file, and add that string in manually, before Apache would start correctly.
I got PHP 5.2.10 working on Apache 2.2 NOT using the.msi for PHP after a half day of trying different versions of PHP and Apache as well as changing everything from paths to folders. Eventually from reading many of the notes listed here I thought I'd download the threadsafe version but all I used from it were two.dll files. I took the php5apache22.dll and the php5ts.dll and swaped them out in my PHP folder and bingo! Started working like a charm.
The php5apache22.dll was probably unnecessary but I switched it out anyway. Add php5ts to your PHP folder. After installing Apache 2.2 and PHP 5.3.7 I could not get the phpinfo.php to display. When i attempted to pull up the php info page my browser would load the php script instead. I had added the following line to the Apache conf file LoadModule php5module 'c:/php/php5apache22.dll' AddHandler application/x-http-php.php PHPIniDir 'c:/php' The issue was in the second line of code for the AddHandler, the code was missing a d after x-http, when I saw this typo I added the d, saved the conf file, cleared the cache of firefox, stopped Apache then started Apache again and the php info displayed correctly so make sure the line reads as follows AddHandler application/x-httpd-php.php. This is old news to some. But people with Apache 2.0.55 / PHP 5.1.2 might like a reminder before they pull their hair out!
(Some of us have ISPs using older version and need to test on a like version before we upload.) If using PHP 5.1.2, to run Apache as a module, do.not. use Stephan's 'php5apache2.dll' from That is for pre-5.1.2!.There is a 'php5apache2.dll' included with Windows PHP 5.1.2 zip file by default. If you forget this and overwrite the included DLL with Stephan's (as I did) you'll spend hours attempting to escape 'DLL hell', with no success.
Php5apache2_4.dll-php-5.6-win64.zip Download
I just spent 5 hours repeatedly trying, usuccessfully, to get Apache to parse php files instead of sending them to the browser. I am setting up a Win 7 Pro box, and went through the configuration several times, as well as trying other configuration directives I found elsewhere by searching. Nothing worked.
I was tearing my hair out and ready to cry. I have set this up numerous times on XP with no problem. But on Win 7 Pro it wasn't happening. Eventually I found this code, which worked perfectly (after taking out directives from httpd.conf that weren't working, of course) LoadFile 'C:/php/php5ts.dll' LoadModule php5module 'C:/php/php5apache2.dll' #PHPIniDir 'C:/Windows' #PHPIniDir 'C:/Winnt' AddType text/html.php.phps AddHandler application/x-httpd-php.php AddHandler application/x-httpd-php-source.phps If you've been having the same problem, try this. You're welcome. Verrrrrrrry important note: If you enable multi-byte strings for your installation of PHP, the extension loaded MUST be the first extension in the list.
Apache, NOR PHP will generate any error messages or warning information in the error log or in system logs about this. This information needs to be included in the Readme or in the distributed INI files. The recommended PHP ini's should place extension=phpmbstring.dll at the top of the list of extensions. I had completely forgotten about this when recently upgrading php on a test server; and almost set out to re-install apache. If you find that Apache crashes when you attempt to start it, its likely that one of the PHP extensions is the cause.
This is likely the case if you use the PHP Windows installer and choose all extensions in the setup program to be installed on disk. Unfortunately, it will also enable all extensions too causing potential problems. For example, after installing PHP 5.2.11 and Apache 2.2 under Windows XP, Apache kept crashing. This was due to using all three versiosn of mysql extensions attempting to run: PHPMYSQL extension=phpmysql.dll PHPMYSQLI extension=phpmysqli.dll PHPPDOMYSQL extension=phppdomysql.dll. I was struggling with configuring PHP 5.2.17.
(msi version) for Apache 2.2.22. On Windows 7. Apache was working before fine. The following failure message came as I tried to start Apache: 'The requested operation has failed!'
After many hours finally the comment from 'bdav 05-Mar-2012 02:23' helped me and the following code in httpd.conf made Apache working with PHP: LoadModule php5module 'c:/php/php5apache22.dll' AddHandler application/x-httpd-php.php PHPIniDir 'c: php ' I hope I can save some hours of frustration to some beginners like me. Man I had a heck of time. I was really starting to think I was just too simple minded.
I run PHP on iis7 as well as apache. My os is win7 pro. My host uses php 5.2 sooooo. To run on apache 2.2 download nonthread safe version (my case VC6 x86 Non Thread Safe (2011-Jan-06 18:38:35)) and add this to the end of your apache httpd.conf file #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir 'c:/php/' LoadModule php5module 'c:/php/php5apache22.dll' AddHandler application/x-httpd-php.php SetHandler application/x-httpd-php #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL fired right up.