Centos 6.2: Compile PHP 5.4.2 from source
Before installation start, make sure you have already installed web server such as Apache, Nginx… and Mysql server Install command: [dependecies] yum -y install libmcrypt libmhash openssl-devel...
View ArticleCodeigniter hook: combine master page and auto load view
Get source at: https://github.com/phthviet/codeigniter_hook_master_autoview How to use? When use this hook. you don’t need to load view manually by hand, just doing what are in your controller codes...
View ArticleSymfony 2: Tiny tips
1. Manual change class metadata property: $metadata = $em->getClassMetaData(get_class(new Entity())); $metadata->setIdGeneratorType(\Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_NONE);
View ArticleCentos 5.8 install your own git server
Install dependencies yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel Install from source wget https://git-core.googlecode.com/files/git-1.7.11.1.tar.gz tar -xzvf...
View ArticleUbuntu 12.04 Install PHP Solr extension
sudo su Install dependencies: apt-get install libxml2-dev libcurl4-openssl-dev Install by pear pear install pecl/solr Or compile from source cd /opt wget http://pecl.php.net/get/solr-1.0.2.tgz tar -xvf...
View Article[Ubuntu] PHP 5.4.x and gearman troubleshooting
When upgraded to PHP 5.4.x, you may have an error: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/gearman.so’ – /usr/lib/php5/20100525/gearman.so: undefined symbol:...
View ArticleUse Memcache for Session handler on Symfony 2.1
#parameters.yml session_memcache_host: 127.0.0.1 session_memcache_port: 11211 session_memcache_prefix: sess session_memcache_expire: 3600 #config.yml services: session.memcache: class: Memcache calls:...
View ArticleSymfony 2 redefine form_row for horizontal form in bootstrap support...
Override form_row block in your twig template as follow: {% form_theme signup _self %} {% block form_row %} {% spaceless %} <div class="control-group{% if errors|length > 0 %} error{% endif...
View ArticleSymfony 2: Injecting service as dependency into doctrine repository
To do that, you must declare repository as a service and inject services which you need into it. cities_repository: class: MY\EntityBundle\Entity\CitiesRepository arguments: [MYEntityBundle:Cities]...
View ArticlePHP 5.4 Install php-intl extension on centos 5 with latest ICU data
When i moved my Symfony project to VPS, the problem is missing php-intl because i have installed PHP from Remi repository (php 5.4.11). I will show you how can we fix it. Install ICU version 4+ to meet...
View Article
More Pages to Explore .....