Skip to main content

New answers tagged

0 votes
Accepted

PHP shell_exec fails, terminal/CLI works

The problem was that PHP was setup to run in chroot jail. I had exhausted all other possibilities. I only even discovered it thanks to @vidarlo's comment. I was able to resolve the issue in WHM via ...
John's user avatar
  • 138
1 vote

PHP shell_exec fails, terminal/CLI works

There's multiple problems here. Do people even read the error messages they get? Don't use shell commands to read a file to a variable! Use fopen. Don't do globbing. Globs are expanded by the shell, ...
vidarlo's user avatar
  • 9,834
1 vote
Accepted

CloudLinux Terminal CLI command to get OS version

There isn’t a dependable 100% existing version, though Debian based distros will normally have /etc/lsb-release and rhel-based ones will have /etc/os-release. Try them both. They are text files, just ...
Robert Glonek's user avatar

Top 50 recent answers are included