search
HomeBackend DevelopmentPHP Tutorialphp5+apache+mysql5 configuration explanation under Windows_PHP tutorial

1. Installation of apache. The next step is also suitable for most people. During the next process, you may need to fill in server domain, admin email and other similar things. This can be skipped, but you must pay attention to the port selection. By default, only ports 80 and 8080 are available for selection. Of course, after the installation is successful, you can modify the listen port at will. To avoid duplication with the iis default 80, you can choose port 8080. I won’t talk about the situation after the installation is successful after next. In some basins, after the installation is completed, the apache service cannot be found in the apache server monitor, and the apache-related services cannot be found in services.msc. I just encountered this problem, and the solution is also very simple: administrator identity Run cmd, switch to the directory $apache2.2$binhttpd.exe -k install and it's almost done. I prompted an error once, but the service still appeared. Clicking start can still run. Under normal circumstances, it prompts that the installation is successful and starts testing httped. .conf... At this point, the installation of apache is complete. Of course, you can test it. You can open httpd.conf and modify the documentroot configuration section about 164 lines. I modified it like this: documentroot "c:/". Note that if If you have never done it before or are afraid of not being able to find the default httpd.conf, you can make a backup first or comment out the configuration section you want to modify. Then find the , which is the directory of the website you want to visit. Then restart apache and enter: http://localhost: in the browser. 8080/testing.html Let’s take a look.

2. Installation of mysql tutorial. It seems that there is nothing to pay attention to when installing mysql. There is a question about whether to allow remote access. If you are just doing testing, then don't select it. If it is a server, then carefully consider the security issues.

3. Installation of the php tutorial environment, as mentioned above, after downloading and decompressing the php environment, create a folder named apahe group in the root directory of the c drive, and create a folder name in the apache group directory It is php5, because the php version I downloaded is php-5.3.5-win32-vc9-x86.zip, so 5 is the version number of the current running environment. Haha, I copied it from an expert. Then copy all the files in the download package to the php5 folder, find the file named php.ini-production, and rename it to php.ini. Open php.ini, find short_open_tag, change the default "short_open_tag= off" to "short_open_tag =on", that is, let php support short tag writing. For example, when it is set to off, use =$xxx when writing a program ;?> An error will be reported, so it must be written as . Then find the line extension_dir = "./" in php.ini and change it to extension_dir = "c:/apache group/php5/ext", so that the PHP running environment can find the extension plug-ins it needs based on this directory. position, be careful to delete the ";" in front of the line. Then find the windows extensions configuration module, look for

extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_mysql.dll

and then change the previous points ";" opens the PHP environment's support for mysql and other processes, so that the PHP program can perform operations such as connecting to the database tutorial. Finally find disable_functions = and modify it to disable_functions =
passthru,exec,system,popen,chroot,escapeshellcmd,escapeshellarg,shell_exec,proc_open,proc_get_status. After completion, the address of the php running environment is: c:apache groupphp5. This address will be used in subsequent apache configuration.

 4.apache is configured to support php. Open $apache2.2$confhttpd.conf and find the line #loadmodule ssl_module modules/mod_ssl.so. After that, add the following lines:

# Specify the location of the php.ini file

phpinidir "c:apache groupphp5"

# Specify the parsing module of the php program

loadmodule php5_module "c:apache groupphp5php5apache2_2.dll"

# Specify the parsing module of the file to be parsed Extension

addtype application/x-httpd-php .php

# Specify the php source code extension

addtype application/x-httpd-php-source .phps tutorial

Save and exit. At this time, the running environment of apache+mysql+php5 is set up. You can create a new file phpinfo.php in the test directory and write in it:

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/444802.htmlTechArticle1. Installation of apache. The next step is also suitable for most people. During the next process, you may need to fill in server domain, admin email and other similar things. You can skip this, but pay attention to the port...
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
c盘的users是什么文件夹?可以删除吗?c盘的users是什么文件夹?可以删除吗?Nov 10, 2022 pm 06:20 PM

c盘的users是用户文件夹,主要存放用户的各项配置文件。users文件夹是windows系统的重要文件夹,不能随意删除;它保存了很多用户信息,一旦删除会造成数据丢失,严重的话会导致系统无法启动。

启动任务管理器的三个快捷键是什么启动任务管理器的三个快捷键是什么Sep 21, 2022 pm 02:47 PM

启动任务管理器的三个快捷键是:1、“Ctrl+Shift+Esc”,可直接打开任务管理器;2、“Ctrl+Alt+Delete”,会进入“安全选项”的锁定界面,选择“任务管理器”,即可以打开任务管理器;3、“Win+R”,会打开“运行”窗口,输入“taskmgr”命令,点击“确定”即可调出任务管理器。

微软的pin码是什么微软的pin码是什么Oct 14, 2022 pm 03:16 PM

PIN码是Windows系统为了方便用户本地登录而独立于window账户密码的快捷登录密码,是Windows系统新添加的一套本地密码策略;在用户登陆了Microsoft账户后就可以设置PIN来代替账户密码,不仅提高安全性,而且也可以让很多和账户相关的操作变得更加方便。PIN码只能通过本机登录,无法远程使用,所以不用担心PIN码被盗。

window下报错“php不是内部或外部命令”怎么解决window下报错“php不是内部或外部命令”怎么解决Mar 23, 2023 pm 02:11 PM

对于刚刚开始使用PHP的用户来说,如果在Windows操作系统中遇到了“php不是内部或外部命令”的问题,可能会感到困惑。这个错误通常是由于系统无法识别PHP的路径导致的。在本文中,我将为您提供一些可能会导致这个问题的原因和解决方法,以帮助您快速解决这个问题。

win10自带的onenote是啥版本win10自带的onenote是啥版本Sep 09, 2022 am 10:56 AM

win10自带的onenote是UWP版本;onenote是一套用于自由形式的信息获取以及多用户协作工具,而UWP版本是“Universal Windows Platform”的简称,表示windows通用应用平台,不是为特定的终端设计的,而是针对使用windows系统的各种平台。

win10为什么没有“扫雷”游戏了win10为什么没有“扫雷”游戏了Aug 17, 2022 pm 03:37 PM

因为win10系统是不自带扫雷游戏的,需要用户自行手动安装。安装步骤:1、点击打开“开始菜单”;2、在打开的菜单中,找到“Microsoft Store”应用商店,并点击进入;3、在应用商店主页的搜索框中,搜索“minesweeper”;4、在搜索结果中,点击选择需要下载的“扫雷”游戏;5、点击“获取”按钮,等待获取完毕后自动完成安装游戏即可。

在windows中鼠标指针呈四箭头时一般表示什么在windows中鼠标指针呈四箭头时一般表示什么Dec 17, 2020 am 11:39 AM

在windows中鼠标指针呈四箭头时一般表示选中对象可以上、下、左、右移动。在Windows中鼠标指针首次用不同的指针来表示不同的状态,如系统忙、移动中、拖放中;在Windows中使用的鼠标指针文件还被称为“光标文件”或“动态光标文件”。

windows操作系统的特点包括什么windows操作系统的特点包括什么Sep 28, 2020 pm 12:02 PM

windows操作系统的特点包括:1、图形界面;直观高效的面向对象的图形用户界面,易学易用。2、多任务;允许用户同时运行多个应用程序,或在一个程序中同时做几件事情。3、即插即用。4、出色的多媒体功能。5、对内存的自动化管理。

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 Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools