PHP各软件在Windows上单独安装
PHP各软件在Windows下单独安装
前段时间在Linux上部署LAMP环境,本来以为在windows下会很容易,但捣鼓了好几天才搞定,郁闷~~
安装的软件清单:
apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
mysql-5.1.28-rc-win32.zip
php-5.2.6-Win32.zip
phpMyAdmin-3.0.0-rc1-all-languages.zip
ZendOptimizer-3.3.0a-Windows-i386.exe
?
安装目录分别是:
C:/php/apache2
C:/php/mysql5
C:/php/php5
C:/php/apache2/htdocs/admin
C:/php/Zend
?
一、安装apache。
??? 一路next就行,
到这一步的时候,需要指定Network Domain、Server Name以及邮箱等信息,貌似随便指定就行。
?
?安装完成后,打开IE,地址栏输入:http://localhost后会显示:It works!提示信息,说明安装成功。
?
二、安装MySQL。
??? 同样一路next就行,并设置root密码为root,数据库编码方式utf8。
?
三、安装PHP。
??? 将php解压到C:/php/php5下,把php.ini-dist文件改为php.ini,把libmysql.dll拷贝到C:/WINDOWS下。
??? 编辑C:/php/apache2/conf/httpd.conf文件,在
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
?
下加入一行:
LoadModule php5_module "C:/php/php5/php5apache2_2.dll"
?
在
AddType application/x-compress .Z AddType application/x-gzip .gz .tgz
?
下加入:
AddType application/x-httpd-php .php .phtmlphpinidir "C:/php/php5/php.ini"
?此时,Apache服务器已经能够解析php文件了。
?
修改C:/php/php5/php.ini文件,在
; Be sure to appropriately set the extension_dir directive.
?
下加入
extension_dir="C:/php/php5/ext"
?
并把
extension=php_mysql.dllextension=php_mysqli.dllextension=php_pdo.dllextension=php_pdo_mysql.dll
?
前的“;”去掉。
?
四、安装Zend。
需要指定php.ini和Apache的目录。
?
五、把phpMyAdmin-3.0.0-rc1-all-languages.zip解压到C:/php/apach2/htdocs下,并改名为admin。

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 and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP makes it easy to create interactive web content. 1) Dynamically generate content by embedding HTML and display it in real time based on user input or database data. 2) Process form submission and generate dynamic output to ensure that htmlspecialchars is used to prevent XSS. 3) Use MySQL to create a user registration system, and use password_hash and preprocessing statements to enhance security. Mastering these techniques will improve the efficiency of web development.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

Deploying a ZooKeeper cluster on a CentOS system requires the following steps: The environment is ready to install the Java runtime environment: Use the following command to install the Java 8 development kit: sudoyumininstalljava-1.8.0-openjdk-devel Download ZooKeeper: Download the version for CentOS (such as ZooKeeper3.8.x) from the official ApacheZooKeeper website. Use the wget command to download and replace zookeeper-3.8.x with the actual version number: wgethttps://downloads.apache.or
