Obtaining PHP
This section has details about PHP download locations, and OS issues.
- Where can I obtain PHP?
- Are pre-compiled binary versions available?
- Where can I get libraries needed to compile some of the optional PHP extensions?
- How do I get these libraries to work?
- I got the latest version of the PHP source code from the Git repository on my Windows machine, what do I need to compile it?
- Where do I find the Browser Capabilities File?
- What does thread safety mean when downloading PHP?
- Where can I obtain PHP?
-
You can download PHP from any of the members of the PHP network of sites. These can be found at » https://www.php.net/. You can also use anonymous Git to get the absolute latest version of the source. For more information, go to » https://www.php.net/git.php.
- Are pre-compiled binary versions available?
-
We only distribute precompiled binaries for Windows systems, as we are not able to compile PHP for every major Linux/Unix platform with every extension combination. Also note, that many Linux distributions come with PHP built in these days. Windows binaries can be downloaded from our » Downloads page, for Linux binaries, please visit your distribution's website.
- Where can I get libraries needed to compile some of the optional PHP extensions?
-
Note: Those marked with a * are to the best of our knowledge not thread safe; they are not recommended for use in a multi-threaded environment.
- » LDAP (Unix).
- » LDAP (Unix/Win) : Mozilla Directory (LDAP) SDK
- » free LDAP server.
- » Berkeley DB2 (Unix/Win) : http://www.sleepycat.com/.
- » SNMP* (Unix): .
- » GD (Unix/Win).
- » mSQL* (Unix).
- » PostgreSQL (Unix).
- » IMAP* (Win/Unix).
- » Sybase-CT* (Linux, libc5) : Available locally.
- » FreeType (libttf):.
- » ZLib (Unix/Win32).
- » expat XML parser (Unix/Win32).
- » PDFLib.
- » mcrypt.
- » mhash.
- » t1lib.
- » dmalloc.
- » aspell.
- » readline.
- How do I get these libraries to work?
-
You will need to follow instructions provided with the library. Some of these libraries are detected automatically when you run the 'configure' script of PHP (such as the GD library), and others you will have to enable using '--with-EXTENSION' options to 'configure'. Run 'configure --help' for a listing of these.
- I got the latest version of the PHP source code from the Git repository on my Windows machine, what do I need to compile it?
-
See the PHP Wiki for the latest instructions: » Step by Step Build Instructions
- Where do I find the Browser Capabilities File?
-
You can find a browscap.ini file at » http://browscap.org/.
- What does thread safety mean when downloading PHP?
-
Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows. Thread Safety works by creating a local storage copy in each thread, so that the data won't collide with another thread.
So what do I choose? If you choose to run PHP as a CGI binary, then you won't need thread safety, because the binary is invoked at each request. For multithreaded webservers, such as IIS5 and IIS6, you should use the threaded version of PHP.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-faq.obtaining.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.