r/PHPhelp • u/pascalstandaert • Aug 24 '25
need help "updating" a PHP script ?
I recently got this message from my web hoster after a website crash :
After half a day of searching, I discovered that your download script needs shell_exec rights. During the last update of cpanel, those rights were disabled for security for php5.6 (which went end of support 6 years ago). The script does not work on newer php versions. php5.6 is currently still on the server, but if I refresh the server within a few years (or faster if due to unforeseen circumstances) I may not be able to install php5.6 anymore and the script will definitely no longer work.
who can help me "update" this download script to work with current PHP versions ?
I have a zip file with the script(s), where can I upload it for someone to take a look at ?
please let me know ...
View all comments
Show parent comment
3
u/pascalstandaert Aug 24 '25 edited Aug 24 '25
the guy who did the troubleshoot is the owner of a small local hosting company ... I was one of his first customers, way back ... he's also kind of a friend ...
and yes, I understand the actual problem, that's why I'm reaching out to get this updated, so we can move on into the future ...
the website is built in Drupal, and I think it shells from Drupal to execute this script to encrypt the MP3's and then Drupal offers them for download ...
might that be the reason why it requires Shell_exec ?
and if so, how to fix this ?