I have two virtual hosts configured in litespead, let's call them example.com and beta.example.com. These vhosts have very similar configuration:
The problem is, on beta.example.org locales work, while on example.org don't work. The simplest test case is the following php script:
On beta.example.com, as excpected, it prints date in polish locale:
On example.com it prints date in C locale:
Could you please give me some hints what I missed, why behavior of almost identical vhosts may differ?
Thanks in advance.
Code:
--- Example.xml 2010-10-05 13:56:15.479451164 +0200
+++ ExampleBETA.xml 2010-10-05 13:55:28.741356271 +0200
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
- <docRoot>$VH_ROOT/html</docRoot>
+ <docRoot>$VH_ROOT/beta</docRoot>
<adminEmails></adminEmails>
<enableGzip>0</enableGzip>
<enableIpGeo>0</enableIpGeo>
<logging>
<log>
<useServer>0</useServer>
- <fileName>$VH_ROOT/errorlog/$VH_NAME.error.log</fileName>
- <logLevel>INFO</logLevel>
+ <fileName>/var/log/http/$VH_NAME.error.log</fileName>
+ <logLevel>ERROR</logLevel>
<rollingSize>500M</rollingSize>
</log>
<accessLog>
@@ -18,7 +18,7 @@
<logFormat></logFormat>
<logHeaders>7</logHeaders>
<rollingSize>500M</rollingSize>
- <keepDays>7</keepDays>
+ <keepDays>30</keepDays>
<bytesLog></bytesLog>
<compressArchive>1</compressArchive>
</accessLog>
@@ -33,7 +33,7 @@
<scriptHandler>
<suffix>php</suffix>
<type>lsapi</type>
- <handler>Example</handler>
+ <handler>ExampleBETA</handler>
<note></note>
</scriptHandler>
</scriptHandlerList>
@@ -41,21 +41,15 @@
<allowOverride>31</allowOverride>
<accessFileName>.htaccess</accessFileName>
</htAccess>
- <security>
- <accessControl>
- <allow></allow>
- <deny></deny>
- </accessControl>
- </security>
<extProcessorList>
<extProcessor>
<type>lsapi</type>
- <name>Example</name>
- <address>uds://tmp/lshttpd/Example.sock</address>
+ <name>ExampleBETA</name>
+ <address>uds://tmp/lshttpd/ExampleBETA.sock</address>
<note></note>
- <maxConns>80</maxConns>
+ <maxConns>50</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=10000</env>
- <env>PHP_LSAPI_CHILDREN=80</env>
+ <env>PHP_LSAPI_CHILDREN=50</env>
<initTimeout>60</initTimeout>
<retryTimeout>5</retryTimeout>
<persistConn>0</persistConn>
@@ -70,8 +64,8 @@
<runOnStartUp>1</runOnStartUp>
<extMaxIdleTime>-1</extMaxIdleTime>
<priority>0</priority>
- <memSoftLimit>0</memSoftLimit>
- <memHardLimit>0</memHardLimit>
+ <memSoftLimit>400M</memSoftLimit>
+ <memHardLimit>500M</memHardLimit>
<procSoftLimit>300</procSoftLimit>
<procHardLimit>300</procHardLimit>
</extProcessor>
@@ -79,6 +73,5 @@
<rewrite>
<enable>1</enable>
<logLevel></logLevel>
- <rules></rules>
</rewrite>
</virtualHostConfig>
Code:
<?php
setlocale(LC_ALL, 'pl_PL.utf-8');
echo strftime("%A %d %B %Y", time());
?>
Code:
wtorek 05 październik 2010
Code:
Tuesday 05 October 2010
Thanks in advance.