Php and apache2 Configuration

Source: Internet
Author: User
Export dldx. csdn. netfd. php? I149641054414838s8f59530d135ffccd6663f9f784f24f5f: If the php5apahce2. dll file cannot be found or the preparation is unsuccessful! Please do not subscribe

1, install apache2http: // httpd.apache.org/download.cgi download php unzip to php-5.3.5-Win32-VC6-x86.zip http://dldx.csdn.net/fd.php? I = 149641054414838 s = 8f59530d135ffccd6663f9f784f24f5f emphasize that if the php5apahce2. dll file cannot be found or the preparation is unsuccessful! Please do not subscribe

1, install apache2 http://httpd.apache.org/download.cgi

Download php extract php-5.3.5-Win32-VC6-x86.zip http://dldx.csdn.net/fd.php? I = 149641054414838 & s = 8f59530d135ffccd6663f9f784f24f5f

It should be emphasized that if the php5apahce2. dll file cannot be found or the preparation is unsuccessful! Please do not download php high version or vc9 vc11 version. It may not succeed. Also, do not download binary files on the php website. Download zip files,

What version of apache do you need to pay attention to when loading the php module to pick up files! If it is apahce2.2, select and set the php5apache2_2.dll file apahce2, and specify the php5apache2. dll file.

2,

Find httpd. conf in the apahce/config directory.

Add the following code

Find the decompressed php Directory

# Load php module LoadModule php5_module D:/php/php-5.3.5/php5apache2. dll # initialize php file PHPIniDir "D:/php/php-5.3.5" AddType application/x-httpd-php. php. phtml


This does not need to be configured. By default, the htdocs file under the apahce directory is placed in your php project webpage.

# Config virtual directory
 
  
DirectoryIndex index.html index.htm index. php Alias/myVoid "D:/php/pro"
  
   
# Permission access Setting Order aliow. denyAllow from all
  
 

Find php. ini-developers in the php Directory and change the file name to php. ini.

Open the php. ini file ctrl + f search extension_dir = and remove the previous comment. Change the comment to the following code: Specify the path to decompress your php file.

 On windows: extension_dir = "D:/php/php-5.3.5/ext"



Test

Write a file hello. php In the specified directory.

 




OK ------------------------------------------------

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.