Symfony(8)Update Version to 2.5

Symfony(8)Update Version to 2.5

1. Installation Latest PHP
http://us1.php.net/distributions/php-5.6.2.tar.gz

Download the unzip the file
>tar zxvf php-5.6.2.tar.gz

preinstall and config the files
>./configure --prefix=/home/carl/tool/php-5.6.2 --with-openssl

Error Message:
configure: error: xml2-config not found. Please check your libxml2 installation.

Solution:
http://drewsymo.com/2013/11/php-configure-error-xml2-config-not-found-please-check-your-libxml2-installation/
>sudo apt-get install libxml2-dev

Error Message:
configure: error: Cannot find OpenSSL's <evp.h>
Solution:
http://www.sudosu.in/2013/05/complile-and-install-php-from-source.html
>sudo apt-get install libssl-dev

>./configure --prefix=/home/carl/tool/php-5.6.2 --with-openssl

Success.

>make
>make install

Put the php/bin in path.

The installation on PHP is good now.
>php --version
PHP 5.6.2 (cli) (built: Oct 29 2014 11:49:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

Set up Timezone
copy the php.ini-development from the unzip php directory
>cp php.ini-development /opt/php/lib/php.ini

>sudo ln -s /opt/php/lib/php.ini /etc/php.ini
>vi /etc/php.ini
; http://php.net/date.timezone
date.timezone = America/North_Dakota/Center


2. Get and Set up Composer
>curl -sS https://getcomposer.org/installer | php

Prepare the directory and place the right file in right place
>mv composer.phar /home/carl/tool/composer/bin/composer

>composer --version
Composer version 1.0-dev (a309e1d89ded6919935a842faeaed8e888fbfe37) 2014-10-20 19:16:14

3. Set up Mysql Database
http://sillycat.iteye.com/blog/2090147
http://sillycat.iteye.com/blog/562672


4. Practice a Symfony Project 2.5.6
>composer create-project symfony/framework-standard-edition myfirstproject/ ~2.5

Check all the configuration
>php app/check.php

Run that server
>php app/console server:run



References:
Symfony 1 ~ 7
http://sillycat.iteye.com/blog/2076067
http://sillycat.iteye.com/blog/2076480
http://sillycat.iteye.com/blog/2078154
http://sillycat.iteye.com/blog/2078553
http://sillycat.iteye.com/blog/2078564
http://sillycat.iteye.com/blog/2078572

 

你可能感兴趣的:(version)