mlong2001

Registered
Feb 22, 2015
3
0
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!
 

Attachments

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
806
156
168
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
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
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 ?
 

mtindor

Well-Known Member
Sep 14, 2004
1,370
65
178
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
363
New Jcats ... Thanks for the reply ... I have ran the script ... there were a few errors but nothing from that site or account.
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.
 

mlong2001

Registered
Feb 22, 2015
3
0
1
cPanel Access Level
Root Administrator
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 ?

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
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
363
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.