Tag Archives: lamp

howto upgrade apache 2.2 to apache 2.4 and php 5.6 on centos, oracle uek and redhat gnu/linux

howto upgrade apache 2.2 to apache 2.4 and php 5.6 on centos, oracle uek and redhat gnu/linux

add extra repos, remove apache 2.2, install apache 2.4 & php 5.6, workaround mod_dnssd error

  wget https://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm
  rpm -ivh epel-release-6-5.noarch.rpm

  wget https://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-14.ius.el6.noarch.rpm
  rpm -ivh ius-release-1.0-14.ius.el6.noarch.rpm 

  yum remove httpd
  yum remove httpd-tools

  yum install php56u-fpm-httpd.noarch


  yum remove mod_dnssd

  service httpd start
  service php-fpm start

  chkconfig httpd on
  chkconfig php-fpm on

this worksaround the error

Starting httpd: 
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: 
Syntax error on line 1 of /etc/httpd/conf.d/mod_dnssd.conf: 
Cannot load modules/mod_dnssd.so into server: 
/etc/httpd/modules/mod_dnssd.so: undefined symbol: unixd_setup_child

#webdev #go,#hhvm,#larevel,#node,#php,#python,#ruby #aws #vms all now on openshift

webdev go,hhvm,larevel,node,php,python,ruby vms all now available free of charge on openshift.redhat.com

oracle #gnu/#linux 6 #php 5.4 yum repos

oracle #gnu/#linux 6 (& centos 6 & red hat 6) #php 5.4 is available in yum repos provided by remi and webtatic

#php ini file #date & #timezone settings

dont forget to edit your php.ini file and add a prefered date timezone to prevent apache httpd php warnings such as:

PHP Warning:  date(): It is not safe to rely on the system's timezone 
settings. You are *required* to use the date.timezone setting or 
the date_default_timezone_set() function. 

In case you used any of those methods and you are still getting 
this warning, you most likely misspelled the timezone identifier. 

We selected 'Europe/London' for 'BST/1.0/DST' instead

see also