Pre-Installation Wizard Checks – PHP/php.ini handler htaccess code check

Home Forums BulletProof Security Pro Pre-Installation Wizard Checks – PHP/php.ini handler htaccess code check

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9162
    AITpro Admin
    Keymaster

    New installations of BPS Pro:  The BPS Pro Pre-Installation Wizard checks for existing PHP/php.ini handler .htaccess code in your root .htaccess file and also checks if the PHP/php.ini handler .htaccess code has already been added to BPS Pro Custom Code.  Your PHP/php.ini handler .htaccess code needs to be added to BPS Pro Custom Code before running the Setup Wizard.

    Existing installations of BPS Pro:  An Admin Dashboard Alert is displayed if PHP/php.ini handler .htaccess code is found in your root .htaccess file, but is not found in BPS Pro Custom Code.  Do steps 1 and 2 ONLY below.

    NOTE:  This help post is for BPS Pro 7.0 and higher versions.  BPS Pro 6.5 and below versions do not do this check.

    To add your PHP/php.ini handler .htaccess code from your root .htaccess file to BPS Pro Custom Code do these steps below before running the Setup Wizard.  Your root .htaccess file / code can be found here:  Click the htaccess File Editor menu link or B-Core menu link >>> click the Your Current Root htaccess File tab.  BPS Custom Code can be found here:  B-Core menu link or Custom Code menu link >>> Custom Code tab >>> Root htaccess File Custom Code accordion tab.  The htaccess File Editor tab and Custom Code tab are located next to each other in B-Core.

    1.  Copy your PHP/php.ini handler .htaccess code from your root .htaccess file to this BPS Pro Custom Code text box:  CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE: Add php.ini handler and/or plugin cache code here

    2.  Click the Save Root Custom Code button.

    3.  Click the Run Pre-Installation Wizard Checks button again. You should now see this Green Check message:  Pass! PHP/php.ini handler htaccess code was found in your root .htaccess file AND in BPS Pro Custom Code

    4.  You can now run the Setup Wizard. The PHP/php.ini handler .htaccess code that you added to BPS Pro Custom Code will now be automatically created in your root .htaccess file when you run the Setup Wizard.  Also by adding your php.ini handler code to BPS Pro Custom Code it is saved permanently.

    General Examples of PHP/php.ini handler .htaccess code that you may see in your root .htaccess file

    Your PHP/php.ini handler .htaccess code may not look exactly the same as the examples below, but it will look very similar to these general examples of PHP/php.ini handler .htaccess code.

    # GO DADDY PHPINI CODE
    AddHandler x-httpd-php5-cgi .php
    AddHandler x-httpd-php5-cgi .php5
    
    # BLUEHOST HOSTMONSTER FASTDOMAIN PHPINI CODE
    AddHandler application/x-httpd-php5s .php
    
    # JUSTHOST PHPINI CODE
    SetEnv PHPRC /path to file/
    
    # COMPITENT PHPINI CODE
    SetEnv PHPRC /path to file/php.ini
    
    # HOSTGATOR PHPINI CODE
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /path to file/php.ini
    </IfModule>
    
    # SERVINT PHPINI CODE
    suPHP_ConfigPath /path to file/
    
    # IX PHPINI CODE
    AddHandler phpini-cgi .php .htm
    Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
    
    # PAIR PHPINI CODE
    Action application/x-pair-sphp5 /cgi-sys/php-cgiwrap/userAccountNam/php5.cgi
    AddType application/x-pair-sphp5 .php
    
    # WIREDTREE PHPINI CODE
    SetEnv PHPRC /path to file/php.ini
    
    # CANADIAN PHPINI CODE
    suPHP_ConfigPath /path to file/
    
    # INMOTION PHPINI CODE
    suPHP_ConfigPath /path to file/
    
    # UBERGLOBAL PHPINI CODE
    SetEnv PHPRC /path to file/
    
    # JUMBA AND AUSSIEHQ PHPINI CODE
    SetEnv PHPRC /path to file/
    
    # WESTHOST PHPINI CODE
    SetEnv PHPRC /path to file/php.ini
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.