升级到php5.5

我的Ubuntu 12.04.4 LTS (cat /etc/issue)最多支持到php5.3,在往上就不自动支持了。

apt-get update ,然后在apt-get upgrade

需要安装python-software-properties 。 参考这篇文章


apt-get install python-software-properties
apt-get update
apt-get install php5

就这样升到了php5.5,同时把apache也升到了 (apache2 -v)

Server version: Apache/2.4.10 (Ubuntu)
Server built: Jul 22 2014 22:57:50

安装的时候,报告svn不可用,我就暂时把配置去掉了。等升级完成后,发现svn安装有问题。一个svn的mod不见了。然后看到这个人和我的情况类似。Link

 

更换 git 的用户名字

Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

git config –global user.name “Your Name”
git config –global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

git commit –amend –reset-author

IE VM Box

Microsoft 开始提供完整的ie虚拟机供开发人员测试。

http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCIQFjAA&url=http%3A%2F%2Fwww.modern.ie%2Fvirtualization-tools&ei=yQKfU9acIeK-sQTktIKgCg&usg=AFQjCNElNXTTGVhxcY8E0WuLbTGwKlADkw&bvm=bv.68911936,d.cWc

php升级到5.5的问题

周末同事升级了php,升到5.5, 之前是5.3.

周一上班发现很多问题,主要集中如下

1.  datetime 出现问题。这个问题其实应该是5.4的改动 。

日期与时间扩展 中,不再支持时区使用 TZ(TimeZone)环境变量设置。必须使用 date.timezone php.ini 配置选项或 date_default_timezone_set() 函数来指定时区。PHP 将不再尝试猜测时区,而是回退到“UTC”并发出一条 E_WARNING 错误。

2. 第二个问题是 mysql 的连接问题。出现的错误是

SQLSTATE[HY000] [2002] No such file or directory