Problem hosting on 20i hosts in UK

A

Anonymous

Guest
php scripts do NOT work with 20i hosting. Instead of executing them it just displays the script. They keep saying that my code is incorrect but its verified by Dreaweaver and it worked with my previous host. 20i use cloud servers behaving as one computer but php script fails to invoke the php interpreter. Anyone has got experience with this please?
 
Here are a few troubleshooting steps you can try:

  1. Check the file extension: Ensure that your PHP files have the correct file extension, which should be .php. For example, script.php. If the file extension is incorrect, the server may not recognize it as a PHP script.
  2. PHP tags: Make sure you are using the correct PHP opening and closing tags in your script. The opening tag should be <?php and the closing tag should be ?>. Verify that these tags are present and properly placed in your script.
  3. File permissions: Ensure that the file permissions of your PHP scripts are set correctly. The files should have readable permissions for the webserver. You can try setting the permissions to 644 using an FTP client or a file manager provided by your hosting provider.
  4. PHP version: Check the PHP version running on your 20i hosting. Verify that your code is compatible with the PHP version being used. It's possible that there might be differences between the PHP version on your previous host and the one on 20i hosting, leading to issues with your code execution.
  5. Server configuration: Contact 20i support and explain the issue you are facing. They should be able to assist you in troubleshooting the problem and ensuring that the server configuration is correctly set up to handle PHP scripts.

In case that does not work It is recommended to change your hosting type My recommendation would be Devrims PHP Managed Hosting which provides hosting on a LiteSpeed server and works fast and efficiently.
 
  1. Check PHP version: Ensure that the PHP version on your hosting server is compatible with the PHP script you're trying to execute. You can usually check and select the PHP version in your hosting control panel or by contacting your hosting provider's support.
  2. Verify file extension: Make sure your PHP file has a .php extension. Some hosting providers require specific file extensions (e.g., .php, .php5) to recognize and execute PHP code.
  3. File permissions: Ensure that the file permissions for your PHP file are set correctly. The file should have appropriate read and execute permissions to be processed by the PHP interpreter. Check the file permissions through your hosting control panel or using an FTP client.
  4. Error reporting: Enable error reporting in your PHP script by adding the following line at the top:
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    This will display any errors or warnings that may be preventing the script from executing properly. Remember to remove or disable error reporting in a production environment for security reasons.
  5. Check PHP tags: Ensure that your PHP code is enclosed within valid PHP opening and closing tags:
    <?php
    // Your PHP code here
    ?>
    Make sure there are no typos or syntax errors within the PHP code.
  6. Contact hosting support: If you've tried the above steps and the issue persists, it's best to reach out to your hosting provider's support team for assistance. They can provide specific insights into how their hosting environment works and help troubleshoot the issue further.

    Remember to provide them with specific details, including the error messages or any relevant logs, to help them diagnose the problem accurately. In case of having hosting problems, You can go for a managed php hosting. As the name suggests the hosting provider will take care of the technicalities for you, letting you focus on your site.
 
Back
Top