File: install.bat

package info (click to toggle)
cherokee 0.7.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,808 kB
  • ctags: 6,577
  • sloc: ansic: 45,071; python: 9,628; sh: 9,468; makefile: 1,639; xml: 61; perl: 32
file content (22 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo Port 80                              > "%CD%\cherokee.conf"
echo DocumentRoot "%CD%\www\"            >> "%CD%\cherokee.conf"
echo.                                    >> "%CD%\cherokee.conf"
echo DirectoryIndex index.html           >> "%CD%\cherokee.conf"
echo.                                    >> "%CD%\cherokee.conf"
echo Directory / {                       >> "%CD%\cherokee.conf"
echo    Handler common                   >> "%CD%\cherokee.conf"
echo }                                   >> "%CD%\cherokee.conf"
echo Directory /images {                 >> "%CD%\cherokee.conf"
echo    Handler file                     >> "%CD%\cherokee.conf"
echo }                                   >> "%CD%\cherokee.conf"
echo Extension php {                     >> "%CD%\cherokee.conf"
echo    Handler phpcgi {                 >> "%CD%\cherokee.conf"
echo      Interpreter C:\PHP\php-cgi.exe >> "%CD%\cherokee.conf"
echo    }                                >> "%CD%\cherokee.conf"
echo }                                   >> "%CD%\cherokee.conf"

echo @echo off                                                     > "%CD%\cherokee.bat"
echo cd "%CD%"                                                    >> "%CD%\cherokee.bat"
echo start "Cherokee" /min .\cherokee.exe -C "%CD%\cherokee.conf" >> "%CD%\cherokee.bat"
echo.                                                             >> "%CD%\cherokee.bat"