Follow @BPSPro


Tags: , , , , , ,

Categories: BulletProof Security Pro

17 Comments to “Custom php.ini – php.ini General, Advanced and Host Specific php.ini Information For BPS Pro”


  1. Gregoria1976 says:

    I think other site proprietors should take http://www.ait-pro.com as an model, very clean and excellent user friendly style and design, let alone the content. You are an expert in this topic!

  2. […] to see exactly where your web host requires that you create or add custom php.ini files – custom php.ini Host Specific Information If you have mulitple separate Hosting Accounts for your particular Web Host then for each separate […]

  3. Joel Montgomery says:

    Next up–When I use a single php.ini file in my root directory (now created)–in each of my WordPress BPS-Pro 5.1 installations (30+ sites) do I create a new error log or do I just have one master error log due to the one php.ini file?

    I don’t want to make this more complicated than it is and I’m on my first site-upgrade and still have serious error messages.

    I have lots more to do and I’d like to be able to “rinse and repeat” after doing the first upgrade correctly.

    • AITpro Admin says:

      Only 1 custom php.ini file needs to be created under a hosting account and only 1 PHP error log needs to be created under a hosting account. What is recommended is that you designate one of your sites under your hosting account as the site that will contain your PHP error log. Then if you want to be able to view that PHP error log on the other sites under that hosting account you would add the path to that PHP error log.

      Example:
      Site1 has been designated as the site that has the PHP error log. Site2 and Site3 are additional sites under that hosting account.
      The path to the PHP Error log would be the same for all 3 of these sites.

      Site1 path = /xxxx/xxxx/xxxxx/public_html/Site1/wp-content/plugins/bulletproof-security/admin/php/bps_php_error.log
      Site2 path = identical to the Site1 path
      Site3 path = identical to the Site1 path

      All 3 of your sites are looking at and using the same PHP Error log to log php errors.

      The messages you are seeing are Heads Up notices and not necessarily Error messages. BPS Pro is designed to ensure that you set everything up (not forget to do something) and set everything up correctly. As you complete what each displayed message is telling you to do next then these displayed messages will go away. Once you have completed everything that needs to be done you should no longer see any displayed messages – no news is good news. 😉

      Again a reminder – Only 1 custom php.ini file needs to be set up under 1 hosting account. The path to the PHP Error log that you would be adding would only be for viewing the PHP Error log so you would ONLY set this path on the PHP Error Log page >>> PHP Error Log Location Set To: ONLY if you want to be able to view your 1 designated PHP Error log on all your other sites. This is not necessary of course. And a custom php.ini file setup is a one time thing. Once you have done this under a hosting account you NEVER need to do this again. 😉 5.2 will automate the .htaccess custom php.ini code creation for your web hosts, but for now in 5.1 you will need to manually do this .htaccess / custom php.ini step for each of your sites.

  4. Joel Montgomery says:

    Whew–as a non-coder, this is a bit of a challenge. I have multiple WP sites as add-on domains hosted by BlueHost. My primary domain website is .html, not a WordPress site. I’ve found the php.ini file in the root directory of my primary domain and have gone to the cPanel to choose php-config and have selected “single-php-ini” as suggested. Now I’m lost–and I’m upgrading 30+ websites to BPS Pro 5.1. I’m on the first site. Next?

    Then I need to move to Hostgator and upgrade the BPSPro sites I have there. (All of my sites on Hostgator and WordPress sites.)

    Thanks for you input. You may need to generate a video or something–or I’ll have to hire a coder to implement this for me.

    • AITpro Admin says:

      Only 1 custom php.ini file needs to be created for your BlueHost hosting account to protect all of your sites under that particular hosting account. All of your website types (HTML, WordPress or any other types of sites) are protected by creating only 1 custom php.ini file for your entire hosting account. Each of those sites would need to have BPS Pro Activated by going to Activation and getting a unique Activation Key for each of those sites. Each of those sites under your BlueHost account would need to have individual Master .htaccess files created with AutoMagic and then Activated with BulletProof Modes. For BlueHost, HostMonster or FastDomain you will need to uncomment the custom php.ini handler in your root .htaccess file.

      In summary, creating a custom php.ini file is a one time event for all sites in an entire hosting account and this does not need to be done again when upgrading BPS Pro. .htaccess files do need to be updated / upgraded in BPS Pro 5.1 for each of your sites. In 5.2 this will not need to be done most likely. Future upgrades of BPS Pro will be incremental, meaning that only new things that have been added or things that have been updated will require any upgrading steps for you to perform. BPS Pro 5.1 was a major release and pretty much everything needs to be updated. Once you have Activated a site it is Activated forever unless you deactivate it by removing your Activation Key.

      For your HostGator account the same steps above for your BlueHost account apply and in addition be sure to uncomment and add your specific account info in the root .htaccess file for each of these sites. Take a look at the root .htaccess Master file and you will see instructions on the additional .htaccess step (.htaccess code for custom php.ini files on HostGator) that needs to be done for sites hosted on HostGator.

      BPS Pro 5.2 should be very simple and quick, but BPS Pro 5.1 is a major version release so there is fair amount of steps involved to get everything up to speed. Upgrading from 5.0 to 5.1 should take you about 5-10 minutes per site. Just follow what all the displayed messages are telling you to do until there are no more displayed messages. Thanks.

      In 5.2 i will automate detection of your web host so that the .htaccess code for HostGator folks will automatically include ( AutoMagic buttons will create / write this code ) the correct .htaccess code ( iFModule mod_suphp… ) for your custom php.ini file. For BlueHost, HostMonster and FastDomain the custom php.ini handler .htaccess code will be automatically written to your Master .htaccess file when you click the AutoMagic buttons.

      • Joel Montgomery says:

        Your tips are great and timely, thanks!!

        Unfortunately, in setting everything up under http://www.joelmonty.biz as my master WP site on BlueHost I have now messed up my access to other sites. To get the custom php.ini file, I used the one you had for joelmonty.biz on BlueHost, then copied it to the root folder for all sites (/home3/xxxxxx/public_html/php.ini) I did make joelmonty.biz the BPS-php-error log for all sites.

        When I went back to see what I needed to change on http://www.competencymastery.com/wp-admin, I found that I can no longer access those files.

        This is probably caused by something I put in the php.ini file in error. (Perhaps it directs more exclusively to joelmonty.biz.)

        I went in and changed the .htacess codes for both joelmonty.biz and competencymastery.com (using the cPanel) to follow your directions for BlueHost. I’m still messed up and have two messages–one to download BPS-Pro 5.1 that I’m implementing on the site and one saying that my php.ini and php-error logs are not in synch (though they are). I also see the details in the php.ini folder that don’t agree with the php-info-security-status folder on joelmonty.biz.

        I know this will be great when I get it implemented on all of my sites. Help please. Have a Happy Thanksgiving!!

        Joel

        • AITpro Admin says:

          Ok make everything really simple for yourself and decide which one of your sites you want to designate as the “Master” site. What i mean by this is just create 1 custom php.ini file in your Document Root folder for your entire hosting account – 1 custom php.ini file created and located here >>> /home3/xxxxxx/public_html/php.ini >>> and then pick one of your sites to be the designated site to contain your BPS PHP Error log. Then in all you other sites just add the path to this BPS PHP Error log in the Set Error Log Location text window for that site that you designated to be your “Master” site. You only need to do this if you want to be able to view the PHP Error log in all the other sites – this is really not necessary, but i do this because i want to see what is going on regarding PHP errors on all my sites at the same time. So just get your 1 custom php.ini file created and working in your Document Root folder first. The php.ini Security Status page will display information about your 1 custom php.ini file on all your websites. You only need the 1 custom php.ini file for your entire hosting account to protect all of your sites at the same time.

          “…saying that my php.ini and php-error logs are not in synch…”
          To check and compare what PHP Error Log paths are being seen by BPS go to P-Security, click on the PHP Error Log menu tab and you will see:
          Default BPS Error Log Location:
          PHP Error Log Location Set To:
          Error Log Path Seen by Server:

          This will tell you what path is incorrect and make the problem very obvious to you. The 2 paths that are compared are PHP Error Log Location Set To: and Error Log Path Seen by Server: when BPS checks to make sure things are good. The Default BPS Error Log Location: just echoes the path to the default location for the BPS Error Log for each site so you ONLY need to look at and use that path for the “Master” site and it will be irrelevant on all of your other websites.

          If you want me to set up your “Master” site then send me a temporary WP Admin login for that site and I’ll set it up for you.

          So at this point you can use the P-Security php.ini File Finder to find all your additional php.ini files that you created for your other sites and then copy those paths into the File Manager and delete those files or you can just use good old fashioned FTP to delete all of them. Only the 1 custom php.ini file that you created in your Document Root folder should be remaining throughout your entire hosting account.

          Also i want to point out that the .htaccess code that deals with handling custom php.ini files will be identical for all of your root .htaccess files on all of your sites under this hosting account. Not every host requires that you have additional .htaccess code for custom php.ini files, but BlueHost does.

          Thanks.
          Ed

          • Joel Montgomery says:

            Hi, Ed,

            Thanks for your quick feedback and support–on Thanksgiving, evening. Please check your email for WP-Admin ID and FTP account. Thanks again.

            Joel

  5. […] BPS Pro Help FilesBulletProof Security WordPress Plugin Support – WordPress Website Security on php.ini General, Advanced and Host Specific php.ini Information For BPS Pro Select Tag 3D TV History and Facts 403 HTML Page 404 Error Appearance Editor WordPress Activated […]

  6. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro… […]

  7. […] General, Advanced and Host Specific php.ini Information […]

  8. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro […]

  9. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro […]

  10. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro […]

  11. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro […]

  12. […] php.ini General, Advanced and Host Specific php.ini Information For BPS Pro […]


Skip to toolbar