Varnish+litespeed4.1.1+php5.3.6+apc+centos5.6×64

我从php 5.2.17升级到php 5.3.6注意,php5.3.6使用apc,请不要勾选Suhosin

centso 5.6 32位用下面的代码:

   

--prefix=/usr/local/lsws/lsphp5 --enable-memory-limit --with-pdo-mysql=mysqlnd --with-mysql --with-mysqli=mysqlnd --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-litespeed --enable-inline-optimization --with-curl --with-curlwrappers --with-mcrypt --with-mhash --with-mime-magic --with-openssl --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --enable-bcmath

centso5.6 64位用下面的代码

   

--prefix=/usr/local/lsws/lsphp5 --enable-memory-limit --with-pdo-mysql=mysqlnd --with-mysql --with-mysqli=mysqlnd --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-litespeed --enable-inline-optimization --with-curl --with-curlwrappers --with-mcrypt --with-mhash --with-mime-magic --with-openssl --with-freetype-dir=/usr/lib64 --with-jpeg-dir=/usr/lib64 --enable-bcmath --with-libdir=lib64

升级完毕后运行探针,出现下面的情况

   

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 142

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lsws/DEFAULT/html/phpinfo.php:142) in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 178

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 142

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lsws/DEFAULT/html/phpinfo.php:142) in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 178

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 142

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lsws/DEFAULT/html/phpinfo.php:142) in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 178

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/lsws/DEFAULT/html/phpinfo.php:142) in /usr/local/lsws/DEFAULT/html/phpinfo.php on line 934

需要设置个时区,编辑/usr/local/lsws/lsphp5/lib/php.ini

添加:date.timezone = Asia/Shanghai

下面是我的样本:

   

date.timezone = Asia/Shanghai
[APC]
extension_dir = /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20090626/
extension=apc.so
apc.shm_size = 32M

编辑完 service lsws restart

再次刷新页面应该是没上面的提示了,如果还有请留言吧!

去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

正在跳转到PayPal...

未经允许不得转载:飞翔线 » Varnish+litespeed4.1.1+php5.3.6+apc+centos5.6×64