Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: exec() has been disabled for security reasons #132

Open
phyron opened this issue May 11, 2021 · 0 comments
Open

Warning: exec() has been disabled for security reasons #132

phyron opened this issue May 11, 2021 · 0 comments

Comments

@phyron
Copy link

phyron commented May 11, 2021

Hi,

When I try to execute a simple command, jobby return me this message:

Warning: exec() has been disabled for security reasons in /home/userXXXX/domains/XXXXXXXXXX/public_html/vendor/hellogerard/jobby/src/Jobby.php on line 170

I debug the exec command and try to execute it out of this file and work fine:

<?php

exec('/opt/alt/php73/usr/bin/php "/home/userXXXX/domains/XXXXXXX/public_html/vendor/hellogerard/jobby/bin/run-job" "Ejemplo" "jobClass=Jobby%5CBackgroundJob&mailer=sendmail&smtpPort=25&smtpSender=jobby%40nl-srv-web259.main-hosting.eu&smtpSenderName=jobby&runOnHost=nl-srv-web259.main-hosting.eu&output=%2Fhome%2Fu6userXXXX%2Fdomains%2FXXXXXXXX%2Fpublic_html%2Fcrons%2Flogs%2Funminut.log&dateFormat=Y-m-d+H%3Ai%3As&enabled=1&debug=0&command=ls&schedule=%2A%2F2+%2A+%2A+%2A+%2A" 1> /dev/null 2>&1 &')

I put this file in the same folder than Jobby.php and it works.

You know what is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant