{"id":505,"date":"2014-08-05T00:08:47","date_gmt":"2014-08-05T00:08:47","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=505"},"modified":"2014-08-05T00:08:47","modified_gmt":"2014-08-05T00:08:47","slug":"atomic-repo-php-upgrade-error","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/05\/atomic-repo-php-upgrade-error\/","title":{"rendered":"Atomic repo php Upgrade error"},"content":{"rendered":"<p>Servers popping up that are having php failures or issues with php_admin_value or php_admin_flag when apache restarts. This is occurring on servers running PHP 5.3.26. It appears when this update was pushed out, mod_php is no longer being loaded by default.<\/p>\n<p>The symptoms are outlined here:<\/p>\n<p><a href=\"http:\/\/forum.parallels.com\/showthread.php?287767-SOLVED-Latest-php-5-3-26-yum-update-from-art-breaks-apache\" target=\"_blank\" rel=\"noopener\">http:\/\/forum.parallels.com\/showthread.php?287767-SOLVED-Latest-php-5-3-26-yum-update-from-art-breaks-apache<\/a><br \/>\n<a href=\"https:\/\/www.atomicorp.com\/forum\/viewtopic.php?f=12&#038;t=6891&#038;sid=a2317265ae0523eb9273d9d6001f10ed\" target=\"_blank\" rel=\"noopener\">https:\/\/www.atomicorp.com\/forum\/viewtopic.php?f=12&#038;t=6891&#038;sid=a2317265ae0523eb9273d9d6001f10ed<\/a><\/p>\n<p>You should be able to add the following to the top of php.conf file to resolve the issue:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&lt;IfModule prefork.c&gt;\n  LoadModule php5_module modules\/libphp5.so\n&lt;\/IfModule&gt;\n&lt;IfModule worker.c&gt;\n  LoadModule php5_module modules\/libphp5-zts.so\n&lt;\/IfModule&gt;\n\n<\/pre>\n<p>Also&#8230; <\/p>\n<p>If you come across a managed server that has the atomic repo enabled and has updated to PHP 5.4.x it more than likely killed their sites.<\/p>\n<p>If this is the case and they were on a newer version of 5.3.x from atomic I&#8217;ve got the couple of one liners that I used to remove all the install PHP packages and then install the webtatic repo (which installed disabled) and then to install a base set of php modules from their repo.<\/p>\n<p>This command will figure out what php-5.4.x packages are installed from atomic. Just to verify that you won&#8217;t be killing off anything other than the offending atomic packages.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nrpm -qa | grep php | grep 5.4\n\n<\/pre>\n<p>This one-liner will remove all packages that match the above criteria even if they refer to multiple packages or are listed more than once.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nfor i in `rpm -qa | grep php | grep 5.4` ; do rpm -ev --allmatches --nodeps $i; done\n\n<\/pre>\n<p>Once they are all removed install the webtatic repo<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nrpm -Uvh http:\/\/mirror.webtatic.com\/yum\/centos\/5\/latest.rpm\n\n<\/pre>\n<p>Then you can install the basic set of packages for php 5.3<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nyum --enablerepo=webtatic install php php-devel php-mysql php-imap php-xml php-pdo php-gd php-soap\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Servers popping up that are having php failures or issues with php_admin_value or php_admin_flag when apache restarts. This is occurring on servers running PHP 5.3.26. It appears when this update was pushed out, mod_php is no longer being loaded by default. The symptoms are outlined here: http:\/\/forum.parallels.com\/showthread.php?287767-SOLVED-Latest-php-5-3-26-yum-update-from-art-breaks-apache https:\/\/www.atomicorp.com\/forum\/viewtopic.php?f=12&#038;t=6891&#038;sid=a2317265ae0523eb9273d9d6001f10ed You should be able to add the &#8230; <a title=\"Atomic repo php Upgrade error\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/05\/atomic-repo-php-upgrade-error\/\" aria-label=\"Read more about Atomic repo php Upgrade error\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,84,86],"tags":[],"class_list":["post-505","post","type-post","status-publish","format-standard","hentry","category-administration","category-php","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}