http://www.apachefriends.org/zh_tw/xampp-windows.html
下載 XAMPP portable lite 1.8.3 PHP 5.5
解壓縮後直接執行xampp_start.exe或使用xampp-control.exe 開啟控制面板
啟動apache時出現以下錯誤:
16:50:25 [Apache] Status change detected: running
16:50:26 [Apache] Status change detected: stopped
16:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums
http://stackoverflow.com/questions/18300377/xampp-apache-error-apache-shutdown-unexpectedly
httpd.conf和httpd-ssl.conf 基本上已經和上面回答的一樣,設定為80和443 port了
如果之前有開啟過ASP.NET的IIS服務的話
去 "開始" -> "控制台" -> "程式和功能" -> "開啟或關閉Windows功能" -> 將"Internet Information Services"取消
Skype要把 80和443 替代port關掉
不能把他放在"Google 雲端硬碟",因為會有路徑的錯誤
C:\Users\user\Google 雲端硬碟\xampp\apache\bin>httpd.exe
httpd.exe: Syntax error on line 37 of C:/Users/user/Google \xe9\x9b\xb2\xe7\xab\
xaf\xe7\xa1\xac\xe7\xa2\x9f/xampp/apache/conf/httpd.conf: ServerRoot must be a v
alid directory
解法:放Dropbox
在控制面板中點右邊的Shell ,可以開啟XAMPP專屬的Windows console,在這邊可以用perl和mysql指令
http://www.mysitetestyes.altervista.org/work-with-xampp-on-dropbox/
Install xampp in a directory in a primary level (ex. c:\xampp). Be careful not to install xampp with the installer but copy the files from the zipped archive.
因為在c槽下還需要放置xampp,所以還是使用appserv的方案做,用vhost指到雲端硬碟的程式,並手動備份httpd.conf, vhost.conf, hosts, MySQL資料
Apache 2 如何排除 client denied by server configuration 問題 ? ( 由error_log看 )
http://www.arthurtoday.com/2011/07/apache-2-client-denied-by-server.html#.UsPiitIW214
<VirtualHost *:80>
DocumentRoot "c:/arthurtoday"
...
...
<Directory "c:/arthurtoday">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
vhost的 ServerName 請勿設 xx.localhost ,否則內網公司其他人連你的 xx.localhost 會連不上: Err_Connection_Refused (即便打開port和防火牆,只有192.168.1.xx連得上,但vhost連不上)。可以設成 bo.example.com 。這邊與打開skype無關,因為8.36.0.52 的skype已經沒有advanced options了
沒有留言:
張貼留言