PHP version changer
02-17-2021, 06:24 AM
(This post was last modified: 02-23-2021, 09:20 AM by ccr1969.)
PHP version changer
Php_Ver.zpp Google drive
Php_Ver.zpp
Working on Windows
if anyone has tested it plz let me know i know im having a issue with writing if its null in vh_custom_tx but if was written b4 it writes to it no issue could be with my concat my zpp to big to upload here as it has 3 PHP versions in it
I use concat so i dont overwrite existing data vhost as i noticed lets encrypt does it. doesn't keep the existing stuff removes it . In which we don't want to do we want to keep or existing data in vhost and only over write the php version . Which this does that it searches for and replaces vh_custom_tx= SUBSTRING_INDEX(vh_custom_tx,'# STARTPhp', 1)
Note i'm running a windows server so look at code i'm sure be easy to make functional with linux
Php_Ver.zpp Google drive
Php_Ver.zpp
Working on Windows
if anyone has tested it plz let me know i know im having a issue with writing if its null in vh_custom_tx but if was written b4 it writes to it no issue could be with my concat my zpp to big to upload here as it has 3 PHP versions in it
Code:
$sql = "UPDATE x_vhosts SET vh_php_tx='$name',vh_custom_tx= SUBSTRING_INDEX(vh_custom_tx,'# STARTPhp', 1),vh_custom_tx= CONCAT_WS(vh_custom_tx,'','$ver') WHERE vh_id_pk=$id";
Code:
vh_custom_tx
Note i'm running a windows server so look at code i'm sure be easy to make functional with linux