Tuesday, July 31, 2012

Eventum Configuration Error GD extension



Configuration Error:


The following problems were found: 


The GD extension needs to be enabled in your PHP.INI file in order for Eventum to work properly.
The Multibyte String Functions extension is not enabled in your PHP installation. For localization to work properly You need to install this extension. If you do not install this extension localization will be disabled. 


Please resolve the issues described above. For file permission errors, please provide the appropriate permissions to the user that the web server run as to write in the directories and files specified above. 




[root@localhost home]#  yum install php-gd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * remi: remi-mirror.dedipower.com
 * updates: mirror.nus.edu.sg
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.3.15-1.el6.remi will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.3.15-1.el6.remi.x86_64
--> Running transaction check
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


==================================================================================================================
 Package                 Arch                    Version                              Repository             Size
==================================================================================================================
Installing:
 php-gd                  x86_64                  5.3.15-1.el6.remi                    remi                  133 k
Installing for dependencies:
 t1lib                   x86_64                  5.1.2-6.el6_2.1                      base                  160 k


Transaction Summary
==================================================================================================================
Install       2 Package(s)


Total download size: 293 k
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): php-gd-5.3.15-1.el6.remi.x86_64.rpm                                                 | 133 kB     00:06
(2/2): t1lib-5.1.2-6.el6_2.1.x86_64.rpm                                                    | 160 kB     00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                              31 kB/s | 293 kB     00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
remi-release-6-1.el6.remi.noarch has missing requires of epel-release >= ('0', '6', None)
  Installing : t1lib-5.1.2-6.el6_2.1.x86_64                                                                   1/2
  Installing : php-gd-5.3.15-1.el6.remi.x86_64                                                                2/2


Installed:
  php-gd.x86_64 0:5.3.15-1.el6.remi


Dependency Installed:
  t1lib.x86_64 0:5.1.2-6.el6_2.1


Complete!


You also need to install the php-mbstring


to install


yum install php-mbstring

How to Install MySQL 5.5.25a and PHP 5.3 on Centos 6.2



Remove existing MySQL version,mysql-libs,php-mysql


Download the version 6 remi-release and Install


wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6-1.el6.remi.noarch.rpm

rpm -Uvh remi-release-6-1.el6.remi.noarch.rpm --nodeps

Download and Install MySQL RPM at http://dev.mysql.com/downloads/mysql/#downloads


wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-server-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-client-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-devel-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/MySQL-shared-5.5.25a-1.el6.x86_64.rpm/from/http://na.mirror.garr.it/mirrors/MySQL/




rpm -ivh MySQL-server-5.5.25a-1.el6.x86_64.rpm MySQL-client-5.5.25a-1.el6.x86_64.rpm MySQL-devel-5.5.25a-1.el6.x86_64.rpm MySQL-shared-5.5.25a-1.el6.x86_64.rpm

Install the mysql-libs php-mysql via yum


yum --enablerepo=remi install mysql-libs




yum --enablerepo=remi install php-mysql


Note : if its asking for some dependencies just install it.

apr_sockaddr_info_get() failed


I was trying to start apache from a VM. I am getting the error below:


[root@shizune ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for shizune.tes.org
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]



 The solution for this problem is problem is too simple just try the following steps: 

 1. Modify the apache configuration file. 


[root@shizune ~]# vi /etc/httpd/conf/httpd.conf 

 2. Just add the following line.

ServerName localhost [ localhost will be the servername. ] 

 3. Restart apache. 



[root@shizune ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@shizune ~]#

The On Demand Global Workforce - oDesk
Google