Configuration experience sharing for working collaboratively between apache and php

  • 2020-06-01 08:25:59
  • OfStack

php in today's a familiar network technology noun, think website or web might most developers would think php, one is free and open source, easy and practical 1 some benefits such as to have the favour of many IT technical personnel in the world, I am 1 JAVA developers, contact PHP is not an accident, but some need 1 in my own work, in university period was 1 hot and crazy to study php, but head hot after all, is what every young people will have, but after the heat more is to reflect on yourself.

For various reasons, I have been engaged in the development of JAVA technology, but I also do some research on PHP knowledge to share with you in my spare time. First, if you want to do a good job, you must first sharpen your tools, which may not be an appropriate metaphor. What I want to say here is that if you are working on the development of JAVA, maybe your teacher will initially teach you how to install JDK and what JDK is used for, then php also needs the environment configuration of series 1. Below are some scripts that I configured php, which have been successfully run after testing!
1. will php.ini-development named php.ini file   Copy to c The plate windows directory  
2. will php5ts.dll and libmysql.dll Copy to c disc windows Under the system32 directory  
3. in php The directory ext Under the directory php_gd2.dll and php_mysql.dll and php_mbstring.dll Copy to system32 directory  
 in windows find php.ini file  
 To find the extension=php_gd2.dll Remove the preceding semicolon.  
 To find the extension=php_mysql.dll Remove the preceding semicolon.  
 To find the extension=php_mbstring.dll Remove the preceding semicolon.  
mysql apache php  configuration   To work together  
 Open the apache the conf The folder httpd.conf 
 To find the # loadmodule foo After joining 1 line  
LoadModule php5_module C:/php5/php5apache2_2.dll 
 To find the AddType After joining 1 line  
AddType application/x-httpd-php .php 
 To find the DirectoryIndex index.html After joining for  
DirectoryIndex index.html index.html.var index.php 
 Modify the apache The file path is httpd.conf folder  
 To find the DocumentRoot Change it to the path you want  
 To find the Directory Change it to the path you want above  

Above adopted
The version of apache is (httpd-2.0.64-win32-x86-no_ssl.msi).
The version of php is (

Related articles: