The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

500 Server Error on One Account

Discussion in 'General Discussion' started by mlong2001, Dec 18, 2015.

  1. mlong2001

    mlong2001 Registered

    Joined:
    Feb 22, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ok I appreciate any help on this...

    I had a website account that was taking up alot of resources on the server.
    I looked at TOP and found the process that was taking up all the resources.
    In TOP it was listed as the account name and the process was called PHP so I killed that process and restarted the server thinking that it would resolve the issue and restart the process.
    Ever since on that one account I am getting a 500 error for any php file that I am trying to access. HTML files work fine.

    You can see the error in the browser attached.

    Is there a service that I need to restart?

    Thank you for your advise and time in advance!
     

    Attached Files:

  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Run this command, and while its running hit refresh a few times on the site then paste the output.

    Code:
    # tail -f /usr/local/apache/logs/error_log
     
  3. mlong2001

    mlong2001 Registered

    Joined:
    Feb 22, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Jcats ... Thanks for the reply ... I have ran the script ... there were a few errors but nothing from that site or account.

    Any thoughts?
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    322
    Likes Received:
    23
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    First you can check if there is an error_log file under the public_html folder for the account.
    If yes then you can check error logs using the below command
    Code:
    tail -n 100 /home/USER/public_html/error_log
    
    The above command will show the exact error.
    Replace the "USER" to account username.

    2) May I know other websites are working with php pages ?
     
  5. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Look for an .htaccess for the particular site and rename it temporarily to see if you are then able to access the site. If you are able to access the site, you have some line incorrect in the .htaccess file. Very common reason for 500 errors.

    Mike
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know the specific error messages that appear in /usr/local/apache/logs/error_log when refreshing the websites that produce the "500" error code?

    Thank you.
     
  7. mlong2001

    mlong2001 Registered

    Joined:
    Feb 22, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    SysSachin,

    I think I might have found the error ... I just dont know how to fix it ... below is the copied error messages from the error_log that you had me run...

    Code:
    [13-Oct-2015 22:55:24 UTC] PHP Fatal error:  Uncaught exception 'Stripe\Error\InvalidR                                                 equest' with message 'Invalid source object: must be a dictionary or a non-empty strin                                                 g. See API docs at Documentation'' in /home/airspark/public_html/wp-content/                                                 plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:106 from API req                                                 uest 'req_79vXgtoCQayKgW'
    Stack trace:
    #0 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(220): Stripe\ApiRequestor->handleApiError('{\n  "error": {\n.                                                 ..', 400, Array, Array)
    #1 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n  "error": {                                                 \n...', 400, Array)
    #2 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/customers', Ar                                                 ray, Array)
    #3 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(137) in /home/airspark/public_html/wp-content/plugins/stripe-c                                                 heckout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 106
    [13-Oct-2015 22:56:00 UTC] PHP Fatal error:  Uncaught exception 'Stripe\Error\InvalidR                                                 equest' with message 'Invalid source object: must be a dictionary or a non-empty strin                                                 g. See API docs at Documentation'' in /home/airspark/public_html/wp-content/                                                 plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:106 from API req                                                 uest 'req_79vXQo5ZVdRDaG'
    Stack trace:
    #0 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(220): Stripe\ApiRequestor->handleApiError('{\n  "error": {\n.                                                 ..', 400, Array, Array)
    #1 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n  "error": {                                                 \n...', 400, Array)
    #2 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/customers', Ar                                                 ray, Array)
    #3 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(137) in /home/airspark/public_html/wp-content/plugins/stripe-c                                                 heckout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 106
    [13-Oct-2015 22:56:04 UTC] PHP Fatal error:  Uncaught exception 'Stripe\Error\InvalidR                                                 equest' with message 'Invalid source object: must be a dictionary or a non-empty strin                                                 g. See API docs at Documentation'' in /home/airspark/public_html/wp-content/                                                 plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:106 from API req                                                 uest 'req_79vXpL0At3eiK7'
    Stack trace:
    #0 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(220): Stripe\ApiRequestor->handleApiError('{\n  "error": {\n.                                                 ..', 400, Array, Array)
    #1 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n  "error": {                                                 \n...', 400, Array)
    #2 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/customers', Ar                                                 ray, Array)
    #3 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(137) in /home/airspark/public_html/wp-content/plugins/stripe-c                                                 heckout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 106
    [13-Oct-2015 23:01:02 UTC] PHP Fatal error:  Uncaught exception 'Stripe\Error\InvalidR                                                 equest' with message 'Invalid source object: must be a dictionary or a non-empty strin                                                 g. See API docs at Documentation'' in /home/airspark/public_html/wp-content/                                                 plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:103 from API req                                                 uest 'req_79vcPcKqmUUeZd'
    Stack trace:
    #0 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(217): Stripe\ApiRequestor->handleApiError('{\n  "error": {\n.                                                 ..', 400, Array, Array)
    #1 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n  "error": {                                                 \n...', 400, Array)
    #2 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/customers', Ar                                                 ray, Array)
    #3 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(137) in /home/airspark/public_html/wp-content/plugins/stripe-c                                                 heckout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 103
    [13-Oct-2015 23:01:14 UTC] PHP Fatal error:  Uncaught exception 'Stripe\Error\InvalidR                                                 equest' with message 'Invalid source object: must be a dictionary or a non-empty strin                                                 g. See API docs at Documentation'' in /home/airspark/public_html/wp-content/                                                 plugins/stripe-checkout-pro/libraries/stripe-php/lib/ApiRequestor.php:103 from API req                                                 uest 'req_79vcCv0EsFJwaG'
    Stack trace:
    #0 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(217): Stripe\ApiRequestor->handleApiError('{\n  "error": {\n.                                                 ..', 400, Array, Array)
    #1 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiRequestor.php(60): Stripe\ApiRequestor->_interpretResponse('{\n  "error": {                                                 \n...', 400, Array)
    #2 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(105): Stripe\ApiRequestor->request('post', '/v1/customers', Ar                                                 ray, Array)
    #3 /home/airspark/public_html/wp-content/plugins/stripe-checkout-pro/libraries/stripe-                                                 php/lib/ApiResource.php(137) in /home/airspark/public_html/wp-content/plugins/stripe-c                                                 heckout-pro/libraries/stripe-php/lib/ApiRequestor.php on line 103
    [21-Oct-2015 15:19:28 America/Los_Angeles] PHP Warning:  PHP Startup: Unable to load d                                                 ynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/homeloader.so'                                                  - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/homeloader.so: cannot open                                                  shared object file: No such file or directory in Unknown on line 0
    [21-Oct-2015 15:19:28 America/Los_Angeles] PHP Warning:  PHP Startup: Unable to load d                                                 ynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /usr                                                 /local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: cannot open shared object                                                  file: No such file or directory in Unknown on line 0
    
    of course this does have oct 21 in the time stamp so i might not have any idea what im talking about... lol
     
    #7 mlong2001, Dec 21, 2015
    Last edited by a moderator: Dec 22, 2015
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The time stamp in the log data you provided suggests it's unrelated to the issue you are experiencing. Could you let us know the specific error messages that appear in /usr/local/apache/logs/error_log when refreshing the websites that produce the "500" error code?

    Thank you.
     
Loading...

Share This Page