


Graphic tutorial on setting up a php environment (apache+php+mysql) under windows
Tutorials on building a PHP development environment under Windows, methods of building a PHP environment based on apache+php+mysql, very detailed PHP configuration tutorials, friends in need can refer to it.
1. Preparation - Download the required software
apache httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
php php-5.3.10-win32-vc9-x86.zip
mysql mysql-5.5.20-win32.msi
2. Install the software Install apache: Double-click installation, which is no different from installing other windows software. There are no special regulations when filling in server infomation, as long as the entered information conforms to the format. After the installation is completed, enter http://localhost in the browser. If it works! is displayed, it means apache is installed successfully. Install php: Unzip php-5.3.10-win32-vc9-x86.zip to a directory. Install mysql: Double-click to install. If you need to change the installation directory, select custom in choose setup type After the installation is complete, start configuring mysql. Just keep all the default options, but it is best to change the default encoding of mysql to utf8, set the password in the modify security settings option, enter the password twice to complete, and finally click execute to complete the configuration. 3. Integrate apache+php+mysql apache: First modify the apache configuration file so that apache supports parsing php files. The apache configuration file is httpd.conf in the conf directory of the apache installation directory. 1. Let apache parse the php file and find it in the configuration file #loadmodule vhost_alias_module modules/mod_vhost_alias.so Add in the next line (the green position is based on the directory where php is located) loadmodule php5_module "d:/develop/php/php5apache2_2.dll" phpinidir "d:/develop/php" addtype application/x-httpd-php .php .html .htm 2. Found in the configuration file directoryindex index.html changed to directoryindex index.phpindex.html 3. Modify the apache site directory and find it in the configuration file (the directory where apache is installed is different, the displayed value is different) documentroot "d:/develop/apache2.2/htdocs" changed to documentroot "d:/workspace/php"
Find again changed to php: Rename php.ini-development to php.ini as the php configuration file. Modify php.ini 1. Set the specific directory of the php extension package and find ; on windows: ; extension_dir = "ext" Change to (the value is the directory of the ext folder) ; on windows: extension_dir = "d:/develop/php/ext" 2. Enable the corresponding library function and find the line where the library needs to be enabled ;extension=php_curl.dll ;extension=php_gd2.dll ;extension=php_mbstring.dll ;extension=php_mysql.dll ;extension=php_xmlrpc.dll Remove the semicolon (comment) in front and change it to extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_xmlrpc.dll
3. Set time zone and find ;date.timezone = Change to date.timezone = asia/shanghai The configuration is completed, check whether the configuration is successful. Restart apache, create a new file index.php in the site directory, and enter the content: Open the browser and enter http://localhost. If the following content is displayed, the installation is successful and mysql is successfully associated. |

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



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo
