Short answer is : not safe
For php go to the wiki and install nethserver-php-scl
For mysql you can install the relevant software collection.
Now for an explanation it is the concept of a linux distribution, a collection of coherent software versions. You want a another one, upgrade the system or use the redhat software collection