Raised This Month: $32 Target: $400
 8% 

AMXBans how to install?


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-05-2022 , 23:57   Re: AMXBans how to install?
Reply With Quote #11

Sorry, that semicolon should also be removed. I updated my post.
__________________
fysiks is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-19-2022 , 16:03   Re: AMXBans how to install?
Reply With Quote #12

I've finally moved somewhere.

I already have amxbans installed correctly, but the server shows me "Server not available". There are no errors in the console or logs. I've still tried to enable ports on my website where amxbans also run, so I'll see if it helps (I'll write an update later).

Another thing:
When I click on "Ban List" in the top bar, it throws out the error "HTTP ERROR 500".
sakulmore is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 09-19-2022 , 16:16   Re: AMXBans how to install?
Reply With Quote #13

post output from apache2/httpd log file
__________________
bigdaddy424 is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-19-2022 , 16:32   Re: AMXBans how to install?
Reply With Quote #14

Okay, server is loaded. Commands works too. I think all about the server is good.

The ban list still not working.

I can't send here that output because I don't have access to the root directory. It's just web (domain / webhosting).

Could be something with .htaccess file? Because I modified him. I had to remove it because the website was shown as white (nothing).

Last edited by sakulmore; 09-19-2022 at 17:08.
sakulmore is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-19-2022 , 21:22   Re: AMXBans how to install?
Reply With Quote #15

I'm not sure what exactly AMX Bans requires but I know that my webhost doesn't allow external connection so I was not able to connect to my game server at all. I eventually switched to the web server that came with the game server itself which does allow direct connections to the game server.

So, you might need to ask your host if they allow external connections.
__________________
fysiks is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-19-2022 , 22:41   Re: AMXBans how to install?
Reply With Quote #16

Quote:
Originally Posted by fysiks View Post
I'm not sure what exactly AMX Bans requires but I know that my webhost doesn't allow external connection so I was not able to connect to my game server at all. I eventually switched to the web server that came with the game server itself which does allow direct connections to the game server.

So, you might need to ask your host if they allow external connections.
Yes, I have added external connection. Server is working. Ban List not working (HTTP ERROR 500).
sakulmore is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-20-2022 , 11:49   Re: AMXBans how to install?
Reply With Quote #17

Now I tried edit the file ".htaccess" and still not working. All working good but Ban list (page) not working...

Last edited by sakulmore; 09-20-2022 at 12:18.
sakulmore is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-20-2022 , 14:16   Re: AMXBans how to install?
Reply With Quote #18

I think I found where is the problem.

When I added this to the file "ban_list.php":
Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);
it shown me this:
Code:
Fatal error: Cannot redeclare geoip_country_code_by_name() in /usr/www/users/<mysitename>/amxbans/include/geoip.inc on line 353
PHP info:
Code:
Server: Apache2
PHP Version: 5.6.40

GeoIP is enabled.
GeoIP ext. ver.: 1.1.1
GeoIP lib. ver.: 1006012
how can I fix it?

Last edited by sakulmore; 09-20-2022 at 14:22.
sakulmore is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-21-2022 , 02:17   Re: AMXBans how to install?
Reply With Quote #19

I found another error in view.php. The body of the while loop is not bound (i.e. there is no closing brace). Add a new line at line 170 and put a closing brace ("}") there.
__________________
fysiks is offline
sakulmore
Member
Join Date: Aug 2022
Old 09-21-2022 , 12:04   Re: AMXBans how to install?
Reply With Quote #20

I fixed it .

I just had to edit the file "geoip.inc" in "/public_html/amxbans/include" folder.

If somebody having same issue as me, then try download this (my edited "geoip.inc" file) at below and replace it with original "geoip.inc" in the folder "/public_html/amxbans/include".
Attached Files
File Type: inc geoip.inc (21.5 KB, 16 views)

Last edited by sakulmore; 09-21-2022 at 12:05.
sakulmore is offline
Reply



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 00:29.


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