Frequently Asked Questions About Custom php.ini files, .user.ini files, PHP errors, Partial List of Web Hosts that BPS Pro has been installed on, General website and Hosting terms.
What is my Hosting Account Name?
The Hosting Account name causes a lot of confusion because this term is used broadly to describe many different things about a Hosting Account – cPanel name, username, user account name, etc. The example below shows what the literal meaning of a Hosting Account name when looking at your Hosting Account folder structure. For this example I have 2 separate Hosting Accounts. One example Hosting Account is named frog000 and another example Hosting Account is named bird444.
The Hosting Account name is frog000 and this example Hosting Account has 3 example websites in this Hosting Account.
/home/frog000/public_html/example-website-frog.com
/home/frog000/public_html/some-other-example-website-frog.com
/home/frog000/public_html/another-example-website-frog.com
The Hosting Account name is bird444 and this example Hosting Account has 3 example websites in this Hosting Account.
/home/bird444/public_html/example-website-bird.com
/home/bird444/public_html/some-other-example-website-bird.com
/home/bird444/public_html/nother-example-website-bird.com
The Hosting Account name is a folder name above your Document Root folder (/public_html, /html, /htdocs, etc. depending on what folder naming convention your particular web host uses). Your web host creates a folder name for your Hosting Account so that all of your websites under your Hosting Account are stored under you Hosting Account folder and are separate and unique from all other Hosting Accounts (folders) on the Server that your websites are hosted on.
What is my Document Root Folder?
A Document Root folder can be named /public_html, /html, /htdocs or some other name depending on what naming convention your particular web host is using. The Example below shows several example Document Root folders. As you can see this can be very confusing because every host uses their own unique folder naming structure (the x’s are used to hide actual folder naming conventions for web hosts. You would see your host’s actual folder naming convention in place of the x’s). The important thing to notice is that typically your individual website folder names would come after your Document Root folder path. Note: A Hosting Account folder is going to be one folder level above your Document Root folder (the folder name that comes before /public_html, /html, /htdocs, etc.), but typically the Document Root folder is called your Hosting Account Root folder.
/home/xxxxx/public_html/
/home/username/public_html/
/www/yourdomain.com/public_html/
/username/homepages/xx/xxxxxxxx/htdocs/
/data/xx/x/xx/xxx/xxxxxx/user/xxxxxx/htdocs/
/home/content/xx/xxxxxx/html/
/home/xxxx/domains/example.com/html/
Document Root folder path with website folder name added to the folder path
/home/xxxxx/public_html/example.com
/home/username/public_html/example.com
/www/yourdomain.com/public_html/example.com
/username/homepages/xx/xxxxxxxx/htdocs/example.com
/data/xx/x/xx/xxx/xxxxxx/user/xxxxxx/htdocs/example.com
/home/content/xx/xxxxxx/html/example.com
/home/xxxx/domains/example.com/html/example.com
Do I need to create a custom php.ini file for each of my websites?
No (unless your Web Host requires multiple php.ini files per directory – most Hosts do not require this). You only need to create 1 custom php.ini file per Hosting Account. If you have 1 website or 100 websites under your Hosting Account then you only need to create 1 custom php.ini file to protect all of your websites under your Hosting Account. Some web hosts require that you create or add your custom php.ini file in your Document Root folder and other web hosts require that you add your custom php.ini file in another folder location. Please see this post and locate your particular web host 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 multiple separate Hosting Accounts for your particular Web Host then for each separate Hosting Account you would only need to create 1 custom php.ini file for each separate Hosting Account. If you are not sure what this means then please see What is my Hosting Account Name? for examples of separate Hosting Accounts.
Does each website need to have its own PHP Error log?
If you use ini_set Options you can create separate PHP Error Logs for each of your websites.
If you create a custom php.ini file (PHP5.2.x) or .user.ini file (PHP5.3.x) the path to your php error log can be overridden by using ini_set Options on an individual website. If you do not use ini_set Options then the path in your php.ini or .user.ini file will be applied to all of your websites under your Hosting Account and all of your websites will log php errors to 1 php error log file.
IMPORTANT NOTE 4-1-2013:
It appears that most web hosts are not choosing to use FastCGI and .user.ini files instead of php.ini files by default for PHP5.3.x and higher versions. I assume this is because of the known problematic issues that come with FastCGI and PHP applications such as WordPress, Joomla, etc. In regards to BPS Pro directly I have noticed that using the automated P-Security php.ini tools to create custom php.ini files causes the custom php.ini file to be ignored/rejected or worse. At this time the best method to create a custom php.ini file if your PHP Server version is 5.3.x or higher is to manually create the custom php.ini file using the setup steps in this Forum Topic: http://forum.ait-pro.com/forums/topic/custom-php-ini-file-setup-php5-3-x/.
To simplify this setup a new tool will be added to P-Security that will copy the Server’s Default php.ini file to the Document Root folder. Manually editing of the custom php.ini file will still be required since automating this process causes the Server to reject/ignore the custom php.ini file, but a simpler manual editing method will created when the new tool is created in P-Security. Pending for BPS Pro 5.8.
Using the same ini_set Options php error log path for all of your websites to log php errors to 1 php error log file
On the ini_set Options page enter in the php error log path that you would like to use in the ini_set PHP Error Log Location Set To: option setting. Click the Save Options button, Click the Enable Options button, after clicking the Enable Options button you will see this success message displayed – Your ini_set Options have been Enabled successfully, Click the Refresh Status button, After clicking the Refresh Status button. Go to the PHP Error Log tab page. Copy the Error Log Path Seen by Server: file path to the PHP Error Log Location Set To: text box and click the Set Error Log Location button.
Using the same php.ini or .user.ini php error log path for all of your websites to log php errors to 1 php error log file
This example is assuming that you have created this php error log path in your custom php.ini file or .user.ini file – /home/content/xx/xxxxxx/html/websiteA/wp-content/plugins/bulletproof-security/admin/php/bps_php_error.log
I have copied the P-Security PHP Error Log page options for choosing your PHP Error Log Location. In the example I am on a website called websiteB and the Default BPS Error Log Location: folder path displays the location of the PHP Error Log file for this site. This example also displays that websiteA is the location I have chosen for my PHP Error Log Location for both websiteA and websiteB. I am not using the websiteB folder location because I want all of my websites to use the websiteA PHP Error Log file to log php errors too. If I had another website named websiteC then I would also choose the websiteA PHP Error Log Location folder path. This would mean that websiteA, websiteB and websiteC would all log php errors to the 1 PHP error log file located in the websiteA folder location.
IMPORTANT: BPS performs a check that compares your PHP Error Log Location Set To: and Error Log Path Seen by Server: folder paths to ensure that your PHP error log path has been added to your custom php.ini file and that the folder path is correct. If these 2 folder paths do not match then BPS will display an error message informing you that these 2 folder paths do not match. Check that the folder path you added in your custom php.ini file matches the PHP Error Log Location Set To: folder path the added. For additional sites that you are installing BPS on copy the Error Log Path Seen by Server: folder path to the PHP Error Log Location Set To: text box and click the Set Error Log Location button.
PHP Error Log Location
ini_set PHP Error Log Location (Recommended): /home/content/xx/xxxxxx/html/websiteB/wp-content/bps-backup/logs/bps_php_error.log
Default BPS Error Log Location: /home/content/xx/xxxxxx/html/websiteB/wp-content/plugins/bulletproof-security/admin/php/bps_php_error.log
PHP Error Log Location Set To: /home/content/xx/xxxxxx/html/websiteA/wp-content/plugins/bulletproof-security/admin/php/bps_php_error.log
Error Log Path Seen by Server: /home/content/xx/xxxxxx/html/websiteA/wp-content/plugins/bulletproof-security/admin/php/bps_php_error.log
Partial List of Web Hosts that BPS Pro has been installed on and custom php.ini file requirements
This is a list of Web Hosts that we have personally installed BPS Pro on. If you would like to have your Web Host added then please send us an email.
BPS Pro will automatically detect your web host if it is listed below and will automatically create / write your custom php.ini handler code to your Root .htaccess file (if your web host is listed below and your web host requires this code and if your PHP version is PHP5.2.x.). If you do not see your web host listed here please send us an email and we will set up your custom php.ini file for your particular Web Host and add your web host to the list. If you have a Private Name Server or are using CloudFlare or are using Pipe DNS or some other DNS service that changes, hides or masks your true Web Host then you will need to add your php.ini handler code into B-Core Custom Code. The B-Core Custom Code feature allows you to add and permanently save any custom .htaccess code that you want to have automatically created in your Root .htaccess file with B-Core AutoMagic. To use Custom Code go to B-Core Custom Code, add your custom .htaccess code (php.ini handler code and / or other miscellaneous custom .htaccess code), save it and then use AutoMagic to create new Master .htaccess files. You should then check to see if your custom .htaccess code was created in the Master .htaccess files by looking at the B-Core Edit/Upload/Download page and look at the secure.htaccess file Tab. If it is correct then you would then Activate BulletProof Modes.
NOTE: The Web Hosts List is assuming that you have Shared Web Hosting. If you have VPS or Dedicated Hosting then you will have direct access to the Default Server php.ini file and you will be able to upload a new custom php.ini file using SSH. You can use the Php.ini Master File Maker to create your new custom php.ini file and then upload it to your VPS or Dedicated Server using SSH. See BPS Pro VPS or Dedicated Custom php.ini File Help. If you have a Web Host that does not allow adding a custom php.ini file for Shared Hosting then you can upgrade to VPS or Dedicated Hosting or just find another Web Host that does allow custom php.ini files for Shared Hosting or just set up the BPS Pro PHP error logging to use the Default Server PHP Error log location, which is usually error_log by default on most Web Hosts.
NOTE: If your PHP version is PHP5.3.x or above use the BPS Pro ini_set Options to setup your PHP Error log. To create a custom php.ini file for your website see this Forum Topic: http://forum.ait-pro.com/forums/topic/custom-php-ini-file-setup-php5-3-x/.
Click the Show button below for Table Column Abbreviation information. Click on the Host name to go to custom php.ini setup steps or ini_set setup steps for that Host.
IS = ini_set Options will allow you to set your PHP configuration settings on web hosts that do not allow custom php.ini files to be created. Using ini_set Options also provides a solution to the known WordPress/FastCGI problem. For first time installations of BPS Pro it is recommended that you use the ini_set Options to quickly setup your PHP Error Log file and location. The ini_set Options can be used as an alternative to creating a custom php.ini file or .user.ini file (if your PHP version is PHP5.3.x or above) or in addition to creating a custom php.ini file or .user.ini file (if your PHP version is PHP5.3.x or above).
php.ini handler = Either requires custom php.ini .htaccess code in your Root .htaccess file or not. BPS automatically creates / writes this code into your Root .htaccess file with AutoMagic if your Web Host is listed below, your PHP version is 5.2.x (if your PHP version is 5.3.x BPS will NOT automatically create your php.ini handler code) and your Web Host requires this code. If you have a Private Name Server or are using CloudFlare or are using Pipe DNS or some other DNS service that changes, hides or masks your true Web Host then you will need to add your php.ini handler code into B-Core Custom Code.
BPSA = BPS automatically writes the custom php.ini handler code to your Root .htaccess file (if your web host requires custom php.ini handler code) when you click the AutoMagic buttons in B-Core to create your Master .htaccess files if your Web Host is listed below, your PHP version is 5.2.x (if your PHP version is 5.3.x BPS will NOT automatically create your php.ini handler code) . As of BPS Pro 5.1.5 a new feature called Custom Code has been added. You can now add your Host’s php.ini handler code in the Custom Code Top box if you see CC listed under the BPSA column. If you have a Private Name Server or are using CloudFlare or are using Pipe DNS or some other DNS service that changes, hides or masks your true Web Host then you will need to add your php.ini handler code into B-Core Custom Code.
CP = Requires cPanel or Control Panel setting or configuration change.
CT = Combined Total of all php.ini files. Some web hosts use a combined total of all the php.ini files in your Hosting Account. The Server’s default php.ini file and your custom php.ini file will both be looked at and a combined total of both of these files will be applied to all your websites under your Hosting Account. Your custom php.ini takes priority over the Server’s default php.ini file and the BPS Pro optimum security and performance settings will be applied to your websites instead of the Server’s default php.ini file settings. Important! If your Web Host is using this Combined Total php.ini method then DO NOT use your Host’s default php.ini file as your new custom php.ini file. What will happen is that php.ini Modules will be loaded twice and your website will crash. php.ini Modules can only be loaded once and both your Server’s default php.ini file and your custom php.ini file will load the php.ini Modules.
SA = Stand Alone php.ini file. Some web hosts use a stand alone custom php.ini set up method. Only 1 php.ini file is looked at as the Loaded Configuration file (php.ini file) for your Hosting Account and these php.ini settings will be applied to all your websites under your Hosting Account. Your custom php.ini file should contain all of your Web Host’s default php.ini files settings and have the BPS Pro optimum security and performance settings added into it.
SA/CT = This Host allows both a Stand Alone and a Combined Total method for custom php.ini files. If php.ini Modules exist in both a custom php.ini file and the Server Default php.ini file they will NOT be loaded twice.
S = Single custom php.ini file used for an entire Hosting Account to protect all websites under that Hosting Account. Most web hosts require that you create a single custom php.ini file for your entire Hosting Account and it is usually created in your Document Root folder. Some web hosts require that you create your custom php.ini file in a specific folder other than your Document Root folder. See custom php.ini Host Specific Information for host specific requirements by Web Host.
M = Multiple php.ini files required per each directory / folder / website. Very few web hosts require this custom php.ini set up method. Some web hosts allow this as an option.
Mo = Multiple php.ini files per directory is available as an option. The recommended set up for a custom php.ini file for your Hosting Account is to set up 1 custom php.ini file for your entire Hosting Account to protect all or your websites under your Hosting Account with that single custom php.ini file instead of creating multiple custom php.ini files per directory / folder / website.
DR = Your custom php.ini file is created in your Document Root folder for your Hosting Account (not Document Root folder per website). If your web host requires that you add / create your custom php.ini file in your Document Root folder then any additional custom php.ini files that you add in other folders will not be seen by your Server.
HS = Your custom php.ini file is created in a folder that is specified by your Web Host. If you web host requires that you add / create your custom php.ini file in a folder that they specify then it will not be seen by your Server if you create a custom php.ini file in your Document Root folder. Note: This folder location could be one folder above your Document Root folder, which is your Hosting Account Root folder.
PD = Custom php.ini files are created per directory / folder / website folder. This is ONLY for Web Hosts that require that you create your mulitple custom php.ini files for each directory and do not allow a single site-wide custom php.ini file in your Document Root folder.
Host | IS | php.ini handler | BPSA | CP | CT/SA | S/M/Mo | DR/HS/PD |
1&1 | Yes | No | N/A | No | SA | M | PD |
4UHosting | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
AptHost | Yes | No | N/A | No | SA | S | DR |
Arvixe | Yes | Yes | CC | No | SA | S/Mo | DR |
AussieHQ | Yes | Yes | Yes | No | SA | S | DR |
Blacknight Solutions | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
BlueHost | Yes | Yes | Yes | No | SA | S/Mo | DR |
BrainHost | Yes | No | N/A | No | SA | M | PD |
Canadian Web Hosting | Yes | Yes | Yes | No | CT | S | DR |
Canvas Dreams | Yes | Yes | CC | No | SA | S | DR |
CiviHosting | Yes | No | N/A | Yes | SA | S/Mo | DR11 |
Clook | Yes | No | N/A | No | CT | S | DR9 |
Compitent Web Hosting | Yes | Yes | Yes | No* | SA/CT | S | DR |
Continuum Data Center | Yes | Yes | Yes | No* | SA/CT | S | DR |
DreamHost | Yes | No | N/A | Yes | SA/CT | S | HS |
Host | IS | php.ini handler | BPSA | CP | CT/SA | S/M/Mo | DR/HS/PD |
eUKhost | Yes | N/A | N/A | N/A | N/A | N/A | N/A7 |
EZPZ Hosting | Yes | Flag/Value | N/A | N/A | N/A | N/A | Flag/Value |
FastDomain | Yes | Yes | Yes | No | SA | S/Mo | DR |
GigaPros | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
GoDaddy | Yes | Yes1 | Yes1 | Yes1 | SA/CT1 | S1 | DR 1 |
GVO Hosting | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
Hawk Host | Yes | Flag/Value | N/A | N/A | N/A | N/A | Flag/Value |
Heart Internet Ltd | Yes | No | N/A | Yes8 | CT | S | DR |
Host Europe GmbH | Yes | No | N/A | No | SA | S | DR |
Host The Name | Yes | No | N/A | No | CT | S | HS |
HostDime | Yes | Yes | CC | No | SA | S | DR |
HostGator | Yes | Yes | Yes | No | SA | S/Mo | DR |
Hosting 2GO | Yes | No | N/A | No | SA | S | HS3 |
HostMedia | Yes | N/A | N/A | N/A | N/A | N/A | N/A7 |
HostMonster | Yes | Yes | Yes | No | SA | S/Mo | DR |
Host | IS | php.ini handler | BPSA | CP | CT/SA | S/M/Mo | DR/HS/PD |
HostUpon | Yes | No | N/A | No | CT | M | PD |
ICDSoft | Yes | No | N/A | Yes | SA | S/Mo | DR11 |
Infonet.com.br | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
InMotion | Yes | Yes | Yes | No | SA | S | DR |
InoxHost | Yes | No | N/A | Yes | CT | M | PD2 |
IT Comtech | Yes | No | N/A | No | SA | M | PD |
IX Web Hosting | Yes | Yes | Yes | No | SA++ | S++ | HS++ |
Jumba | Yes | Yes | Yes | No | SA | S | DR |
JustHost | Yes | Yes | Yes | No | SA | S/Mo | DR5 |
KnownHost | Yes | Yes | CC | No | SA | S | DR |
LiquidNet Ltd | Yes | No | N/A | No | SA | M | PD |
Lunarpages | Yes | Yes | CC | No | SA/CT | S | DR |
MDDHosting | Yes | Flag/Value | N/A | N/A | N/A | N/A | Flag/Value |
MediaLayer | Yes | Flag/Value | N/A | N/A | N/A | N/A | Flag/Value |
MediaTemple | Yes | No | N/A | No | SA/CT | S | HS |
Host | IS | php.ini handler | BPSA | CP | CT/SA | S/M/Mo | DR/HS/PD |
Namecheap | Yes | No | N/A | No | SA | M | PD6 |
Netfirms | Yes | No | N/A | No | SA | M | PD |
netINS | Yes | N/A | N/A | N/A | N/A | N/A | N/A7 |
Network Solutions | Yes | No | N/A | No | SA/CT | S | HS |
Open Host | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
pair Networks | Yes | Yes | Yes | No | SA | S | HS |
ProudHosts | Yes | N/A | N/A | N/A | N/A | N/A | N/A7 |
Routhost | Yes | Yes | CC | No | SA | S | DR |
SAKURA Internet | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
SEO Hosting | Yes | Yes | CC | No | SA | S/Mo | DR |
ServInt | Yes | Yes | Yes | No* | SA | S | DR |
Shopaserver | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
SingleHop | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
SKGOLD | Yes | No | N/A | Yes | SA | S | HS |
SoftLayer Inc | Yes | No | N/A | Yes | SA | S | DR |
Host | IS | php.ini handler | BPSA | CP | CT/SA | S/M/Mo | DR/HS/PD |
StableHost | Yes | No | N/A | No | SA | S | DR |
Strato | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
Sub 6 Limited | Yes | No | N/A | No | CT | S | DR9 |
TMDHosting | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
Tsohost | Yes | Yes | CC | No | CT | S | DR |
UberGlobal | Yes | Yes | Yes | No | SA | S | DR |
UK2 | Yes | No | N/A | No | SA | S | DR |
UOL Host | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
Web Drive | Yes | N/A | N/A | N/A | N/A | N/A | N/A4 |
Webmasters.com | Yes | No | N/A | Yes | SA | S | PD10 |
WestHost | Yes | N/A | N/A | N/A | N/A | N/A | N/A7 |
WiredTree | Yes | Yes | Yes | No* | SA | S/Mo | DR |
* Requires that your website is configured for suPHP. suPHP is usually the default PHP configuration. If your Server API is CGI under BPS System Info then your website is most likely configured for suPHP.
++ IX Web Hosting requires that an IX Tech creates your initial custom php.ini file, which you can then edit.
1 GD Linux Shared Hosting may require that you do an additional Control Panel step – Kill Web System Processes on Linux Shared Hosting Accounts in order to see your new custom php.ini settings. Click to view php.ini set up steps for GoDaddy.
2 This Host requires that you create your custom php.ini file in cPanel. In cPanel under 1H Software – PHP Variables Manager you must choose – Apply changes to all sub-directories?. Click to view php.ini setup steps for InoxHost.
3 This Host is currently using an older MySQL DB Version. Please contact AITpro for additional assistance.
4 This Host does not allow you to create custom php.ini files for Shared Hosting. Use ini_set Options.
5 This Host uses Pipe DNS to hide your true Name Servers. This means BPS cannot detect your true Name Server. You will need to manually enter your php.ini handler code into your Root .htaccess file. Click to view php.ini setup steps for JustHost.
6 This Host has the Suhosin-Extension installed, but the suhosin.executor.func.blacklist directive is not being used. Click to view php.ini setup steps for Namecheap.
7 This Host has PHP5.3.x with Zend Guard Loader. Use ini_set Options.
8 This Host has both PHP 5.3.x Zend Guard Loader and PHP 5.2.x Zend Optimizer available to choose from. In order to create a custom php.ini file you will need to set your environment to PHP5.2 using the “Switch PHP Versions” tool in eXtend. You cannot create a custom php.ini file if your Server is using PHP 5.3.x Zend Guard Loader and .user.ini files currently have a known ongoing issue – PHP5.3.x .user.ini Known Problem & Solutions. Click to view php.ini setup steps for Heart Internet.
9 This Host is using PHP 5.3.x with Zend Guard Loader and requires that you use .user.ini instead of a php.ini file. Click to view Web Hosts php.ini and .user.ini setup steps.
10 This Host requires that you create your custom php.ini file using the [PHP Manager] tool in the control panel. There are a few settings that are not available in the control panel [PHP Manager] Tool and if you ask nicely your Host will add these additional settings for you.
11 This Host requires that you create your custom php.ini file in your control panel using the PHP Control Panel feature.
Flag/Value – This Host has a LiteSpeed SAPI w/DSO and php_flag and php_value can be added to the Root .htaccess file using the B-Core Custom Code feature. Click to view php_flag and php_value setup steps for Hawk Host.
P – Pending – php.ini handler code will be added in the next release of BPS Pro. The new BPS Pro Custom Code feature allows you to add your Host’s php.ini handler code.
CC = Custom Code. Add the php.ini handler code for your Web Host in the
Why am I seeing PHP errors and what do they mean?
BPS is alerting you that php errors have occurred on your website and logging these errors. BPS is not generating these php errors. In general php errors are a natural thing that will occur on every website intermittently. What is not natural or normal is to see the same php error happening repetitively and continuously. Logged PHP errors should be considered as helpful. PHP errors very accurately display exactly where coding issues or problems are occurring on your website that need to be either looked into or fixed. Fatal php errors need your immediate attention and should be fixed right away.
PHP Error Types/Levels/Severity
Strict – PHP will suggest making changes to the code which will ensure the best interoperability and forward compatibility of the code.
Notice – Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script.
Parse – Compile-time parse errors. Parse errors should only be generated by the parser. Indicates a syntax error in the code.
Warning – Run-time warnings (non-fatal errors). Execution of the script is not halted.
Fatal – Fatal run-time errors. These indicate errors that cannot be recovered from, such as a memory allocation problem. Execution of the script is halted.
Repetitive or continuous php errors usually means that there is a problem with some coding in a plugin or theme (common issue/problem) and can also mean that there is a conflict with the BPS security settings in your custom php.ini file (rare issue/problem). If you see that a php error is happening over and over again repeatedly you can usually see what the problem is from the error that is logged. If the php error is not obvious you can Google the php error message to find out what it could mean. Copy the portions of the php error that contain the error level, the error description and file name and code line into the Google search window and search for what the error means and the solution. Example: PHP Fatal error: Call to undefined function w3_url_format() in PgCacheAdmin.php on line 213. Do not include your website path in your Google search because the search will probably not return any search results since your website path is unique to only your website.
php.ini settings in your custom php.ini file can sometimes cause issues/problems with some plugins or themes that may need to use one of the risky or dangerous php functions in a way that appears to BPS as attack against your website. In general BPS starts from the maximum security settings and then allows you to decrease that security on an as needed basis. Example: If a plugin or theme needs to use one of these php functions – allow_url_fopen or register_argc_argv, which are set to Off by default in your custom php.ini file, then you would simply need to set them to On. BPS has several layers of overlapping security protection and fallbacks so if you need to allow a php function that is disabled in the disable_functions directive or set to Off in your custom php.ini file this can be done safely without any significant security risk.
Another thing that can generate repetitive php errors in your php error log is that a hacker is repetitively trying to exploit some code that may have a known vulnerability in that coding.
The important thing to note with php errors is that intermittent php errors are considered normal and repetitive or continuous php errors are not normal. So when BPS alerts you that a php error has been logged in your php error log, you want to take a look at the php error in your php error log and if it does not appear to be a serious problem or is just an intermittent php error you can then just click the Reset Last Modified Time in DB button to make the BPS php error notification go away. Php errors are logged by date in descending order. Your php error log is a static log file and php errors will remain in your php error log file until you manually delete them. It is completely up to you to decide whether or not you want to keep these php errors in your log file or delete them.
Tags: Custom php.ini FAQ, Custom php.ini PHP Errors, Custom php.ini Terms, General Hosting Terms, General Website Terms
Categories: BulletProof Security Pro
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, Web Hosts List, General Website Terms, … […]
Hi Edward,
I understand the error log Edward.
When I get an error, I get the alert which is cool…
However,
Once I have checked and corrected (or not) the error and emptied the error log, shouldn’t this “A PHP Error has been logged in your PHP Error Log” disappears?
I have no more error, but the alert is staying there… I do not wish to disable it either… Any suggestions Edward Please?
Thank you for a great plugin 🙂
Respectfully
You would just need to click the Reset Last Modified Time in DB button to clear the PHP error check message. Please read the PHP Error Log Last Modified Time Read Me help button for more specific explanation and details.
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, Web Hosts List, General Website Terms, … […]
[…] AutoMagic php.ini Handler Web Hosts List […]
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, General Website Terms, General Hosting … […]
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, General Website Terms, General Hosting … […]
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, General Website Terms, General Hosting … […]
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, General Website Terms, General Hosting … […]
[…] Custom php.ini FAQ – Custom php.ini Terms, PHP Errors, General Website Terms, General Hosting … […]