Apache + php4 + mysql_PHP tutorial in WINXP-php Tutorial

Source: Internet
Author: User
Apache + php4 + mysql in WINXP. In WINXP, APACHE2.052-win32 + php4.39-win32 + mysql4.022 is configured through apache, php4, and mysql, which can be accessed online, I just wrote my own experiences for you to share with you how to configure APACHE2.052-win32 + php4.39-win32 + mysql4.022 in WINXP
Apache, php4, and mysql can be accessed online,

I just wrote my own experiences for you to share.

(1) apache configuration

1. install APACHE_2.0.52-win32, the default installation path of the program is: C: \ apache2 \ program files \ apache Group \, you need to change its installation path to: C :\
(You can also modify the configurations without modification ).
2. after the installation is complete, the apache service is automatically loaded. open the browser and browse: http: // localhost. The apache welcome page appears.
(In this step, you need to change the file "index.html.en#index.html" in the C: \ apache2 \ htdocsdirectory to "index.html" for display.) if an exception occurs in this step, check the installation source file and reinstall it.
3. install the PHP-4.3.3-Win32, the PHP file downloaded in general is a free installation of compressed package, unzip to C: \ PHP can be.
4. configure PHP and Apache to parse the php program.
PHP configuration: set "PHP." in the C: \ php \ directory. ini-dist "is renamed" php. ini, and copy it to C: \ windows \ system32 (the Win2K directory is C: \ winnt \ system32)
Also, copy all. dll files under the dlls directory in PHP4 to c: \ windows \ system32 \
You also need to copy php4ts. dll to c: \ windows \ system32 \
Modify some parameters in "php. ini ".
Php. ini is stored in c: \ windows by default.
Find doc_root
Doc_root = the changed webpage directory,
Example: doc_root = C: \ Apache \ Apache2 \ htdocs
Change extension_dir = to the place where you want to load. dll.
For example, extension_dir = "c: \ php \ extensions \"
Find
Windows Extensions
; Note that MySQL and ODBC support is now built in, so no dll
Extension = php_bz2.dll
Extension = php_c2.16.dll
; Extension = php_crack.dll
Extension = php_curl.dll
; Extension = php_db.dll
Extension = php_dba.dll
; Extension = php_dbase.dll
Extension = php_dbx.dll
; Extension = php_domxml.dll
; Extension = php_exif.dll
Extension = php_fdf.dll
Extension = php_filepro.dll
Extension = php_gd2.dll
Extension = php_gettext.dll
; Extension = php_hyperwave.dll
Extension = php_iconv.dll
; Extension = php_ifx.dll
; Extension = php_iisfunc.dll
Extension = php_imap.dll
; Extension = php_interbase.dll
; Extension = php_java.dll
Extension = php_ldap.dll
Extension = php_mbstring.dll
; Extension = php_mcrypt.dll
Extension = php_mhash.dll
Extension = php_mime_magic.dll
Extension = php_ming.dll
; Extension = php_mssql.dll
Extension = php_msql.dll
; Extension = php_oci8.dll
Extension = php_openssl.dll
; Extension = php_oracle.dll
Extension = php_cmd.dll
; Extension = php_pgsql.dll
; Extension = php_printer.dll
Extension = php_shmop.dll
Extension = php_snmp.dll
Extension = php_sockets.dll
; Extension = php_sybase_ct.dll
; Extension = php_w32api.dll
Extension = php_xmlrpc.dll
Extension = php_cmdt.dll
; Extension = php_yaz.dll
Extension = php_zip.dll
Just do the above correction, and do not add any additional information that will lead to errors,
Mysql. default_host = localhost
Mysql. default_user = root
Mysql. default_password = your own password
This part has been set and passed
Apache configuration:
Change "c: \ pache \ htdocs \ index.html e. en" to "index.html". Otherwise, you cannot see the webpage when you are a test engineer (I have been busy here for a long time)

C: \ apahce2 \ conf \ httpd. conf

Find ServerRoot
Change to your Directory,
For example, ServerRoot "C:/Apache/Apache2"
Port, because some local telecommunications has set 80 mails, so it should be changed to this
Listen 8080.
Find # LoadModule ssl_module modules/mod_ssl.so and enter this line below

LoadModule php4_module C: \ php \ sapi \ php4apache2. dll (important to management institutions)
Find DocumentRoot
Change to your webpage directory later
DocumentRoot "C:/Apache/Apache2/htdocs"
Below
You can get rid of the Options Index (delete it to prevent access to the Web Directory first) FollowSymLinks
Httpd. conf
D. add the following statement at the end of the configuration file to support the php program:
ScriptAlias/php/"c:/php /"
AddType application/x-httpd-php. php
AddType application/x-httpd-php. php4
AddType application/x-httpd-php. phtml
AddType application/x-httpd-php. php3
AddType application/x-httpd-php-source. phps
Action application/x-httpd-php "/php/php.exe"

5. restart the Apache server and write the following statement in the editor:
Phpinfo ();
?>

Save the file name as "test. php "to the C: \ apache2 \ htdocs directory, then open the browser, browse: http: // localhost: 8080/test. php. if the basic PHP information is displayed, the configuration is successful. The installation and configuration will be successful once according to the preceding instructions.

Apache, php4, and mysql can be accessed online. I will not talk about it here. I just wrote my own experiences for you to share...

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.