BanManagement / BanManager-WebUI

Web interface for BanManager using Next.js/React/GraphQL
https://demo.banmanagement.com/
MIT License
58 stars 40 forks source link

WebUI install on dedicated server? #120

Closed KookosPahkina closed 8 years ago

KookosPahkina commented 8 years ago

So umm i installed my banmanger to /var/www/html/banmanager so i go to the address xxx.xxx.xx.xx/banmanager it works just fine, when i try to go into the home tab or something else it just keeps saying "The requested URL /index.php was not found on this server." same for admin panel etc, so how am i supposed to install this? lol.. followed every single step on the installion guide. I am using Centos 7 EDIT: i was using an older version, and i tried with the newest version. still the same problem except the message changed to this now. The requested URL /banmanager/index.php was not found on this server.

confuser commented 8 years ago

What webserver are you running?

KookosPahkina commented 8 years ago

Nothing.. i guess that might be the problem then lol

KookosPahkina commented 8 years ago

actually i have Apache

Hu5ker commented 8 years ago

Maybe a links problem?.

I have it in a dedicated server using ISPConfig 3 and is working fine.

tyler2k15 commented 8 years ago

I assume you have validated that the files are there?

KookosPahkina commented 8 years ago

yes

frdmn commented 8 years ago

Hey @KookosPahkina

Sorry for the delay! Can you show me the web interface? I would love to take a look by myself. I bet the console will throw some precious errors that should indicate whats going south.

Let me know!

KookosPahkina commented 8 years ago

@frdmn http://ovh.hydrox.co/banmanager/ that's the address.. if that is what you meant

frdmn commented 8 years ago

Can you give us the output of the following terminal command:

$ ls -la  /var/www/html/banmanager/
KookosPahkina commented 8 years ago

drwxrwxrwx 8 root root 4096 Jan 2 16:15 . drwxr-xr-x 6 root root 4096 Jan 2 16:22 .. drwxrwxrwx 2 root root 4096 Jan 2 16:13 actions drwxrwxrwx 2 root root 4096 Jan 2 16:13 ajax drwxrwxrwx 6 root root 4096 Jan 2 16:13 assets -rwxrwxrwx 1 root root 671 Jan 2 16:13 bower.json drwxrwxrwx 3 root root 4096 Jan 2 16:22 cache -rwxrwxrwx 1 root root 1113 Jan 2 16:13 CONTRIBUTING.md -rwxrwxrwx 1 root root 172 Jan 2 16:13 .dashbrew -rwxrwxrwx 1 root root 1881 Jan 2 16:13 footer.php drwxrwxrwx 8 root root 4096 Jan 2 16:13 .git -rwxrwxrwx 1 root root 12 Jan 2 16:13 .gitattributes -rwxrwxrwx 1 root root 407 Jan 2 16:13 .gitignore -rwxrwxrwx 1 root root 7624 Jan 2 16:13 Gruntfile.js -rwxrwxrwx 1 root root 3649 Jan 2 16:13 header.php -rwxrwxrwx 1 root root 26468 Jan 2 16:13 index.php -rwxrwxrwx 1 root root 1154 Jan 2 16:13 .jscsrc -rwxrwxrwx 1 root root 22 Jan 2 16:13 .jshintignore -rwxrwxrwx 1 root root 628 Jan 2 16:13 .jshintrc drwxrwxrwx 2 root root 4096 Jan 2 16:13 l10n -rwxrwxrwx 1 root root 11190 Jan 2 16:13 LICENSE -rwxrwxrwx 1 root root 1315 Jan 2 16:13 package.json -rwxrwxrwx 1 root root 3962 Jan 2 16:13 README.md -rwxrwxrwx 1 root root 3553 Jan 2 16:16 settings.php -rwxrwxrwx 1 root root 3536 Jan 2 16:13 settingsRename.php -rwxrwxrwx 1 root root 6 Jan 2 16:13 VERSION

frdmn commented 8 years ago

Do you know if you've SELinux enabled? Please give us the output of the following commands:

$ ls -lZ /var/www/html/banmanager/
$ sestatus -v

Additionally, check your syslog for any relevant error messages.

KookosPahkina commented 8 years ago

https://gyazo.com/b447ace9cb34e48e3cb122afd86949e5 SELinux is disabled

frdmn commented 8 years ago

For the giggles, try to get rid of everything inside the "banmanager" folder, create a new "index.php" file with the following content:

<?php phpinfo(); ?>

Save it and try to execute it in your browser. Does that work?

Von meinem iPhone gesendet

Am 04.01.2016 um 17:41 schrieb KookosPahkina notifications@github.com:

https://gyazo.com/b447ace9cb34e48e3cb122afd86949e5 SELinux is disabled

— Reply to this email directly or view it on GitHub.

KookosPahkina commented 8 years ago

@frdmn yes it works

frdmn commented 8 years ago

Now redownload the archive from the GitHub releases page and extract it to your document root. Same issue again?

Von meinem iPhone gesendet

Am 04.01.2016 um 18:06 schrieb KookosPahkina notifications@github.com:

@frdmn yes it works

— Reply to this email directly or view it on GitHub.

KookosPahkina commented 8 years ago

@frdmn Yes the same problem again. If you mean with the document root /var/www/html/banmanager

frdmn commented 8 years ago

May I see your webserver configuration/virtual host?

KookosPahkina commented 8 years ago

@frdmn It's just pretty much default Apache config if that's what you are looking for. http://pastebin.com/suuuS5m6 (will expire in 24hrs)

frdmn commented 8 years ago

@KookosPahkina Hmm, don't see any special directives which could result in such a weird behaviour.

Did you check your error logs and sys logs for any further messages?

KookosPahkina commented 8 years ago

@frdmn AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php,index.php) found, and server-generated directory index forbidden by Options directive

frdmn commented 8 years ago

There we go! Finally the root of our problem. I'll research and let you know how to fix this :+1:

frdmn commented 8 years ago

Just found this relevant StackOverflow answer: http://stackoverflow.com/a/25080393/2940412

Can you try adding DirectoryIndex disabled above line 145?

KookosPahkina commented 8 years ago

@frdmn You don't have permission to access /banmanager/ on this server. after i did that

frdmn commented 8 years ago

Probably because everything is owned by root and not by the user that actually runs the web server.

$ chmod 777 /var/www/html/banmanager
KookosPahkina commented 8 years ago

yeah that didn't help at all

frdmn commented 8 years ago

Then you need to fix this permissions issue by your own. This issue is definitely not related to the project, rather it is because of an misconfigured web server.

I can't help you remotely like this without looking on to the machine that is causing trouble. Also, I don't really want to spam our watchers with tons chitchat mail notifications.

Last option I could offer is that you join IRC and we can try together to sort this out on a proper chat platform.

frdmn commented 8 years ago

Fixed via IRC.

The problem was a .htaccess inside /var/www/html.