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