PHP
If you have hosting with us you can change PHP settings from the 'Select PHP Version' tool on your cPanel.
- Log into cPanel
- Go to PHP Selector (called 'Select PHP Version' in some themes)
- If still running the 'native' version of PHP switch to the same non-native version (e.g from native (5.6) to 5.6)
- You will then see available PHP Extensions; click 'Options' at the top of these
- Once you click you will see the current PHP settings - clicking on the value next to these will permit you to edit
- 'Save' below
If you need to set values outside those available via this uploading a php.ini file (or .user.ini file if having issues in php.ini not overriding existing settings) to your working directory.
- Create a new file in a simple text editor (like Notepad)
- Name this file 'php.ini'
- Add any directives needed into your 'php.ini' file (one per line and as many as needed) to set PHP values as desired. The documentation for the particular application or publishing tool/CMS you are using (e.g. Wordpress) will provide you with the specific directives and values you need to set. Some common directives are:
max_execution_time =
memory_limit =
post_max_size =
upload_max_filesize =
Error codes
500 - Internal Server Error: This indicates your website is asking the server to do something it can't. If you have a .htaccess file this is a good place to start with checking for any errors.
404 - Not Found: This indicates a broken link somewhere in your site; your website is trying to load a file/page that is simply not there.
403 - Forbidden: This error is related to permissions; the resource you have asked for doesn't have the correct permissions set for you to be able to view/retrieve it.
Database issues
If you are encountering issue connecting to your hosted database, ensure to check that your site is requesting information from the correct database using the correct password and username
These details can be confirmed via your cPanels "MySQL® Databases" tool.
woocommerce
If you have the following or similar error message: "please contact your hosting provider and request them to enable loopback requests for your site.Error: [] cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received"
This problem typically occurs when you try to connect directly via loopback IP rather than over your own hostname.
IE: The their plugin is attempting to connect to “https://127.0.0.1/path/to/file”, but cPanel cannot identify how to locate this file amongst its users.
Your plugin should be updated to connect to “https://YourDomainName.com/path/to/file” in order to complete this request successfully.