Author |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
Posted: Thu 10 Jul '14 9:31 Post subject: Apache doesn't start if path contains korean characters |
|
|
I'm testing on Windows 7 x64 SP1.
I have downloaded httpd-2.4.9-win32.zip from VC10 Win32 link which includes IPv6 Crypto apr-1.5.0 apr-util-1.5.3 apr-iconv-1.2.1 openssl-1.0.1h zlib-1.2.8 pcre-8.34 libxml2-2.9.1 lua-5.1.5 expat-2.1.0.
I unzipped and installed on my system. Configured SSL. I installed in directory C:\Apache24. Everything worked fine. I accessed site using http and https and it responded well.
Then I uninstalled apache, changed my system locale to Korea. Now my new Apache path was C:\컴퓨터tt\Apache24. I changed path in httpd.conf as well. I installed apache successfully; did syntax check successfully. When I started apache using httpd -k start, the service didn't started. I checked event viewer, there was an error 'The Apache2.4 service terminated with service-specific error Incorrect function.' No logs were dropped in logs folder.
Now I am stuck. What's wrong?
Thanks and regards,
Abhay |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 10 Jul '14 17:59 Post subject: |
|
|
Well that is because of the UTF-8 filename.
Open a cmd.exe
That you will see a proper 8.3 format name for the folder like TTDE29~1
Than you can use C:\TTDE29~1\Apache24 as path. |
|
Back to top |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
Posted: Fri 11 Jul '14 7:16 Post subject: |
|
|
You're right. It's is UTF-8 issue. But your solution didn't work. Here is what I get after issuing DOS command
https://www.dropbox.com/s/3tn9gvdavi5zz80/img1.png
You can see in the image that no 8.3 format path is created. As I know, 8.3 format is created only when count of characters exceeds 8 chars.
Any reply?
Regards,
Abhay |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 11 Jul '14 10:33 Post subject: |
|
|
I'm going to go out on a limb here and figure your .conf file is being saved with ANSI encoding, try saving it with UTF-8 encoding.
I'm assuming Apache is seeing the ANSI encoded file and not decoding it properly. I do not have the Korean language on this computer but I do have UTF-8 characters to play with.
DocumentRoot "/Apache24ah/璉煉撚戀年"
<Directory "/Apache24ah/璉煉撚戀年">
If saved as an ANSI encoded text file I get
AH00526: Syntax error on line 258 of C:/Apache24ah/conf/httpd.conf:
DocumentRoot must be a directory
If saved as a UTF-8 encoded text file it all works just fine.
http://postimg.org/image/wicz6khpv/ |
|
Back to top |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
Posted: Tue 15 Jul '14 7:06 Post subject: |
|
|
No. It's not running. I checked event viewer. It shows same event log as I posted in first post. 'The Apache2.4 service terminated with service-specific error Incorrect function.' No logs were dropped in logs folder. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Jul '14 11:02 Post subject: |
|
|
Well did you notice revision 1611169 ?
Quote: | mpm_winnt: Accept utf-8 (Unicode) service names and descriptions for internationalization. |
|
|
Back to top |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
Posted: Tue 29 Jul '14 11:24 Post subject: |
|
|
I didn't understand much. I only got that it had some UTF-8 related issue. Even if it's solved, the binaries I have downloaded from Apache Lounge doesn't have this fix. So it will be fixed only when new compiled binaries are available.
It'd be more helpful if you provide some details.
Regards,
Abhay |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Jul '14 14:53 Post subject: |
|
|
That fix is currently only in trunk and has not been backported (yet) to 2.4 branch. |
|
Back to top |
|
abhay4u
Joined: 09 Jul 2014 Posts: 6 Location: India
|
Posted: Wed 30 Jul '14 6:41 Post subject: |
|
|
Hi All,
I would like to thank everyone for their help and support on this topic. I'd wait for the release and see if the issue gets resolved.
I thing that keeps my thought hunting that how come Apache 2.2.3 with OpenSSL 1.0.1g works well with UTF-8 charset. I've tested this version on English, Japanese, Korean, German OS and everything running smooth?
How come UTF-8 support provided in earlier version are not reflected in latest version? I checked with latest 2.4.10 version of Apache and I got the same result as earlier (not working with Korean path).
Regards,
Abhay |
|
Back to top |
|