Lyn and Mike want to install LimeSurvey on Tempest. Given that it requires PHP and MySQL, and I’ve been having trouble with that combination, we may be in for trouble, but maybe something will go well.
First, we need to have the PHP modules mbstring (for multi-byte string; handles unicode character sets). Looking at phpinfo for Puma, I don’t find it. Their advice is to install the php-mbstring package using Yum. That’s easy enough:
[root@tempest ~]# yum search php-mbstring ================================================ N/S Matched: php-mbstring ================================================= php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling Name and summary matches only, use "search all" for everything. [root@tempest ~]# rpm -q php-mbstring package php-mbstring is not installed [root@tempest ~]# yum -y install php-mbstring Installed: php-mbstring.x86_64 0:5.3.3-14.el6_3 Complete!
Okay, now let’s try Puma…
[root@puma ~] rpm -q php-mbstring package php-mbstring is not installed [root@puma ~] yum search php-mbstring ================================================== Matched: php-mbstring =================================================== php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling php53-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling [root@puma ~] yum -y install php-mbstring Resolving Dependencies --> Running transaction check ---> Package php-mbstring.x86_64 0:5.1.6-39.el5_8 set to be updated --> Processing Dependency: php-common = 5.1.6-39.el5_8 for package: php-mbstring --> Finished Dependency Resolution php-mbstring-5.1.6-39.el5_8.x86_64 from updates has depsolving problems --> Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-mbstring-5.1.6-39.el5_8.x86_64 (updates) Error: Missing Dependency: php-common = 5.1.6-39.el5_8 is needed by package php-mbstring-5.1.6-39.el5_8.x86_64 (updates) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest [root@puma ~] rpm -q php-common php-common-5.2.13-jason.1 [root@puma ~] rpm -q php php-5.2.13-jason.1 [root@puma ~] yum install php53-mbstring Resolving Dependencies --> Running transaction check ---> Package php53-mbstring.x86_64 0:5.3.3-13.el5_8 set to be updated --> Processing Dependency: php53-common = 5.3.3-13.el5_8 for package: php53-mbstring --> Running transaction check ---> Package php53-common.x86_64 0:5.3.3-13.el5_8 set to be updated --> Processing Conflict: php53-common conflicts php-common --> Finished Dependency Resolution php53-common-5.3.3-13.el5_8.x86_64 from updates has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest [root@puma ~]
I see that Puma is going to fight us on this. Let’s turn back to Tempest. If I now look at the output of phpinfo (after restarting Apache), I see mbstring. Good!
The same php-info shows the mysql is 5.1.61, which is the same version reported by the mysql shell command, so I think we are okay on that.
Other “standard” things we’re supposed to have. Again, I’m looking at the output of php-info:
- session support? yes
- pcre? yes
- ctype? yes
Okay, hopefully we’re set for those.
Optional PHP Extensions:
- GD-Library with FreeType support installed is needed for captchas or nice charts in statistics – see PHP GD-Library Extension documentation? No, not this.
- IMAP (pretty standard) is needed for the Email bounce tracking system – see PHP IMAP Extension documentation? No, not this.
- LDAP installed is needed to import tokens using LDAP – see PHP LDAP Documentation? Do we really have to have this?
- Zip (pretty standard) for template upload and import resources Zip . archives – see PHP Zip Extension documentation
? Yes, we have this. - Zlib (pretty standard) is needed for the ComfortUpdate – see PHP Zlib Extension documentation? Yes, we have this.
Let’s see about installing these.
[root@tempest ~]# yum search php | grep -i gd php-gd.x86_64 : A module for PHP applications for using the gd graphics library [root@tempest ~]# rpm -q php-gd package php-gd is not installed [root@tempest ~]# yum search php | grep -i imap php-imap.x86_64 : A module for PHP applications that use IMAP [root@tempest ~]# rpm -q php-imap package php-imap is not installed [root@tempest ~]# yum search php | grep -i ldap php-ldap.x86_64 : A module for PHP applications that use LDAP [root@tempest ~]# rpm -q php-ldap package php-ldap is not installed [root@tempest ~]# yum -y install php-gd php-imap php-ldap Installed products updated. Verifying : php-ldap-5.3.3-14.el6_3.x86_64 1/4 Verifying : libc-client-2007e-11.el6.x86_64 2/4 Verifying : php-imap-5.3.3-14.el6_3.x86_64 3/4 Verifying : php-gd-5.3.3-14.el6_3.x86_64 4/4 Installed: php-gd.x86_64 0:5.3.3-14.el6_3 php-imap.x86_64 0:5.3.3-14.el6_3 php-ldap.x86_64 0:5.3.3-14.el6_3 Dependency Installed: libc-client.x86_64 0:2007e-11.el6 Complete! [root@tempest ~]# apachectl graceful
Okay, that wasn’t too hard. php-info shows all those modules. Woo-hoo!
Now, to install LimeSurvey, from the zip file.