Control Web Panel

WebPanel => PHP => Topic started by: wsmith13045 on December 24, 2019, 04:27:45 PM

Title: Remove older versions of PHP
Post by: wsmith13045 on December 24, 2019, 04:27:45 PM
So I have a issue that when I scan my webserver running CWP7 with a security compliance software it claims I have unsupported versions of php installed. I am currently running PHP 7.3.13 but the scanner shows 7.0.32. I assume its because its there an can be configured but how do I remove it?

I came across a post that said to delete the folders from /opt folder but I have nothing there. It was an older post and I assume that the location has changed but I haven't been able to locate the files.

What do I need to do to get these older versions removed?
Title: Re: Remove older versions of PHP
Post by: ejsolutions on December 24, 2019, 06:17:45 PM
Try /usr/local/php

Also what does "php -v" from a command line show, compared to a
Code: [Select]
<?php phpinfo(); ?>?
Title: Re: Remove older versions of PHP
Post by: Igor S. on December 25, 2019, 06:25:38 PM
So I have a issue that when I scan my webserver running CWP7 with a security compliance software it claims I have unsupported versions of php installed. I am currently running PHP 7.3.13 but the scanner shows 7.0.32. I assume its because its there an can be configured but how do I remove it?

I came across a post that said to delete the folders from /opt folder but I have nothing there. It was an older post and I assume that the location has changed but I haven't been able to locate the files.

What do I need to do to get these older versions removed?

Hi, check what PHP version you have set in WebServer Settings => WebServer Main conf (or WebServer Domain conf). Probably for the website you have set the PHP 7.0 or PHP-FPM 7.0