WinXP under Apache+php4+mysql_php Digest

Source: Internet
Author: User
WinXP under apache2.052-win32+php4.39-win32+mysql4.022 configuration via
Apache,php4,mysql, on the internet can be down, here is not to say,

I just did it and I wrote it out for you to share.

(i) Apache configuration

1. Installation Apache_2.0.52-win32, the default installation path for the program is: C:\apache2\program files\apache group\, you need to modify its installation path to: C:\
(can also not make changes, mainly in order to modify the configuration to facilitate the modification).
2. After the installation completes, the Apache service automatically loads, when opens the browser, browses: http://localhost, appears the Apache welcome page
(This step requires that the file "Index.html.en" in the C:\apache2\htdocs directory be changed to "index.html" to show); If this step occurs, check the installation source files, reinstall
3. Install Php-4.3.3-win32, general download PHP file for a installation-free compression package, decompression to C:\PHP can be.
4. Configure PHP and Apache to enable parsing of PHP programs.
PHP configuration: "Php.ini-dist" in the C:\PHP\ directory is renamed "PHP.ini" and copied to C:\windows\system32 (Win2K directory: C:\winnt\system32)
There is also a need to copy all. dll files in the DLLs directory in PHP4 to c:\windows\system32\
And we're going to have to copy Php4ts.dll to c:\windows\system32\.
To modify some of the parameters in "PHP.ini"
PHP.ini By default is to be placed under C:\Windows
Find Doc_root
Doc_root = changed to the web directory on the line,
Case Doc_root =c:\apache\apache2\htdocs
Find Extension_dir = change to where you want to load the. dll
Example Extension_dir = "C:\php\extensions\"
Found it
; Windows Extensions
; Note that MySQL and ODBC support are now built in, so no DLL
Extension=php_bz2.dll
Extension=php_cpdf.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_pdf.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_xslt.dll
; Extension=php_yaz.dll
Extension=php_zip.dll
Do the same as the changes on the line, do not add superfluous will be wrong,
Mysql.default_host =localhost
Mysql.default_user =root
Mysql.default_password = Your own password
This section has been set up and passed
Apache Configuration:
To be renamed as a c:\pache\htdocs\index.htmle.en to index.html otherwise do not see the Web page when the tester to remember (I have been busy here for a long time)

C:\apahce2\conf\httpd.conf

Find ServerRoot
Don't be wrong about changing into your catalogue,
such as ServerRoot "C:/apache/apache2"
Port, because some local telecommunications put 80 sealed, so to change to such
Listen 8080
Find #loadmodule ssl_module modules/mod_ssl.so enter this line below

LoadModule Php4_module C:\php\sapi\php4apache2.dll (very important to the management Organization)
Find DocumentRoot
Change it back to your web directory.
DocumentRoot "C:/apache/apache2/htdocs"
Below <directory "C:/apache/apache2/htdocs" >
Line Change Index (delete it to prevent access to the Web Directory security first Yes) FollowSymLinks
httpd.conf
D at the end of this configuration file, add the following statement 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 "test.php" to the C:\apache2\htdocs directory, and then open the browser, browse: http://localhost:8080/test.php, the presence of PHP basic information on the configuration success. Strictly follow the instructions above to install the configuration, will be a success.

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.