php5.4.3 Assembly Tutorial

Source: Internet
Author: User
php5.4.3 Installation Tutorials
Php5.4.x has been released for some time, the latest version is 5.4.3. Webmaster has not upgraded to this version, and webmaster also recommended that you still use the 5.3.x version. The reason for this is that php5.4 has just been released, and its modification frequency is certainly large, and PHP has not officially released the Windows platform MSI installer, but instead provides the compression package. This also to a certain extent, the PHP official for the release of php5.4 is not perfect.
However, the webmaster also found that the network is already someone searching Php5.4.3 installation tutorial, it is necessary to compress the package manual configuration, to bring inconvenience to everyone, this is also I suggest you use php5.3 reason, because in the Windows platform you can download the installation program to install, very convenient. As for Linux, of course, it does not matter, because it is to compile the installation anyway.
Below, I give the php5.4.3 installation process:
1, to http://windows.php.net/download/download Zip compressed package, the source of the compressed package extracted to a folder, such as: D:\php
2, open the D:\php directory, renamed Php.ini-production to PHP.ini, the official recommendation we use this version of the php.ini, because its settings have been optimized.
3, although optimized beforehand, you still need to manually configure some additional information, open PHP.ini, configure the following information
Extension_dir: PHP Load extension directory, default in the PHP installation directory of the Ext folder, so you just find this configuration in php.ini, remove its front semicolon can be modified after the shape such as: Extension_dir = "ext"
Extension = Xxxxx.dll: Open the extension library that needs to be loaded, search for "Dynamic Extensions" in php.ini, and then scroll down, you will find a lot of lines, such as the string, such as:
; Extension=php_bz2.dll
; Extension=php_curl.dll
; Extension=php_fileinfo.dll
; Extension=php_gd2.dll
; Extension=php_gettext.dll
..........
Remove the previous semicolon to open the appropriate extension, if you are not sure which extensions should be opened, it does not matter to open the MySQL-related extensions, if later to use an extension library found not available, then to configure also can.
After completing the third step, the configuration of the PHP side is finished, remember to save after modifying the php.ini. Configure the Web server below, take Apache as an example
4. Open Apache configuration file, httpd.conf, add at the end of the file:
#
LoadModule php5_module "D:/php/php5apache2_2.dll"
AddHandler application/x-httpd-php. php
# Configure the path to PHP.ini
Phpinidir "d:/php"
A description of the above code:
LoadModule php5_module "D:/php/php5apache2_2.dll", load the PHP installation directory corresponding to the Apache version of the DLL file, you should check your PHP installation directory look to use the correct DLL, Some use Php5apache2.dll, don't make a mistake.
AddHandler application/x-httpd-php PHP, let Apache interpret PHP files.
Phpinidir "d:/php" to specify the directory where the php.ini file resides.
Remember that when you add a path value to an Apache configuration file in a Windows environment, all backslashes, such as C:\directory\file.ext, should be converted to forward slashes: C:/directory/file.ext. For a directory, it must also end with a slash.
5, finally add the system environment variables for PHP, right-click "My Computer"-"Properties"-"advanced"-"Environment variables", in the "System variables" column found "PATH", double-click Open. Add at the end of the variable value
;D: \php
, add your PHP installation path to the environment variable.
At this point, we have completed the installation of php5.4.3. If you have uninstalled the PHP version that was installed with the MSI installer before the installation, and you have not had time to restart your computer, you should restart your computer now to complete the uninstallation process so as not to cause an unexpected situation.
After restarting, create a new index.php in the Web root directory, and write the following code:
Phpinfo ();
?>
Launch Apache, Access: http://localhost, if the version is displayed as php5.4.3, then you have installed successfully!
The above installation process is really cumbersome, a little careless will be due to inadvertent error caused Apache can not start or PHP can not load the expansion of the library, and so on, this is the webmaster recommended that you install php5.3 on the Windows platform one of the reasons.
php5.4.3 installation on the introduction here, I hope that everyone has help, there are problems can be thread Oh ~

http://www.phptogether.com/archives/12390

1/F Pengzhaocheng16 2012-06-14

Php5ts.dll
The Php5ts.dll file is a PHP kernel dynamic link library file that cannot be used by the PHP parser without this file.
So when Apache loads PHP in Windows, Apache doesn't just load PHP's Apache module
LoadModule Php5_module Modules/php5apache2_2.dll
Specify what type of file to parse with the PHP parser
AddType application/x-httpd-php. php
It is important to copy the Php5ts.dll file into the searchable system directory, which is the environment variable for Windows such as C;\windows\system32. I put it in the Apache2/bin.
In addition, when PHP supports MySQL, the Php5ts.dll file also needs Libmysql.dll support, so the Libmysql.dll file is also copied to the searchable path. I put Libeay32.dll,ssleay32.dll,php_curl.dll,php5ts.dll libmysql.dll in Apache2/bin.

2/F Pengzhaocheng16 2012-06-14

Tomcat provides PHP service configuration:
Http://amixyue.blogbus.com/logs/107621313.html

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.