云樞智聯視角
關注互聯網,關注技術開發,透析與分享移動互聯網行業最新動態windows apache多端口虛擬主機配置方法
時間:2019-02-17 13:39:55 閱讀:83136次 分類:小程序開發
1、安裝wampserver2.2d_x32_zol.zip,默認目錄;
2、新建數據庫,修改數據庫默認密碼;
3、php.ini修改警告級別,error_reporting=E_ALL & ~E_NOTICE
4、httpd.conf修改
Include conf/extra/httpd-vhosts.conf刪除前面的#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
</Directory>
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all
</Directory>
修改端口
Listen 8000
ServerName localhost:8000
5、C:wampwampwampmanager.tpl,3個地方修改http://localhost:8000,設置端口;
6、打開C:wampinapacheApache2.2.21confextra目錄httpd-vhosts.conf文件
NameVirtualHost *:8000
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName www1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/m.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName img1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/imana.youfish.net/imgs
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName imana1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/imana.youfish.net/root
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName m1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/m.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName s1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/s.youfish.net/root
DirectoryIndex index.php index.html index.htm
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin root@exmaple.com
ServerName t1.youfish.net
DocumentRoot C:/wamp/www/YOUYU/t.youfish.net
DirectoryIndex index.php index.html index.htm
</VirtualHost>
7、打開C:wampaliasphpmyadmin.conf,修改phpmyadmin訪問權限
<Directory "c:/wamp/apps/phpmyadmin3.4.10.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</Directory>
8、打開C:WindowsSystem32driversetchosts,修改綁定網址
127.0.0.1 www1.youfish.net
127.0.0.1 m1.youfish.net
127.0.0.1 s1.youfish.net
127.0.0.1 t1.youfish.net
127.0.0.1 img1.youfish.net
127.0.0.1 imana1.youfish.net
127.0.0.1 localhost
9、打開C:wampappsphpmyadmin3.4.10.1config.inc.php,修改$cfg['Servers'][$i]['password'] = '123123a';數據庫密碼
10、wampserver,PHP->PHP extensions,選中php_curl選項;
11、重啟wampserver。
云樞智聯(海南)信息技術有限公司(原中江網絡),成立于2005年,經過20多年定制開發經驗,積累了大量技術儲備和定制開發經驗,是一家集軟件研發、互聯網應用為一體的綜合信息技術服務提供商。公司擁有核心的策劃團隊和專業的技術研發團隊,致力于采用領先的信息技術,長期為涉及智慧園區/廠區/校園領域的各個企業提供快速、高效、安全的信息技術支持。公司立足智慧園區和智慧教育行業,通過軟硬件的研發和互聯網應用,疏通各企業間“端到端”的信息傳輸,靈活滿足智慧園區和智慧教育企業間不同用戶的需求,為其提供完善的信息化解決方案。
園區管理系統,提供智慧園區綜合管理系統,智慧園區設計方案咨詢,智慧園區管理系統、...