Raised This Month: $12 Target: $400
 3% 

[HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mkvegas
Junior Member
Join Date: Apr 2019
Old 08-10-2019 , 11:41   [HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76
Reply With Quote #1

After successfully installing HLStatsX:CE, I went to the webpage on browser, but the page hlstats.php was totally empty.
On running php hlstats.php, console shows:

Quote:
PHP Notice: Undefined index: HTTP_HOST in /var/www/html/stats/hlstats.php on line 76
mkvegas is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 08-18-2019 , 14:31   Re: [HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76
Reply With Quote #2

Hello,

your webserver is probably broken, because the value "HTTP_HOST" is available only if you're running PHP through webserver, not via CLI.

This could help (if you host it yourself (VPS/VDS/Dedi)):
Nginx + PHP + MySQL
https://www.digitalocean.com/communi...k-ubuntu-18-04
OR Apache + PHP + MySQL
https://www.digitalocean.com/communi...n-ubuntu-16-04

Also don't forget to install some PHP extensions: https://github.com/NomisCZ/hlstatsx-...ments#-website
__________________

Last edited by NomisCZ; 08-18-2019 at 14:33.
NomisCZ is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode