temikng Posted December 3, 2017 Posted December 3, 2017 HiI use PHP framework http://seerio.us/w/doku.php It has an error:Warning: system() has been disabled for security reasons in /path_to_public_html_dir/az/server/php/generator.php on line 32Because, it can't to call php command.How can i manage this?
Bailey Posted December 3, 2017 Posted December 3, 2017 The link works for me and I dont see the error. Try clearing your cache.
temikng Posted December 3, 2017 Author Posted December 3, 2017 I cleared my cache dir. This error appears only at the first time open my link: http://temikng.heliohost.org/ It create file in cache dir, but it's empty.Then need to clear cache dir again.
Bailey Posted December 3, 2017 Posted December 3, 2017 Yes, now Im getting that same error, what exactly does the generator file do?
temikng Posted December 3, 2017 Author Posted December 3, 2017 On line 32 it call like this: php -f /path_to_public_html_dir/az/server/php/templater.php -- -c "/path_to_public_html_dir/public/forms/login.php.t" -p /path_to_public_html_dir/cache "" > /path_to_public_html_dir/cache/GENLIqyMQ Runs the templater.php script, that parse self syntax from the php.t file, and write a php script at the cache directory.Then it will be used by apache from cache directory.So I need permission to run PHP from the command line. How can i do this?
Bailey Posted December 3, 2017 Posted December 3, 2017 Is there anyway for you to use command line offline, parse into a directory then upload? I doubt they will give you server command due to security issues. 1
wolstech Posted December 3, 2017 Posted December 3, 2017 You’ll need to find another framework. System() and all other forms of command line/shell access are disabled for security reasons. We don’t allow such commands to help prevent abuse. 1
temikng Posted December 4, 2017 Author Posted December 4, 2017 Is there anyway for you to use command line offline, parse into a directory then upload? I doubt they will give you server command due to security issues.Yes, this is one of the ways, but it is not too convenient. You’ll need to find another framework. System() and all other forms of command line/shell access are disabled for security reasons.We don’t allow such commands to help prevent abuse.Ok, thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now