Command-line cmd installation apache+php+mysql

Source: Internet
Author: User

Sometimes, when we install Apache+php+mysql, in order to facilitate, will already installed on other computers in the environment after the corresponding folder (Apache+php+mysql) copied to the target computer, this time must be careful not only to modify apache/conf/ httpd.conf file and want to modify Php/php.ini file


I take d:/haofeng/apache2.2,d:/haofeng/php5.2.11 as an example to illustrate:

1. httpd.conf File Modification:

ServerRoot "d:/haofeng/apache2.2"

Listen 80

DocumentRoot "D:/haofeng/apache2.2/www"
<directory "D:/haofeng/apache2.2/www" >
</Directory>

scriptalias/cgi-bin/"d:/haofeng/apache2.2/cgi-bin/"
<directory "D:/haofeng/apache2.2/cgi-bin" >
</Directory>

Phpinidir "d:/haofeng/php5.2.11/"
LoadModule php5_module "D:/haofeng/php5.2.11/php5apache2_2.dll"



2. php.ini File Modification

Extension_dir = "D:/haofeng/php5.2.11/ext"


Finally, the virtual directory with the virtual directory, the configuration of other ports to configure other ports;


Re-post cmd to install Apache and MySQL commands

=====apache:
D:\haofeng\Apache2.2\bin
Httpd-k Install Installation
Httpd-k start
Httpd-k Stop Stop
Httpd-k Uninstall Uninstall

=====mysql:
D:\haofeng\MySQL-5.1.68\bin
Mysqld-install Installation
net start MySQL Startup
net stop MySQL stop
Mysqld-remove Uninstall


This article is from the "Dongdongのhome" blog, make sure to keep this source http://autophp.blog.51cto.com/8062337/1637604

Command-line cmd installation apache+php+mysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.