PHP Basic Tutorial-apache

Source: Internet
Author: User
Tags php3 file

  


Brother even PHP Training: How to configure Apache. First, install and configure the PHP3

1. Unpack the package to your favorite directory such as: C:PHP3

2. Rename the C:php3php3.ini-inst file to Php3.ini and copy to C:windows

3, modify the Php3.ini.

A, change the doc_root=xxxx to your own Apache root directory

Like this: Doc_root=c:apachehtdocs

B, extension_dir=xxxx change to your own PHP3 installation directory

Like this: extension_dir=c:php3

C, if you need the appropriate database support to find

; Windowsextensions

Extension=php3_mysql.dll I used MySQL so I removed the item

; Extension=php3_calendar.dll

; Extension=php3_dbase.dll

; Extension=php3_gd.dll

; Extension=php3_dbm.dll

; Extension=php3_mssql.dll

; Extension=php3_zlib.dll

; Extension=php3_filepro.dll

; Extension=php3_imap4r1.dll

; Extension=php3_ldap.dll

; Extension=php3_crypt.dll

; Extension=php3_msql2.dll

; Extension=php3_odbc.dll

and remove the ";" On the response item Hit it alive.

Next, install and configure Apache.

Open the Apache directory under confhttpd.conf to configure

Find <directory "xxxx" > a sentence, to change xxxx to your own PHP3 installation directory.

Like this:

<directory "C:PHP3" >

Allowoverridenone

Optionsnone

</Directory>

Append the following 3 lines to the end of the httpd.conf file. Note that the first line of quotation marks is changed to your own PHP3 installation directory, others please do not change.

scriptalias/php3/"c:/php3/"

Addtypeapplication/x-httpd-php3.php3.php.phtml

Actionapplication/x-httpd-php3 "/php3/php.exe"

Find a file to test it!

Copy a PHP3 file into the apache/hdtocs/and start the apache! Let ' sgo!!

Open your browser and wait for the thrill of the moment!!!!

Commissioning Environment: Chinese win984.2222apache1.3.11php3.0.15


PHP Basic Tutorial-apache

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.