PHP5.5.13 + Apache2.4.7

Source: Internet
Author: User
--- Getting started with restoring content --- it's really bitter to learn about PHP during this time. I believe that many cainiao people should feel the same way. After reading the Internet and most of the information, I want to share it with many programmers for a comprehensive installation method. First download the relevant jar on the official website, as shown below:

--- Getting started with restoring content --- it's really bitter to learn about PHP during this time. I believe that many cainiao people should feel the same way. After reading the Internet and most of the information, I want to share it with many programmers for a comprehensive installation method. First download the relevant jar on the official website, as shown below:

--- Restore content start ---

During the time when I learned PHP, I felt bitter. I believe that many cainiao should feel the same way. After reading the Internet and most of the materials, I want to share it with many programmers for a comprehensive installation method.

First download the relevant jar on the official website, as follows:

Because my computer is 64-bit, the download is 64-bit. Of course, you can go to the official website to download 32-bit x86.

Step 1:

(1) decompress httpd-2.4.7-win64.zip to the path you specified. I specify the path under G: \ php \ Apache24 and find httpd under conf. conf file, which is the configuration file of the apache service.

(2) EDIT http. conf, for example:

Now the apache configuration is complete, and the apache server is started.

Ctrl + R Enter cmd, open the dos interface, and then cd to your path,

At this time, you will certainly bring up an error like me. The message is:

Unable to start this program because msvcr100 dll is lost in the computer

Then, your first response must be the same as that of me to check whether the configuration file is incorrect. However, after searching for the configuration file for a long time, make sure the configuration file is correct.

Solution:

Download Microsoft Visual C ++ 2010 SP1 Redistributable Package (x64) vc10 for short. Because apache2.4 must be supported by vc10, this problem may not occur in earlier versions.

Download link: http://www.microsoft.com/zh-cn/download/confirmation.aspx? Id = 13523

By now, the apache configuration is almost complete.

Step 2:

The apache server is mounted to the system service for self-start. What is self-start? That is, double-click can be used to control it through start and stop, instead of using the dos interface each time. For example:

  

After executing this sentence, you will certainly have the same problem as me. Why? This is due to win7 management permission issues

Solution:

  

You only need to hook it up and run it.

Service.

I believe that your mood is as pleasant as I am now. After completing apache configuration, I believe that many cainiao are excited.

Next, configure PHP.

Step 3:

First, decompress php-5.5.13-win32-vc11-x64.zip to your own directory. I am in the G: \ php \ php5.5.13 directory, and then continue to open the httpd. conf configuration, as shown in:

First, introduce php to the configuration file. Of course, 2_2.dll is related to the version. If it is apache2.2, 2_2.dll must be introduced; otherwise, errors may occur, I have also tried this.

After the introduction, perform the test first, restart apache2.4 server, and then start an error. Of course, the error can be viewed in the error. Here it is different, at this time, you must be instantly depressed. I feel that the configuration that is almost completed has failed. It is estimated that you must capture the problem over there.

Solution:

Download Visual C ++ Redistributable for Visual Studio 2012 Update 4 (vc11 for short). This is because php5.5.13 is installed with vc11.

Download link: http://www.microsoft.com/zh-cn/download/confirmation.aspx? Id = 30679

At this time, you can start the Server properly when you start the server.

Finally, several php statements are parsed on the Configuration:

Then start apache. Of course, it will certainly be able to start normally, and this will be a success.

Another detail is to modify php. ini-development. You only need to change it to php. ini, which is the configuration file of php.

Well, then we will test our labor results. I believe that we are excited at this time.

Put demo. php under htdocs, which is a simple echo input statement, which is displayed as follows, which proves that the operation is successful.

Haha, I will write it here today. I will continue to learn php tomorrow.

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.