Cpanel can't run my source code properly

HEFamily

Registered
Jan 16, 2020
1
0
1
Australia
cPanel Access Level
DataCenter Provider
Hi, everyone. I'm stuck this problem for three days without any progress...
I use youtube v3 API key trying to embed video in my website.
On DirectAdmin Panel work fine, the video can load and play.
However, this code can't work appropriately on Cpanel, and the video can't play.
I give the same firewall rule on both VPS. Also, I tried to disable the firewall, and the video still can't play.
Same source code can't work on Cpanel, can't load video.
Does anyone have any idea about it?
 
Last edited by a moderator:

keat63

Well-Known Member
Nov 20, 2014
1,962
267
113
cPanel Access Level
Root Administrator
It could be down to the way apache or PHP is configured I guess.
Or maybe mod security if you use it.

I'd start looking in usr/local/apache/logs/error_log for a start.

I'm no expert, but i encountered an issue with opening url's only yesterday, which turned out to be 'allow_url_fopen ', which wasn't enabled in php.ini

It's a long shot, but worth a look until someone more knowlegeable comes along.

(this is my way of bumping it :) )
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,274
1,296
313
Houston
I'd second @keat63's request for logs. We moved where Apache's logs are as well (if you don't have a symlink in place) they're located at /etc/apache2/logs/error_log