很久以前的笔记了,分享下:
先安装好Apache、Mysql,解压好PHP和PHPmyadmin
修改PHP:
php.ini-dist改名为:php.ini
doc_root ="F:\site" (网站源代码存放的位置)
extension_dir = "f:\php5\ext" (PHP文件存放的位置为:f:\php5)
拷贝libmysql.dll至c:\windows\system32目录下
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
修改PHPmyadmin:
phpmyadmin
config.inc.php
['auth_type'] = 'http';
修改apache配置文件:
DocumentRoot "f:/site" (网站代码存放的位置)
<Directory "f:/site">
<IfModule dir_module>
DirectoryIndex "index.htm""index.php""index.html""default.php""default.htm""default.html"
</IfModule>
ScriptAlias /cgi-bin/ "f:/site/cgi-bin/"
<Directory "f:site/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# For PHP
LoadModule php5_module "f:/php5/php5apache2_2.dll"
<IfModule php5_module>
AddType application/x-httpd-php .php
</IfModule>
# The directory for php.ini
PHPIniDir "f:/php5" (PHP文件存放的位置)
本文转自yuhaijunll 51CTO博客,原文链接:http://blog.51cto.com/yuhaijunll/399092,如需转载请自行联系原作者