Installing YAWS on Windows - WordPress.com

44 downloads 2368 Views 168KB Size Report
Download YAWS from http://yaws.hyber.org/download/(by the time of this writing, the latest is ... Extract the tar.gz file into a location, e.g. D:\erlang-yaws. 3.
Installing YAWS on Windows 1. Download YAWS from http://yaws.hyber.org/download/(by the time of this writing, the latest is version 1.76.) 2. Extract the tar.gz file into a location, e.g. D:\erlang-yaws 3. Two folders created: yaws and yaws-x.xx. 4. Download Windows Installer (Win32.tar.gz) from http://yaws.hyber.org/wiki/showOldPage.yaws?node=YawsAndWin32&index=1 5. Extract the Win32.tar.gz and copy all its content into yaws-x.xx/ 6. Windows will complain there is already folder scripts, just press yes for all to append the file inside the folder File need to modify a) yaws_vdir.erl Locate this three line of codes: -include_lib("yaws/include/yaws.hrl"). -include_lib("yaws/include/yaws_api.hrl"). -include_lib("yaws/src/yaws_debug.hrl"). Change it into: -include_lib("../include/yaws.hrl"). -include_lib("../include/yaws_api.hrl"). -include_lib("yaws_debug.hrl"). b) yaws_showarg.erl Locate this line of code: -include_lib("yaws/include/yaws_api.hrl"). Change it into: -include_lib("../include/yaws_api.hrl"). c) authmod_gssapi.erl Locate this two lines of codes: -include("yaws.hrl"). -include("yaws_api.hrl"). Change it into: -include("../include/yaws.hrl"). -include("../include/yaws_api.hrl"). d) yaws_generated.template Locate this line of code:

is_local_install() -> %localinstall%. Change it into: is_local_install() -> “%localinstall%”.

7. Go to yaws-x.xx and execute “install yaws” 8. Copy the folder from C:\Program Files\yaws-x.xx into \lib\yaws-x.xx 9. By default, the www page will be served from the C:\Document and Settings\\My Documents\yaws, this can be changed by changing the environment variable of YAWS_VAR. 10. By default also, the configuration file is located at C:\Document and Settings\\Application Data\yaws-x.xx\yaws.conf, however this can also be changed by changing the environment variableYAWS_CONF. 11. Finally, I did change the environment variable YAWS to \lib\yaws-x.xx. 12. Make a shortcut to \lib\yaws-x.xx\yaws.bat to desktop or include this path into the environment variable of PATH. 13. You should be able to execute yaws –i from any place to start the Yaws server!

Suggest Documents