:: PHP : Installing APC from source
Posted by blackonsole on June 2nd, 2012 04:16 AM | No Comment
:: How to install APC from source
wget //pecl.php.net/get/APC
tar xzf APC
cd APC
phpize
./configure --enable-apc --enable-apc-mmap
make && make install
:: Setup APC on php.ini
vi php.ini
; add APC extension on php.ini, some like these:
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128M
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
:: Checking and apply
php -m | grep apc
/etc/init.d/httpd restart
:: Link
+ Google
+ WebHostingNeeds
:: Debian: Upgrade php 5.3
Posted by blackonsole on May 12th, 2012 04:29 AM | No Comment
:: How to upgrade php 5.3 on Debian
+ setup php5.3 repo
vi /etc/apt/source.list
add these line:
deb //php53.dotdeb.org stable all
deb-src //php53.dotdeb.org stable all
+ update repo and upgrade php 5.3
apt-get update
apt-get dist-upgrade
:: Links
+ Google
+ DebianTutorials
:: PHP: Unable to load dynamic library json.so
Posted by blackonsole on May 6th, 2012 02:16 PM | No Comment
:: Error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0
:: How to fix unable to load dynamic library json.so on centos
+ reinstall php
yum remove php
yum install php
+ reinstalling php-common
yum ...
:: PHP : Installing JSON extention
Posted by blackonsole on May 6th, 2012 02:08 PM | No Comment
:: How to installing php json extention on Linux CentOS
+ installing php
yum install php php-pear php-devel gcc make
+ downloading json
pecl download json
+ installing php json
pear install json-1.2.1.tgz
+ create json.ini
vi /etc/php.d/json.ini
; add this line:
extension:json.so
+ checking
php -i | grep json
some like this:
json
json ...
:: CentOS 5 : installing php-fpm
Posted by blackonsole on May 3rd, 2012 07:23 AM | No Comment
:: How to install php-fpm on CentOS 5.8
+ installing repository
rpm -Uvh //rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum install yum-priorities
+ add priority=10 on remi.repo
vi /etc/yum.repos.d/remi.repo
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=//rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=//rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=0
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
+ installing php-fpm
yum install php-fpm
or
yum --enablerepo=remi install php-fpm
:: Links
+ Google
+ HowToForge
:: PHP : apc.shm_size now uses M/G suffixes
Posted by blackonsole on May 3rd, 2012 04:39 AM | No Comment
:: PHP error
php -v
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line
:: How to fix apc.shm_size now uses M/G suffixes on CentOS
edit apc.ini and change on apc.shm_size
vi /etc/php.d/apc.ini
from
apc.shm_size = 128
to
apc.shm_size ...
:: Block php eval base64_decode on whmcs
Posted by blackonsole on February 19th, 2012 10:56 AM | 3 Comments
:: issue
If you got some script on open ticket in whmcs some like: