php开发环境配置记录

2019-04-09 11:40:08王振洲

FcgidMaxRequestsPerProcess 500
NameVirtualHost *:80
DocumentRoot "/vhosts/localhost"
ServerName localhost
ServerAlias 127.0.0.1
ErrorLog "logs/dummy-host.localhost-error_log"
Options Indexes FollowSymLinks ExecCGI
#Options +ExecCGI
AllowOverride All
#AddHandler fcgid-script .php
#FCGIWrapper /APM/php5210/php-cgi.exe .php
#"
AddHandler fcgid-script .php
FcgidWrapper "/APM/php-5.2.13-nts-Win32/php-cgi.exe" .php
#FcgidWrapper "/APM/php-5.3.2-nts-Win32-VC6-x86/php-cgi.exe" .php
#
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php

【Mysql安装】

mysqld-nt.exe --install MySQL5.0.45-community-nt --defaults-file=D:APMmysql5.0.45my.ini
net start MySQL5.0.45-community-nt

【Mysql卸载】

net stop MySQL5.0.45-community-nt
mysqld-nt.exe --remove MySQL5.0.45-community-nt

【my.ini参考】

[mysqld]
basedir="D:APMmysql5.0.45"
datadir="D:APMmysql5.0.45Data"
tmpdir="D:APMmysql5.0.45tmp"
# log="D:APMmysql5.0.45tmpmysql.log"
default-character-set=utf8
port=3306
interactive_timeout=5
wait_timeout=5
skip-locking
skip-innodb
skip-bdb
ft_min_word_len=1
[mysqld]
port=3306
basedir="D:/mysql/"
datadir="D:/mysql/Data/"
tmpdir="d:/mysql/tmp/"
default-character-set=utf8
default-storage-engine=MYISAM
skip-bdb
skip-innodb
skip-locking
key_buffer=16M
max_allowed_packet=1M
table_cache=128
thread_cache=8
join_buffer_size=512K
sort_buffer=512K
record_buffer=512K
max_connections=500
wait_timeout=120
interactive_timeout=120
max_connect_errors=3000
long_query_time=1
max_heap_table_size=16M
tmp_table_size=8M
thread_concurrency=8
myisam_sort_buffer_size=8M
myisam_sort_buffer_size=4M
low_priority_updates=1
ft_min_word_len=1

【php.ini配置参考】

output_buffering = On
disable_functions = system,passthru,shell_exec,exec,popen,proc_open
enable_dl = Off

upload_tmp_dir = "D:/tmp/uploadtemp/"
session.save_path = "d:/tmp/sessiondata/"
date.timezone = "Etc/GMT-8" ;表示的是 GMT+8
mbstring.language = Neutral ; Set default language to Neutral(UTF-8) (default)
mbstring.internal_encoding = UTF-8 ; Set internal encoding to UTF-8

cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.impersonate = 1

[eaccelerator]
;zend_extension="/APM/ext/eAccelerator_v0_9_6_for_v5_2_13-VC6/eAccelerator.dll"
;zend_extension="/APM/ext/eAccelerator_v1_0_svn412_for_v5_2_13-VC6/eAccelerator.dll"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
;eaccelerator.log_file="/var/log/httpd/eaccelerator_log"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="300"
相关文章 大家在看