/技术
分类:技术来源:bobo最近更新:2017-09-10浏览:50350
终端开启apache
#apache路径:
etc/apache2
#开启apache:
sudo apachectl start
#重启apache:
sudo apachectl restart
#关闭apache:
sudo apachectl stop
~~ ~~
~~ ~~
vhost.conf配置
~~ ~~
DocumentRoot "E:/working/zz/trunk"
SetEnv WEB_PA_KEY 'b5a0c4ad'
ServerName zz2.bobo.me
比较全的配置
~~ ~~
DocumentRoot "D:/phpstudy_pro/WWW/zz4"
ServerName zz4.com
ServerAlias zz4.com
FcgidInitialEnv PHPRC "D:/phpstudy_pro/Extensions/php/php5.4.45nts"
AddHandler fcgid-script .php
FcgidWrapper "D:/phpstudy_pro/Extensions/php/php5.4.45nts/php-cgi.exe" .php
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html
SetEnv WEB_PA_KEY '123456'