admin管理员组文章数量:1026134
So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.
So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.
Share Improve this question asked Apr 5, 2019 at 15:04 nizz0knizz0k 1198 bronze badges1 Answer
Reset to default 1nizz0k,
so not sure exactly what you are looking for but I will give it a try. If you have not updated your WP core or any of the plugins running on this PHP5.6 server then most likely you will have some issue/issues trying to run this same code without any updates on a PHP 7.0 server.
What this issue will be of course is hard to tell as I have no idea what plugins you are running. Here ares some issues I have experience over the past years jumping from PHP 5.6 to PHP 7.0 to PHP 7.2
I have not had my WP site crash but I have many PHP warnings go off. I have also had some things not function properly and some plugins functionality breaking, custom theme templates not working right etc..
The only way for you to know this and figure out everything is to spin up a PHP 7.0 server, if that is your version of choice and place a copy of your site and start updating one item at a time. Turn on debug and start fixing any issues. Then you can get your WP site updated and running on PHP 7. This custom PHP application will also need to be eventually done the same as the site.
This is the only way I see moving your current stuff over.
So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.
So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.
Share Improve this question asked Apr 5, 2019 at 15:04 nizz0knizz0k 1198 bronze badges1 Answer
Reset to default 1nizz0k,
so not sure exactly what you are looking for but I will give it a try. If you have not updated your WP core or any of the plugins running on this PHP5.6 server then most likely you will have some issue/issues trying to run this same code without any updates on a PHP 7.0 server.
What this issue will be of course is hard to tell as I have no idea what plugins you are running. Here ares some issues I have experience over the past years jumping from PHP 5.6 to PHP 7.0 to PHP 7.2
I have not had my WP site crash but I have many PHP warnings go off. I have also had some things not function properly and some plugins functionality breaking, custom theme templates not working right etc..
The only way for you to know this and figure out everything is to spin up a PHP 7.0 server, if that is your version of choice and place a copy of your site and start updating one item at a time. Turn on debug and start fixing any issues. Then you can get your WP site updated and running on PHP 7. This custom PHP application will also need to be eventually done the same as the site.
This is the only way I see moving your current stuff over.
本文标签: Environment to do updates to legacy (47) version of WP while staying on php 56
版权声明:本文标题:Environment to do updates to legacy (4.7) version of WP while staying on php 5.6? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745623881a2159741.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论