After , I installed PHP5, Apache2 and MySQL completed. I want to maintain MySQL service by phpMyAdmin program. This is solution of how to install phpMyAdmin 2.11.3 on CentOS 5 :)
# su -
# cd /var/www/html# wget -c http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.3-english.tar.gz?download# tar xvfz phpMyAdmin-2.11.3-english.tar.gz
# mv phpMyAdmin-2.11.3-english phpmyadmin
# cd phpmyadmin
# cp config.sample.inc.php config.inc.php
# vi config.inc.php
.
.
$cfg['Servers'][$i]['auth_type'] = ‘http‘; # default is cookies
.
.
# service httpd restart
You can test by open phpmyadmin by this link : http://your.domain.com/phpmyadmin
CentOS is fun. :D
วันพฤหัสบดีที่ 7 เมษายน พ.ศ. 2554
Installing PHP 5.3.3 on CentOS 5.5 ( 4 April 2011 )
Preliminary Note: I am using a CentOS 5.5 32bit server in this tutorial
# yum install yum-priorities
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
NOTE: If you have a previously installed version of PHP run this command.
To resolve this do the following
# service httpd start
# yum update php53-pecl-apc –enablerepo=ius-testing
# yum install yum-priorities
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm
// Install Apache2
# yum install httpd
# yum remove php php-*
# yum install php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-pecl-apc php53u-pecl-memcache php53u-snmp php53-ldapNOTE: Version 3.1.4 of APC has a bug that will give you this error in you error.log file PHP Warning: require(): Unable to allocate memory for pool.
To resolve this do the following
# yum remove php53-pecl-apc
# yum update php53-pecl-apc --enablerepo=ius-testing
# vi /var/www/html/phpinfo.php
****************************
* * Completion of the installation. **
****************************
// set config to start service.
# chkconfig httpd on
# service httpd start
notation : If you previously installed another version php , Resolving this problem is easy!
# yum remove php53-pecl-apc
# yum update php53-pecl-apc –enablerepo=ius-testing
Finish.... :>
สมัครสมาชิก:
บทความ (Atom)