Skip to main content

Posts

Showing posts from November, 2010

Nginx PhpMyAdmin PHP - Cannot Start Session Without Errors

PhpMyAdmin should work properly with normal PHP installation with Nginx as the web server. Unfortunately there's an error regarding session error. Default PHP installation will configure the session path owner to Apache. This isn't right for the nginx and to store the session. More investigation from the php.ini will show you the path for the session. Take a note : session.save_path = "/var/lib/php/session" Solutions : 1) Change the owner for the /var/lib/php/session From : bash# ls -l /var/lib/php total 4 drwxrwx--- 2 root apache 4096 Nov 13  2009 session To : # ls -l /var/lib/php total 4 drwxrwx--- 2 root www-data 4096 Nov 18 03:18 session Finally restart your Nginx and try to browse your phpmyadmin. This should work for now :) Yatta~

CentOS 5.5 - PHP 5.1.x to PHP 5.2.x

Secara default CentOS akan membekalkan versi PHP yang stable iaitu PHP 5.1 didalam repos. Tetapi ada beberapa aplikasi web contohnya PhpMyAdmin yang memerlukan versi PHP yang terkini. Untuk itu kita kena edit di bahagian yum repos untuk memasukkan PHP terkini dari repos testing. Sebelum  bash#php -v PHP 5.1.6 (cli) (built: Mar 31 2010 02:39:17) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies 1. Edit /etc/yum.repos.d/CentOS-Testing.repo  Masukkan code dibawah dalam file tersebut. # CentOS-Testing: # !!!! CAUTION !!!! # This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras. # They may or may not replace core CentOS packages, and are not guaranteed to function properly. # These packages build and install, but are waiting for feedback from testers as to # functionality and stability. Packages in this repository will come and go during the # development period, so it should not be left en