PHP 开发第一章之环境调度PHP引擎
PHP 开发第一章之环境部署PHP引擎
转帖自:http://netbeans.org/kb/docs/php/configure-php-environment-windows_zh_CN.html
- 下载 PHP5 引擎。 windows:http://windows.php.net/download/???:php-5.4.0-Win32-VC9-x86.zip注:php-5.3.5-nts-Win32-VC6-x86版本,更不要下载VC9版本的,因为VC9是专门为IIS定制的,VC6 是为了其他WEB服务软件提供的,如 Apache。Apache服务器又有openssl和no_ssl之分,openssl表示带有openssl模块,利用openssl可给Apache配置SSL安全链接。
- 5.3.10下载完成后,运行 php-5.3.10-nts-Win32-VC9-x86.msi 安装文件。此时将启动安装向导。在“Apache 配置目录”面板上,指定 httpd.conf 文件所在的目录,缺省设置是 C:\Program Files\Apache Software Foundation\Apache
\conf\ 。PHP 处理将自动启用。 - 如果您要使用 MySQL 数据库服务器,请选择“完全”安装选项,或在“扩展”列表中选择 "MySQL" 和 "MySQLi" 项。
- 安装完成后,请重新启动 Apache 服务器。
- 要检查 PHP 引擎是否已成功安装,以及是否在 Apache 配置中启用了 PHP 处理,请:
- 在记事本中,创建一个文件并键入以下文本:
<?php echo "PHP has been installed successfully!";?>
Copy after login
- 将此文件保存在 "htdocs" 文件夹中:C:\Program Files\Apache Software Foundation\Apache
\htdocs\test.php - 运行浏览器,然后输入以下 URL:http://localhost:
/test.php 。以下页面打开:
疑难解答
如果页面未打开:
- 重新启动 Apache 服务器。
- 检查 Apache 服务器配置文件 httpd.conf 是否包含以下几行:
AddType Application/x-httpd-php .php LoadModule php5_module "c:/php/sapi/php5apache2_2.dll"
Copy after login - 如果缺少以上几行,请添加它们,并保存 httpd.conf,然后重新启动 Apache。
- 刷新 http://localhost:
/test.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

AI Hentai Generator
Generate AI Hentai for free.

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 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public
