temikng Posted December 3, 2017 Share 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? Quote Link to comment Share on other sites More sharing options...
Bailey Posted December 3, 2017 Share Posted December 3, 2017 The link works for me and I dont see the error. Try clearing your cache. Quote Link to comment Share on other sites More sharing options...
temikng Posted December 3, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Bailey Posted December 3, 2017 Share Posted December 3, 2017 Yes, now Im getting that same error, what exactly does the generator file do? Quote Link to comment Share on other sites More sharing options...
temikng Posted December 3, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Bailey Posted December 3, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
wolstech Posted December 3, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
temikng Posted December 4, 2017 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.