{"id":558,"date":"2019-11-19T21:22:55","date_gmt":"2019-11-19T15:52:55","guid":{"rendered":"https:\/\/askadmin.com\/?p=558"},"modified":"2019-11-19T21:23:25","modified_gmt":"2019-11-19T15:53:25","slug":"php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7","status":"publish","type":"post","link":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/","title":{"rendered":"PHP  scripts not running after upgrading from php  5.6 to php 7"},"content":{"rendered":"<p><strong>Issue:\u00a0 After upgrading from php5.6 to php 7.2\u00a0 website is down .<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Upgrading from php 5 to php 7 on centos\u00a0 may require small changes in httpd (apache2) configuration files .<\/p>\n<p class=\"p1\"><span class=\"s1\">Error could be related to loading php7 module\u00a0 and error may display something like\u00a0<\/span><\/p>\n<p class=\"p1\"><strong><span class=\"s1\">Starting httpd: httpd: Syntax error on line 221 of \/etc\/httpd\/conf\/httpd.conf: Syntax error on line 6 of \/etc\/httpd\/conf.d\/php.conf: Cannot load \/etc\/httpd\/modules\/libphp5.so into server: \/etc\/httpd\/modules\/libphp5.so: cannot open shared object file: No such file or directory<\/span><\/strong><\/p>\n<p>This is because\u00a0 old php.conf is not replaced with new php.conf which should contain <span class=\"s1\">LoadModule php7_module modules\/libphp7.so<\/span><\/p>\n<p>You can rename <strong><em>old php.conf\u00a0 <\/em><\/strong>to<strong><em> php.conf.old\u00a0 \u00a0<\/em><\/strong>and<strong><em>\u00a0 php.conf.rpmnew <\/em><\/strong>to<strong><em> php.conf\u00a0<\/em><\/strong><\/p>\n<p>or add the line<\/p>\n<p class=\"p1\"><span class=\"s1\"><strong><em>LoadModule php7_module modules\/libphp7.so\u00a0 \u00a0<\/em><\/strong>line \u00a0 to\u00a0 \u00a0<\/span><strong><span class=\"s1\">\/etc\/httpd\/conf.d\/php.conf\u00a0 <\/span><\/strong><span class=\"s1\">file\u00a0<\/span><\/p>\n<p>Also change<\/p>\n<p class=\"p1\"><span class=\"s1\"><span class=\"Apple-converted-space\">\u00a0 <\/span><em><strong>&lt;IfModule mod_php5.c&gt;<\/strong><\/em>\u00a0 to\u00a0<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\"><span class=\"Apple-converted-space\">\u00a0 <\/span><em><strong>&lt;IfModule mod_php7.c&gt;\u00a0<\/strong><\/em><\/span><\/p>\n<p>if you have ssl.conf<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue:\u00a0 After upgrading from php5.6 to php 7.2\u00a0 website is down . &nbsp; &nbsp; Upgrading from php 5 to php 7 on centos\u00a0 may require small changes in httpd (apache2) configuration files . Error could be related to loading php7 module\u00a0 and error may display something like\u00a0 Starting httpd: httpd: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[7],"tags":[151,152],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"og:description\" content=\"Issue:\u00a0 After upgrading from php5.6 to php 7.2\u00a0 website is down . &nbsp; &nbsp; Upgrading from php 5 to php 7 on centos\u00a0 may require small changes in httpd (apache2) configuration files . Error could be related to loading php7 module\u00a0 and error may display something like\u00a0 Starting httpd: httpd: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Ask Admin - A Lifelong Learner\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-19T15:52:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-19T15:53:25+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"balu sreekanth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/askadmin.com\/aa\/#website\",\"url\":\"https:\/\/askadmin.com\/aa\/\",\"name\":\"Ask Admin - A Lifelong Learner\",\"description\":\"Mobile App Development | IP Telephony | Linux\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/askadmin.com\/aa\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#webpage\",\"url\":\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/\",\"name\":\"PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner\",\"isPartOf\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#website\"},\"datePublished\":\"2019-11-19T15:52:55+00:00\",\"dateModified\":\"2019-11-19T15:53:25+00:00\",\"author\":{\"@id\":\"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345\"},\"breadcrumb\":{\"@id\":\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/askadmin.com\/aa\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP scripts not running after upgrading from php 5.6 to php 7\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345\",\"name\":\"balu sreekanth\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/askadmin.com\/aa\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g\",\"caption\":\"balu sreekanth\"},\"sameAs\":[\"http:\/\/askadmin.com\"],\"url\":\"https:\/\/askadmin.com\/aa\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/","og_locale":"en_US","og_type":"article","og_title":"PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner","og_description":"Issue:\u00a0 After upgrading from php5.6 to php 7.2\u00a0 website is down . &nbsp; &nbsp; Upgrading from php 5 to php 7 on centos\u00a0 may require small changes in httpd (apache2) configuration files . Error could be related to loading php7 module\u00a0 and error may display something like\u00a0 Starting httpd: httpd: [&hellip;]","og_url":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/","og_site_name":"Ask Admin - A Lifelong Learner","article_published_time":"2019-11-19T15:52:55+00:00","article_modified_time":"2019-11-19T15:53:25+00:00","twitter_misc":{"Written by":"balu sreekanth","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/askadmin.com\/aa\/#website","url":"https:\/\/askadmin.com\/aa\/","name":"Ask Admin - A Lifelong Learner","description":"Mobile App Development | IP Telephony | Linux","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/askadmin.com\/aa\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#webpage","url":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/","name":"PHP scripts not running after upgrading from php 5.6 to php 7 - Ask Admin - A Lifelong Learner","isPartOf":{"@id":"https:\/\/askadmin.com\/aa\/#website"},"datePublished":"2019-11-19T15:52:55+00:00","dateModified":"2019-11-19T15:53:25+00:00","author":{"@id":"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345"},"breadcrumb":{"@id":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/askadmin.com\/aa\/php-scripts-not-running-after-upgrading-from-php-5-6-to-php-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/askadmin.com\/aa\/"},{"@type":"ListItem","position":2,"name":"PHP scripts not running after upgrading from php 5.6 to php 7"}]},{"@type":"Person","@id":"https:\/\/askadmin.com\/aa\/#\/schema\/person\/e1ff95d4a91ea001e25af3273533a345","name":"balu sreekanth","image":{"@type":"ImageObject","@id":"https:\/\/askadmin.com\/aa\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6aebf95935573dc70f536f1003a2fb8c?s=96&d=mm&r=g","caption":"balu sreekanth"},"sameAs":["http:\/\/askadmin.com"],"url":"https:\/\/askadmin.com\/aa\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/558"}],"collection":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":2,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/posts\/558\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/askadmin.com\/aa\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}