extrem mini-installation

Webbservrar

9 svar · 648 visningar · startad av P

Medlem sedan jan. 20012 204 inlägg
Trådstart#1

Finns det någon liten version av Apache så att man kan köra den på Windows CE? Jag har bara ett 2 mb kort. :e

Medlem sedan dec. 19996 721 inlägg
#2

Nej, den måste inte bara var liten, den ska ju portas till WinCE också, och det har ingen gjort (ännu).

På vissa CE-maskiner kan man slänga ut Windows och köra Linux, och då kan man nog knapra ihop en liten fungerande Apache.

Måste det vara Apache?

Medlem sedan jan. 20012 204 inlägg
#3

nej absolut inte... jag är ute efter en webbserver som klarar php och kanske mysql... om detta nu är möjligt

Medlem sedan dec. 19996 721 inlägg
#4

Nej, då blev det ännu värre. Om du kan nöja dig med ASP så kan GoAhead funka. Den är, rent generellt, en väldigt trevlig server.
www.goaehad.com

Medlem sedan jan. 20012 204 inlägg
#5

Fungerar asp på den och hur får jag in det? Är adressen www.goahead.com?

How big is the code?
The footprint of the compiled version of the embedded server in a Windows CE environment is less than 60K of code.

Tar den bara 60k?

Medlem sedan jan. 20012 204 inlägg
#6

ingen?

Medlem sedan apr. 20007 588 inlägg
#7

Ja, i startläge antar jag. Men när den börjar hantera HTTP-förfrågningar så upptar den med största sannolikhet mer minne för att hantera varje request-tråd.

Medlem sedan jan. 20012 204 inlägg
#8

Jag laddade ner en zip-fil på ca 800 kb, zippade upp och gjorde som det stod i
manualen. Testade att köra servern på min windows burk och det funkade fint men nu
vill jag ha över den till windows CE. Hur gör jag.. jo !

For Windows CE:

Either of two different methods may be used to build the Windows CE
WebServer:

Using build.bat:

In the WebServer build.bat file (CE/build.bat), ensure that the "set PATH"
statement is correct, and that both the include and library files paths are
correct.
Ensure that all compiler flags are set correctly.

Note: You can get the correct flag settings for each processor from within
Visual C++. Set your project to build against the target SDK. Access the
compiler settings from the menu bar. Choose Project, Settings, and the
C/C++ tab. The textbox labeled "Preprocessor definitions" lists the compiler
settings.
Run the build.bat file.
Load webs.exe and your web pages on to your CE device using your normal
procedures to transfer files to the device. The default location for the web
pages is in the \web directory. This can be modified in main.c. Using
precompiled and linked pages (see WEBS_PAGE_ROM and WebCompiler
below) make it easy to load the application and its pages to the system in
one step.
Using Microsoft's C++ Visual Studio:

In Microsoft Visual C++, Visual Studio, open the workspace webs.dsw in the
CE subdirectory.
Set the include and library paths properly for your device.
Be sure the symbolic constants CE, UEMF, WEBS, and UNICODE are defined.

Use the build facilities of Visual Studio to generate webs.exe.
Load webs.exe and your web pages on to your CE device using your normal
procedures to transfer files to the device. The default location for the web
pages is in the \web directory. This can be modified in main.c. Using
precompiled and linked pages (see WEBS_PAGE_ROM and WebCompiler
below) make it easy to load the application and its pages to the system in
one step.
Note: By default, user management and digest access are not added when
WebServer compiles. If these features are desired, set the proper flags in
the build.bat file.

Det är bara det att jag fattar noll av vad som menas....

Build-filen ser ut så här:

set PATH=C:\WINNT\system32;D:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;D:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;D:\Program Files\Microsoft Visual
Studio\Common\Tools;D:\Program Files\Microsoft Visual
Studio\VC98\Bin;D:\Windows CE Tools\wce212\TEST1\Lib\x86;

cl -ML -W3 -GF -D "CE" -D "WEBS" -D "UEMF" -D "_WIN32_" -D "OS=CE" -D
"_WIN32_WCE=212" -D "UNDER_CE=212" -D "x86" -D "_i386_" -D "i_386_" -D
"_x86_" -D "_MBCS" -D "UNICODE" -D "_UNICODE" -D "NATIVE64" -O2
-I"D:\Windows CE Tools\wce212\TEST1\Include" -c main.c wincompat.c
../asp.c ../balloc.c ../base64.c ../cgi.c ../default.c ../ejlex.c ../ejparse.c
../emfdb.c ../form.c ../h.c ../handler.c ../md5c.c ../mime.c ../misc.c
../page.c ../ringq.c ../rom.c ../security.c ../sock.c ../sockGen.c ../sym.c
../uemf.c ../um.c ../umui.c ../url.c ../value.c ../webrom.c ../webs.c
../websda.c ../websuemf.c

link -out:webs.exe main.obj wincompat.obj asp.obj balloc.obj base64.obj
cgi.obj default.obj ejlex.obj ejparse.obj emfdb.obj form.obj h.obj handler.obj
md5c.obj mime.obj misc.obj page.obj ringq.obj rom.obj security.obj sock.obj
sockGen.obj sym.obj uemf.obj um.obj umui.obj url.obj value.obj webrom.obj
webs.obj websda.obj websuemf.obj "D:\Windows CE
Tools\wce212\TEST1\Lib\x86\winsock.lib" "D:\Windows CE
Tools\wce212\TEST1\Lib\x86\commctrl.lib" "D:\Windows CE
Tools\wce212\TEST1\Lib\x86\corelibc.lib" "D:\Windows CE
Tools\wce212\TEST1\Lib\x86\coredll.lib" /machine:IX86 /incremental:no
-nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib
/nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib
/nodefaultlib /subsystem:windowsce,2.12

Någon som har tid och ork eller nån bra adress på hur man gör det så att man förstår?

Medlem sedan dec. 19996 721 inlägg
#9

GoAhead Webserver distribueras endast som källkod (förutom till vanlig Windows), så man måste ha Visual C++ för att kompilera den.

Medlem sedan jan. 20012 204 inlägg
#10

ok

262 ms totalt · 4 externa anrop · v20260731065814-full.d34c6d5a
125 ms — deklarationer (db)
0 ms — hämta statistik (cache)
134 ms — hämta tråd, inlägg och bilagor (db)
124 ms — ändringar (db)