Sharing experience on configuration of collaborative work between apache and php. Php is an unfamiliar term in today's network technology. most developers may think of php for websites or the web, which is both free and open-source, it is easy, practical, and other advantages to have php in today's familiar terms of network technology, think of websites or web, most developers may think of php, a free and open source, it is easy, practical, and other advantages that have attracted the favor of many IT technicians in the world. I am a JAVA developer. it is not an accident to contact PHP, but some of my work needs, in college, I also went crazy to learn php for the first time, but I was always a task for every young man, but after all, I think more about myself.
For various reasons, I have been engaged in JAVA technology development, but I will also share some research on PHP knowledge in my spare time. First of all, I have to sharpen my skills first, the analogy may not be quite appropriate. Here, I would like to say that if a developer is engaged in JAVA development, the teacher may initially teach you how to install JDK and how to use JDK, so is php, it also requires a series of environment configurations. Below are some of my php scripts that have been successfully run after testing!
The code is as follows:
1. name php. ini-development as the php. ini file and copy it to the windows directory of drive C.
2. copy php5ts. dll and libmysql. dll to the system32 directory under drive C windows.
3. copy php_gd2.dll, php_mysql.dll, and php_mbstring.dll to the system32 directory under the ext Directory of the php directory.
Find the php. ini file in windows
Find extension = php_gd2.dll and remove the semicolon before it.
Find extension = php_mysql.dll and remove the semicolon before it.
Find extension = php_mbstring.dll and remove the semicolon before it.
Mysql apache php configuration collaboration
Open httpd. conf in the conf folder of apache.
Search # Add a row after loadmodule foo
LoadModule php5_module C:/php5/php5apache2_2.dll
Add a row after finding AddType
AddType application/x-httpd-php. php
Find the DirectoryIndex index.html and add it
DirectoryIndex index.html. var index. php
Modify the apache file path in the httpd. conf folder.
Search for DocumentRoot and change it to the path you want.
Modify the Directory to the path you want.
The
Apache version is (httpd-2.0.64-win32-x86-no_ssl.msi)
PHP scripts are (php-5.2.17-win32-vc6-x86.zip)
...