Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Location
    San Luis Obispo, CA
    Posts
    818

    limit php on vhosts

    do you guys have safemode turned on in the php.ini?
    if i do this, how can i turn safemode off my main site?
    someone sent me this, but i dont know if i should put this in every vhost

    php_admin_flag engine on
    php_admin_flag expose_php off
    php_admin_flag safe_mode on
    php_admin_flag track_vars on
    php_admin_flag allow_url_fopen off
    php_admin_flag magic_quotes_runtime on
    php_admin_value doc_root /home/user/htdocs
    php_admin_value open_basedir /home/user/htdocs
    php_admin_value safe_mode_exec_dir /home/user/bin
    php_admin_value safe_mode_protected_env_vars LD_LIBRARY_PATH
    php_admin_value safe_mode_allowed_env_vars PHP_
    php_admin_value upload_tmp_dir /home/user/htdocs/tmp
    php_admin_value upload_max_filesize 1024000
    php_admin_value max_execution_time 10
    php_admin_value post_max_size 1M
    php_admin_value memory_limit 8M
    php_admin_flag mysql.allow_persistent off
    php_admin_value mysql.max_links 5
    php_admin_flag pgsql.allow_persistent off
    php_admin_value pgsql.max_links 5
    # php_admin_value disable_functions =
    Nick Twaddell
    WebSpace Solutions - Custom E-Solutions
    Fast, Reliable, Affordable Web Hosting

  2. #2
    Join Date
    Jul 2002
    Location
    San Luis Obispo, CA
    Posts
    818
    Nick Twaddell
    WebSpace Solutions - Custom E-Solutions
    Fast, Reliable, Affordable Web Hosting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •