opencaching / opencaching-pl

The source code of Opencaching.PL (and some other domains)
https://opencaching.pl/
GNU General Public License v3.0
22 stars 33 forks source link

Provide up-to-date information about PHP and MySQL versions on official nodes #2364

Open rapotek opened 2 years ago

rapotek commented 2 years ago

I suggest to include information about current PHP and MySQL versions for each official node using opencaching.pl code, somewhere here in github in easily accessible place, wiki maybe, and keep it up-to-date. The information should include a date of the last update for both PHP and MySQL. This would help creating code both compatible with each official node and making use of most recent versions of software.

deg-pl commented 2 years ago

On every node we have webpath /sys . There you can check PHP version (/sys/phpinfo), MySQL/MariaDB version (/Admin.DbUpdate) and PHP-apcu version (/src/Libs/Apc/apc.php). Of course it requies sysAdmin rights.

OC PL code should be compatibile with PHP 7.4+, as declared in composer.json.

OC PL has PHP 8.1.10 and MariaDB 10.6.9 OC UK - PHP 8.1.10, MariaDB 10.6.9 OC NL - PHP 7.4.28, MariaDB 10.0.38 OC US - PHP 7.4.28, MariaDB 10.0.38 OC RO - I have no sysAdmin rights, but there is PHP 7.4.x

PS: My favourite PHP8.1 feature is enum. :)

rapotek commented 2 years ago

On every node we have webpath /sys . There you can check PHP version (/sys/phpinfo), MySQL/MariaDB version (/Admin.DbUpdate) and PHP-apcu version (/src/Libs/Apc/apc.php). Of course it requies sysAdmin rights.

OC PL code should be compatibile with PHP 7.4+, as declared in composer.json.

OC PL has PHP 8.1.10 and MariaDB 10.6.9 OC UK - PHP 8.1.10, MariaDB 10.6.9 OC NL - PHP 7.4.28, MariaDB 10.0.38 OC US - PHP 7.4.28, MariaDB 10.0.38 OC RO - I have no sysAdmin rights, but there is PHP 7.4.x

PS: My favourite PHP8.1 feature is enum. :)

Thanks, @deg. I still insist on include this information in some less ephemeral place than this issue :)

andrixnet commented 1 year ago

OC RO has same versinos as US and NL. I am considering some upgrades to these servers, however there is much work to be done, so it will take time.

IMO disclosing versions running on a specific site/server is a security breach.

A minimum requirement should be posted here on Github - project documentation and mirrored on www.opencaching.eu Specific development details, ie. for a specific node that might want to use a specific new plugin (like before the others, or something strictly local) should be obtained through developer and sysadmin contact information.

deg-pl commented 1 year ago

IMO disclosing versions running on a specific site/server is a security breach.

But... opencaching.ro publish PHP version in headers:

Server: Apache/2.4.57 (Unix) OpenSSL/1.0.2u mod_fcgid/2.3.9 PHP/7.4.28

A minimum requirement should be posted here on Github

There is published minimum required version. See composer.json