Bluehost Web Hosting Help
Protecting the php.ini file from being viewed
To prevent people to viewing your php.ini file via a browser a few lines need to be pasted into the .htaccess file.
- Log in to your Bluehost cPanel account.
- Click on File Manager (if prompted, select the checkbox to view hidden files)
- Double-click on the public_html folder to open it
- Right-click on the .htaccess file and then select the "Edit".
- Paste the following code into the bottom of the file and then click save:<Files php.ini> Order allow,deny Deny from all </Files>Now your php.ini file is protected. This change prevents php hackers from finding exploits on your site.
Recommended Help Content
Cron Jobs with PHP and other File Types
This article will explain how to run php and other file types using Cron jobs.
Specify a Cron Job to Use a Specific phpini File
Script executed with a cron job requires a specific php.ini file to be used.
Upload File Size Limit
How do I increase my file size limit in my PHP application?
Related Help Content
Adding Handlers to change your PHP Version
This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
PHP vs PHP single php.ini vs PHP with FastCGI
PHP Configuration for Addon Domain
How can I adjust the php settings specifically for an Addon Domain?
Configure the PHP Environment with php ini
How do I change the PHP environment for my site with php.ini?
Change Your PHP Version - Dedicated and VPS Hosting
Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
PHP PEAR Packages
This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
In the newer versions of PHP, they have included a new directive to control and handle remote includes. We disable this option, by default, which may affect some of your PHP scripts.
PHP display_errors flag
How do I turn the display_errors flag on for php?