apache2.0.39 php4.2.3在windowsXP下模块方式搭建.
apache|window
WindowsXP+Apache2.0.39+php-4.2.3-dev
源文件下载:
1. http://www.apache.org/dist/httpd/binaries/win32/
下面的 apache_2.0.39-win32-x86-no_ssl.msi
或者apache_2.0.39-win32-x86-no_ssl.exe
(A full setup package (.exe) containing the Win9x/WinNT
Microsoft System Installer installer is available.
If the Microsoft System Installer is already on the machine,
there is no need to download the .exe, save yourself 3MB and
download the .msi package.)
2. http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
安装服务器和php:
1.选中下载的apache的msi文件,单击右键选择安装,默认方式即可
2.解压缩php4-win32-STABLE-snapshotnumber.zip,得到
php4-win32-STABLE-snapshotnumber文件夹,重命名为php,并
复制到c:下.
3.将c:php下的php4ts.dll复制到c:wondowssystem32下(即PATH环境变量的
第一个路径名)
(4.将c:phpdll下所有.dll文件复制到c:wondowssystem32下.)见下面
配置php.ini和http.conf
1.将c:phpphp.ini-dist复制到c:windows下,改名为php.ini
2.打开php.ini文件,找到'doc_root='项,置为
doc_root="C:Program FilesApache GroupApache2htdocs"
即在这个目录(apache服务器主文档目录)下的php文件才可以执行.
找到'extension_dir='项,置为
extension_dir ="C:PHPsapi"这里面有扩展库的.dll文件(注意,
当网页不能执行,给出错误不能找到.dll文件时,将c:phpsapi下所有
.dll复制到c:windowssystem32下).
保存php.ini并退出编辑.
3.打开c:progame filesapache groupapache2confhttpd.conf
确保servername 设置好(最起码localhost),
找到一系列 LoadModule开头的指令项,在最后加入如下内容:
LoadModule php4_module c:/php/sapi/php4apache2.dll
SetOutputFilter PHP
接下来找到AddTYpe application/x-tar.tgz 指令,在其后加入:
AddType application/x-httpd-php .php
保存httpd.conf,并退出编辑.
重启apache2服务
可以在命令行方式下键入:
net stop apache2
net start apache2
在....htdocs/目录下加入.php文件如index.php,在浏览器地址栏内键入
http://localhost/index.php
试试看,希望你好运!!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip
