AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   [HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76 (https://forums.alliedmods.net/showthread.php?t=318038)

mkvegas 08-10-2019 11:41

[HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76
 
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

NomisCZ 08-18-2019 14:31

Re: [HELP] PHP Notice: Undefined index: HTTP_HOST in ./hlstats.php on line 76
 
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


All times are GMT -4. The time now is 15:27.

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