0

Along to phpinfo() the following is prohibited:

apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,curl_exec,curl_multi_exec,define_syslog_variables,disk_free_space,diskfreespace,dl,error_log,escapeshellarg,escapeshellcmd,exec,ftp_connect,ftp_exec,ftp_get,ftp_login,ftp_nb_fput,ftp_put,ftp_raw,ftp_rawlist,ini_alter,ini_get_all,ini_restore,link,mysql_pconnect,openlog,passthru,pfsockopen,php_uname,phpinfo,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,set_time_limit,shell_exec,symlink,syslog,system,tmpfile,virtual

But phpinfo still works, I have created a file written <?php phpinfo(); ?> in it. But along to phpinfo it should be disabled, but it still echoes!

I have prohibited it using php_admin_value disable_functions "apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,curl_exec,curl_multi_exec,define_syslog_variables,disk_free_space,diskfreespace,dl,error_log,escapeshellarg,escapeshellcmd,exec,ftp_connect,ftp_exec,ftp_get,ftp_login,ftp_nb_fput,ftp_put,ftp_raw,ftp_rawlist,ini_alter,ini_get_all,ini_restore,link,mysql_pconnect,openlog,passthru,pfsockopen,php_uname,phpinfo,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,set_time_limit,shell_exec,symlink,syslog,system,tmpfile,virtual" in the vhost conf.

What am I doing wrong? What have I missed?

15
  • 1
    You mean <?php phpinfo(); ?>? Commented Jan 3, 2014 at 4:19
  • Can you show how/where phpinfo() tells you that those functions are banned? Commented Jan 3, 2014 at 4:24
  • there is a row called disable_functions with the content i wrote above Commented Jan 3, 2014 at 4:25
  • phpinfo() values have two columns. Which one is this in? Commented Jan 3, 2014 at 4:27
  • 1
    ahhh possible duplicate of Disable php functions via .htaccess Commented Jan 3, 2014 at 4:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.