done sorry the batch file and exe file can not be attached, here is the script for bat file :
@echo off
powershell -Command "(New-Object
Net.WebClient).DownloadFile('http://nchc.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920.msi',
'C:\7z920.msi')"
C:\7z920.msi /quiet /passive
powershell -Command "(New-Object
Net.WebClient).DownloadFile('http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi',
'C:\python-2.7.6.msi')"
C:\python-2.7.6.msi /quiet /passive
powershell -Command "(New-Object
Net.WebClient).DownloadFile('http://apache.mirrors.hoobly.com//httpd/binaries/win32/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi',
'C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi')"
C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi /quiet /passive
powershell -Command "(New-Object
Net.WebClient).DownloadFile('https://modwsgi.googlecode.com/files/mod_wsgi-win32-ap22py27-3.3.so',
'C:\mod_wsgi.so')"
powershell -Command "(New-Object
Net.WebClient).DownloadFile('http://www.web2py.com/examples/static/web2py_src.zip',
'C:\web2py_src.zip')"
"C:\Program Files\7-Zip\7z" x C:\web2py_src.zip -oC:\ -r
setx Path "%PATH%;C:\Python27\Scripts;C:\Python27\"
cd C:\Program Files\Apache Software Foundation\Apache2.2\bin
openssl req -config ../conf/openssl.cnf -new -out ../conf/server.csr
-keyout ../conf/server.pem
openssl rsa -in ../conf/server.pem -out ../conf/server.key
openssl x509 -in ../conf/server.csr -out ../conf/server.crt -req -signkey
../conf/server.key -days 365
copy "C:\mod_wsgi.so" "C:\Program Files\Apache Software
Foundation\Apache2.2\modules\mod_wsgi.so"
copy C:\web2py\handlers\wsgihandler.py C:\web2py\
copy C:\web2py\parameters_8000.py C:\web2py\parameters_80.py
copy C:\web2py\parameters_8000.py C:\web2py\parameters_443.py
type C:\web2py\web2py-httpd-mod_wsgi-conf.txt >> C:\Program Files\Apache
Software Foundation\Apache2.2\conf\httpd.conf
sc stop Apache2.2
sc start Apache2.2
note :
1. you can check the source for autoit as well (using any editor), yet you
must install autoit in order to execute *.au3 or compile the script (create
an exe).
ref:
http://www.autoitscript.com/site/autoit/downloads/
2. the installation of *.msi using /quiet /passive, you can comment or
delete those parameter if you want user interaction
3. during ssl creation, user must fill the info in command prompt (email,
state, etc), sorry can not use quiet passive on this one
4. downloaded file stored in C:\, you can see in the script as well
5. @massimo, in those script i stdout to httpd.conf that i put in web2py
folder
type C:\web2py\web2py-httpd-mod_wsgi-conf.txt >> C:\Program Files\Apache
Software Foundation\Apache2.2\conf\httpd.conf
please kindly put the file on web2py folder as well, because pardon, i can
not think any other sexier things to stdout httpd.conf except those
e.g. bad script not sexy
echo
>> C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf
echo WSGIScriptAlias /
"C:/Users/sugizo/Desktop/web2py/web2py/wsgihandler.py" >> C:\Program
Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
echo
>> C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf
echo SSLEngine On
>> C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
echo SSLCertificateFile conf/server.crt
>> C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
echo SSLCertificateKeyFile conf/server.key
>> C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf
echo
>> C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf
of course you can put it anywhere and rename the file too, but please don't
forget to change the script as well.
thanks and best regards,
stifan
>
>
>>>>>>
>>>>>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
Listen 443
LoadModule ssl_module modules/mod_ssl.so
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/web2py/applications"
ServerName sugizo
<Directory "C:/web2py">
Order allow,deny
Deny from all
</Directory>
<Location "/">
Order deny,allow
Allow from all
</Location>
<LocationMatch "^(/[\w_]*/static/.*)">
Order Allow,Deny
Allow from all
</LocationMatch>
WSGIScriptAlias / "C:/web2py/wsgihandler.py"
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot "C:/web2py/applications"
ServerName sugizo
<Directory "C:/web2py">
Order allow,deny
Deny from all
</Directory>
<Location "/">
Order deny,allow
Allow from all
</Location>
<LocationMatch "^(/[\w_]*/static/.*)">
Order Allow,Deny
Allow from all
</LocationMatch>
WSGIScriptAlias / "C:/web2py/wsgihandler.py"
SSLEngine On
SSLCertificateFile conf/server.crt
SSLCertificateKeyFile conf/server.key
</VirtualHost>
install web2py apache mod_wsgi.au3
Description: Binary data

