Knowledgebase

PHP X-Ray is not showing in user cPanel

If PHP X-Ray is not showing in a user's cPanel, it's possible that there could be a few reasons for this. Here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Check PHP Version:

    • Ensure that the PHP version being used by the cPanel account supports AWS X-Ray. PHP X-Ray requires PHP versions 7.0 and above. Verify that the user's cPanel is configured to use a compatible PHP version.
  2. Verify PHP X-Ray Extension:

    • Make sure that the PHP X-Ray extension is installed and enabled on the server. This extension is necessary for X-Ray to work with PHP applications.
  3. Verify IAM Roles and Permissions:

    • Ensure that the IAM roles associated with the server have the necessary permissions to interact with AWS X-Ray. The role should include the AWSXRayDaemonWriteAccess policy.
  4. Check X-Ray Configuration:

    • Verify that the AWS X-Ray daemon (xray-daemon) is running on the server. This daemon is responsible for sending trace data to the X-Ray service.
  5. Check cPanel Plugins:

    • Ensure that the AWS X-Ray plugin is installed and enabled in cPanel. If it's not installed, you may need to install it from the cPanel Marketplace or through the cPanel interface.
  6. Restart Web Server:

    • After making any configuration changes, consider restarting the web server to apply the updates. This can sometimes resolve issues related to plugin visibility.
  7. Verify X-Ray Sampling Rules:

    • Check if there are any sampling rules set up in the AWS X-Ray console. Sampling rules determine which traces are recorded. Make sure they are not excluding traces unintentionally.
  8. Check X-Ray Service Status:

    • Verify that AWS X-Ray is running and operational in the AWS region where your server is located. It's possible that there could be service disruptions.
  9. Review CloudWatch Logs:

    • Check CloudWatch Logs for any error messages or warnings related to X-Ray. This can provide additional information about what might be causing the issue.
  10. Clear Browser Cache:

    • If you've recently made changes, ensure that you clear your browser cache to ensure you're viewing the latest version of the cPanel interface.
  11. Contact AWS Support:

    • If none of the above steps resolve the issue, consider reaching out to AWS Support for further assistance. They may have specific troubleshooting steps or insights related to X-Ray integration.

Always remember to exercise caution when making changes to server configurations, and ensure that any actions you take align with best practices for security and system stability.

 
  • 0 Users Found This Useful
Was this answer helpful?