Home Backend Development PHP Tutorial php5+apache+mysql5 configuration explanation under Windows_PHP tutorial

php5+apache+mysql5 configuration explanation under Windows_PHP tutorial

Jul 20, 2016 am 11:09 AM
apache windows Down people Install of Suitable Configuration

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 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 of this Website
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

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

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

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 web version entrance deepseek official website entrance deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

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.

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

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

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

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.

Coinsuper exchange software channel official website entrance Coinsuper exchange software channel official website entrance Feb 21, 2025 pm 10:39 PM

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

Ouyi okx installation package is directly included Ouyi okx installation package is directly included Feb 21, 2025 pm 08:00 PM

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

BITGet official website installation (2025 beginner's guide) BITGet official website installation (2025 beginner's guide) Feb 21, 2025 pm 08:42 PM

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Get the gate.io installation package for free Get the gate.io installation package for free Feb 21, 2025 pm 08:21 PM

Gate.io is a popular cryptocurrency exchange that users can use by downloading its installation package and installing it on their devices. The steps to obtain the installation package are as follows: Visit the official website of Gate.io, click "Download", select the corresponding operating system (Windows, Mac or Linux), and download the installation package to your computer. It is recommended to temporarily disable antivirus software or firewall during installation to ensure smooth installation. After completion, the user needs to create a Gate.io account to start using it.

See all articles