Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Questions about Wine on Linux
Locked
shuzhang
Level 1
Level 1
Posts: 5
Joined: Thu Feb 17, 2011 4:06 am

Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by shuzhang »

I 've intall httpd-2.2.17-win32-x86-no_ssl.msi (from http://httpd.apache.org/download.cgi -> http://labs.renren.com/apache-mirror//h ... no_ssl.msi ) by Wine1.3.13 in Ubuntu 10.10 successfully. And Apache HTTP Server (httpd) 2.2.17 can run nromal, but I found that if size of html file is more than 255 bytes, web browser can't open this html from the apache http server, if size of html file is less than 256 bytes, web browser cant open this html normally from the apache http server.


Grateful for any help.


By the way, if use wine1.2.2 in Ubuntu10.10, can't install httpd-2.2.17-win32-x86-no_ssl.msi , process is:

root@dt-desktop:~# wine msiexec /i httpd-2.2.17-win32-x86-no_ssl.msi
wine: created the configuration directory '/root/.wine'
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes
fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33cfdc
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\components\\xpti.dat" 1 536870916 (nil) (nil) 0x21fefc (nil)
fixme:iphlpapi:NotifyAddrChange (Handle 0xa62e8d8, overlapped 0xa62e8e0): stub
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\components\\compreg.dat" 1 536870916 (nil) (nil) 0x1d3fd3c (nil)
wine: configuration in '/root/.wine' has been updated.
fixme:advapi:LookupAccountNameW (null) L"root" (nil) 0x32f160 (nil) 0x32f164 0x32f158 - stub
fixme:advapi:LookupAccountNameW (null) L"root" 0x167be0 0x32f160 0x167730 0x32f164 0x32f158 - stub
fixme:shdocvw:IEParseDisplayNameWithBCW stub: 0x0 L"http://httpd.apache.org/docs/2.2/" 0x7a5910 0x32f52c
fixme:ntdll:server_ioctl_file Unsupported ioctl 24000 (device=2 access=1 func=0 method=0)
fixme:shdocvw:IEParseDisplayNameWithBCW stub: 0x0 L"http://httpd.apache.org/docs/2.2/faq/" 0x7a58e8 0x32f52c
fixme:ntdll:server_ioctl_file Unsupported ioctl 24000 (device=2 access=1 func=0 method=0)
fixme:wtsapi:WTSEnumerateProcessesA Stub (nil) 0x00000000 0x00000001 0x1ace6e8 0x1ace6ec
fixme:wtsapi:WTSFreeMemory Stub (nil)
C:\users\root\Temp\msiddd3.tmp: can't open file C:/Apache2.2/logs/install.log
source line number 49
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes
Installing the Apache2.2 service
fixme:service:svcctl_CreateServiceW Dependencies not supported yet
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd.exe: Could not open configuration file C:/Apache2.2/conf/httpd.conf: File not found
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes
fixme:msvcrt:_setmbcp trail bytes data not available for DBCS codepage 0 - assuming all bytes
httpd.exe: Could not open configuration file C:/Apache2.2/conf/httpd.conf: File not found
root@dt-desktop:~# ^C
root@dt-desktop:~#

Thanks

sorry for my poor english
shuzhang
Level 1
Level 1
Posts: 5
Joined: Thu Feb 17, 2011 4:06 am

Post by shuzhang »

Above "if size of html file is less than 256 bytes, web browser cant open this html normally from the apache http server. " should be "if size of html file is less than 256 bytes, web browser can open this html normally from the apache http server. "

Sorry for that "cant" is misspelt
Charles Davis

Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by Charles Davis »

Why would you run the Windows version of Apache in Wine instead of
running the Linux version natively?

Chip
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by vitamin »

shuzhang wrote:root@dt-desktop:~# wine msiexec /i httpd-2.2.17-win32-x86-no_ssl.msi
Don't run Wine as a root. File your bug in bugzilla. You obviously doing something you should not - all Linux distros have Apache available.
shuzhang
Level 1
Level 1
Posts: 5
Joined: Thu Feb 17, 2011 4:06 am

Re: Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by shuzhang »

Charles Davis wrote:Why would you run the Windows version of Apache in Wine instead of
running the Linux version natively?

Chip
Because my windows application is a edge server, this edge server need to create an apache http server. Now I need to run this edge server(windows application) in linux.
shuzhang
Level 1
Level 1
Posts: 5
Joined: Thu Feb 17, 2011 4:06 am

Re: Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by shuzhang »

vitamin wrote:
shuzhang wrote:root@dt-desktop:~# wine msiexec /i httpd-2.2.17-win32-x86-no_ssl.msi
Don't run Wine as a root. File your bug in bugzilla. You obviously doing something you should not - all Linux distros have Apache available.
Thanks. I use normal user to test, result is same. I feel that apache http server(win32 version) can run linux by Wine 1.3.13 successfully, now it is strange that if size of html file in apache http server is more than 255 bytes, web browser can't open the html.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Yes, sounds very interesting. What happens when you fetch
the file with wget instead of firefox? What does the server say?
shuzhang
Level 1
Level 1
Posts: 5
Joined: Thu Feb 17, 2011 4:06 am

Post by shuzhang »

DanKegel wrote:Yes, sounds very interesting. What happens when you fetch
the file with wget instead of firefox? What does the server say?
Thanks. Size of index.html is 265 bytes. Below is result that I use wget:

dt@dt-desktop:~$ wget -d --tries=3 http://192.168.167.168:8888/
Setting --tries (tries) to 3
DEBUG output created by Wget 1.12 on linux-gnu.

--2011-02-21 11:20:49-- http://192.168.167.168:8888/
Connecting to 192.168.167.168:8888... connected.
Created socket 3.
Releasing 0x08e98db8 (new refcount 0).
Deleting unused 0x08e98db8.

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 192.168.167.168:8888
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... No data received.
Closed fd 3
Retrying.

--2011-02-21 11:20:55-- (try: 2) http://192.168.167.168:8888/
Connecting to 192.168.167.168:8888... connected.
Created socket 3.
Releasing 0x08e98db8 (new refcount 0).
Deleting unused 0x08e98db8.

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 192.168.167.168:8888
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... No data received.
Closed fd 3
Retrying.

--2011-02-21 11:21:02-- (try: 3) http://192.168.167.168:8888/
Connecting to 192.168.167.168:8888... connected.
Created socket 3.
Releasing 0x08e98db8 (new refcount 0).
Deleting unused 0x08e98db8.

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 192.168.167.168:8888
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... No data received.
Closed fd 3
Giving up.

dt@dt-desktop:~$
solarisfire
Newbie
Newbie
Posts: 3
Joined: Thu Jan 03, 2013 6:46 am

Re: Ubuntu10.10 + Wine + Apache(Win32) = Can't open html

Post by solarisfire »

Thread necro I know, but I'd love to get an answer as to why this doens't work and if there is a workaround now?

I cannot use the linux apache server as I am relying on windows dll's (that apache loads as modules) for my application which the linux version of apache cannot load. As with most windows apps the dll is closed source so I can't even get hold of it and compile it as a .so, therefore I have no choice but to install apache inside of Wine.
Locked