search
HomeBackend DevelopmentPHP TutorialInstall Apache+MySQL+PHP environment under Windows XP, apachemysql_PHP tutorial

Install Apache+MySQL+PHP environment under Windows XP, apachemysql

In the entire wamp environment construction, the essential work is as follows:

1. The configuration system can call the dll file in php by default.

Under Windows, the dll file system is in the calling state by default. There are two ways to use it.
The first is: Copy the dll file that needs to be called to the directory C:windowssystem32 (if it is a Windows 2000 operating system, it is C:WINNTsystem32).
The second is to append the address of the folder where the .dll suffix file is located to the system's path variable. In this case, when the system starts, the dll file will be automatically loaded into the memory by default.
The third method is: change php.ini; extension_dir = "./" to extension_dir = "D:/php5/ext"

Note that you need to restart the Apache server to take effect.

2. Apache configuration essentially allows the apache server software to parse .php files.

Configure in httpd.conf and php.ini respectively.

Modify in httpd.conf:
2-1, configure the root directory

Copy code The code is as follows:

DocumentRoot D:/wwwroot-----This is the first place. Change the red part to the main folder of the local apache website code, which is the main folder where the project code is stored.
-------This is the second location, same as above.

2-2, configure directory index

Copy code The code is as follows:

DirectoryIndex index.html index.html.var index.php index.html

2-3, combining php and Apache2

Copy code The code is as follows:

LoadModule php5_module D:/php5/php5apache2.dll----------Load php in module mode
PHPIniDir "D:/php"--------------------Specify the location of php configuration file php.ini
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html--------------Add a file type that can execute php
DirectoryIndex index.php index.html index.html.var-----Configure the index directory default file

php.ini modification:

1. Set the way PHP passes parameters

Copy code The code is as follows:

register_globals=Off/On

Set to Off, which means you can only use $_post['variable name'] and $_GET['variable name'] to pass parameters
Set to On, you can directly use the $ variable name to get the passed parameter value

2. Set the dll module that needs to be loaded. The following must be configured.

Copy code The code is as follows:

;extension=php_gd2.dll---------GD library extension file, users can process images, such as generating images, cropping and compressing images, watermarking images, etc.
;extension=php_mbstring.dll--------Large character set, supports conversion between multiple character sets
;extension=php_mcrypt.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll

Remove the semicolon and set the dll module that needs to be loaded. The above ones are basically to be removed.

The difference between wamp and lamp environment construction lies in the way the system loads dll files in php,
The combination of apahce and php is basically the same under window and linux/unix, and is achieved by modifying httpd.conf and php.ini.

Therefore, in the actual work process, the fastest way to manually configure the server is:
1. Manually install the apache server and manually install and configure php.
2. Based on the previously configured php.ini and httpd.conf files, copy the two files directly to the relevant directories.
The key directories in httpd.conf need to be modified, mainly:
Configure root directory

Copy code The code is as follows:

DocumentRoot D:/wwwroot-----This is the first place. Change the red part to the main folder of the local apache website code, which is the main folder where the project code is stored.
-------This is the second location, same as above.

Just make these two changes and you’re basically done.

After the above configuration is completed, the environment is basically set up. I hope your friends will like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/959109.htmlTechArticleInstall the Apache+MySQL+PHP environment under Windows XP, apachemysql In the entire wamp environment construction, the essential work is as follows : 1. The configuration system can call the dll file in php by default. In...
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
图文详解apache2.4+php8.0的安装配置方法图文详解apache2.4+php8.0的安装配置方法Dec 06, 2022 pm 04:53 PM

本文给大家介绍如何安装apache2.4,以及如何配置php8.0,文中附有图文详细步骤,下面就带大家一起看看怎么安装配置apache2.4+php8.0吧~

Linux apache怎么限制并发连接和下载速度Linux apache怎么限制并发连接和下载速度May 12, 2023 am 10:49 AM

mod_limitipconn,这个是apache的一个非官方模块,根据同一个来源ip进行并发连接控制,bw_mod,它可以根据来源ip进行带宽限制,它们都是apache的第三方模块。1.下载:wgetwget2.安装#tar-zxvfmod_limitipconn-0.22.tar.gz#cdmod_limitipconn-0.22#vimakefile修改:apxs=“/usr/local/apache2/bin/apxs”#这里是自己apache的apxs路径,加载模块或者#/usr/lo

apache版本怎么查看?apache版本怎么查看?Jun 14, 2019 pm 02:40 PM

查看​apache版本的步骤:1、进入cmd命令窗口;2、使用cd命令切换到Apache的bin目录下,语法“cd bin目录路径”;3、执行“httpd -v”命令来查询版本信息,在输出结果中即可查看apache版本号。

超细!Ubuntu20.04安装Apache+PHP8环境超细!Ubuntu20.04安装Apache+PHP8环境Mar 21, 2023 pm 03:26 PM

本篇文章给大家带来了关于PHP的相关知识,其中主要跟大家分享在Ubuntu20.04 LTS环境下安装Apache的全过程,并且针对其中可能出现的一些坑也会提供解决方案,感兴趣的朋友下面一起来看一下吧,希望对大家有帮助。

nginx,tomcat,apache的区别是什么nginx,tomcat,apache的区别是什么May 15, 2023 pm 01:40 PM

1.Nginx和tomcat的区别nginx常用做静态内容服务和代理服务器,直接外来请求转发给后面的应用服务器(tomcat,Django等),tomcat更多用来做一个应用容器,让javawebapp泡在里面的东西。严格意义上来讲,Apache和nginx应该叫做HTTPServer,而tomcat是一个ApplicationServer是一个Servlet/JSO应用的容器。客户端通过HTTPServer访问服务器上存储的资源(HTML文件,图片文件等),HTTPServer是中只是把服务器

php站用iis乱码而apache没事怎么解决php站用iis乱码而apache没事怎么解决Mar 23, 2023 pm 02:48 PM

​在使用 PHP 进行网站开发时,你可能会遇到字符编码问题。特别是在使用不同的 Web 服务器时,会发现 IIS 和 Apache 处理字符编码的方法不同。当你使用 IIS 时,可能会发现在使用 UTF-8 编码时出现了乱码现象;而在使用 Apache 时,一切正常,没有出现任何问题。这种情况应该怎么解决呢?

如何在 RHEL 9/8 上设置高可用性 Apache(HTTP)集群如何在 RHEL 9/8 上设置高可用性 Apache(HTTP)集群Jun 09, 2023 pm 06:20 PM

Pacemaker是适用于类Linux操作系统的高可用性集群软件。Pacemaker被称为“集群资源管理器”,它通过在集群节点之间进行资源故障转移来提供集群资源的最大可用性。Pacemaker使用Corosync进行集群组件之间的心跳和内部通信,Corosync还负责集群中的投票选举(Quorum)。先决条件在我们开始之前,请确保你拥有以下内容:两台RHEL9/8服务器RedHat订阅或本地配置的仓库通过SSH访问两台服务器root或sudo权限互联网连接实验室详情:服务器1:node1.exa

Linux下如何查看nginx、apache、mysql和php的编译参数Linux下如何查看nginx、apache、mysql和php的编译参数May 14, 2023 pm 10:22 PM

快速查看服务器软件的编译参数:1、nginx编译参数:your_nginx_dir/sbin/nginx-v2、apache编译参数:catyour_apache_dir/build/config.nice3、php编译参数:your_php_dir/bin/php-i|grepconfigure4、mysql编译参数:catyour_mysql_dir/bin/mysqlbug|grepconfigure以下是完整的实操例子:查看获取nginx的编译参数:[root@www~]#/usr/lo

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment