Configuration experience of collaborative work between apache and php

Source: Internet
Author: User
In my spare time, I will also share some research on PHP knowledge with you. First of all, to do something nice, we must first sharpen the tool. it may not be quite appropriate. php also needs a series of environment configurations, below are some of my php configuration manuscripts. after testing, php has been successfully run. it is a familiar term in today's Internet technology. most developers may think of php for websites or the web, A free, open-source, easy-to-use, and other benefits is favored by many IT technicians in the world. I am a JAVA developer and it is not an accident to contact PHP, but some of my work needs. I went to college and went to study php in a hot and crazy way, but the hot stuff was something that every young man would have done after all, however, after the heat, we need to reflect on ourselves.

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)

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.