mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #114] 404 error new install #90
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smmalloy on GitHub (Aug 14, 2014).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/114
All installs fine, however receive 404 error, when trying to view it.
Apache2 config: http://pastebin.com/ARgWWAqd
I followed the guide on the wiki. and ran chown -R www-data:www-data /usr/local/vimbadmin
@barryo commented on GitHub (Aug 14, 2014):
Please see: https://github.com/opensolutions/ViMbAdmin/wiki/Installation#apache2
@barryo commented on GitHub (Aug 14, 2014):
You said:
Your pastebin is quite different from the guide 😢
@smmalloy commented on GitHub (Aug 14, 2014):
My installation directory is different to the one in the guide. I have therefore changed the directory listings to follow this.
http://pastebin.com/kH9RVWP3
It is a 403 error, not a 404!
@smmalloy commented on GitHub (Aug 14, 2014):
root@Server:/etc/apache2# cd /usr/local/
root@Server:/usr/local# ls -l
total 40
drwxr-xr-x. 2 root root 4096 Aug 13 22:47 bin
drwxr-xr-x. 2 root root 4096 Oct 16 2013 etc
drwxr-xr-x. 2 root root 4096 Oct 16 2013 games
drwxr-xr-x. 2 root root 4096 Oct 16 2013 include
drwxr-xr-x. 5 root root 4096 May 31 17:36 lib
lrwxrwxrwx. 1 root root 9 Mar 3 21:10 man -> share/man
drwxr-xr-x. 2 user user 4096 May 12 16:56 minecraft
drwxr-xr-x. 2 root root 4096 Oct 16 2013 sbin
drwxr-xr-x. 7 root root 4096 Mar 3 21:32 share
drwxr-xr-x. 2 root root 4096 Oct 16 2013 src
drwxrwxrwx. 10 www-data www-data 4096 Aug 14 14:03 vimbadmin
root@Server:/usr/local# cd vimbadmin/
root@Server:/usr/local/vimbadmin# ls -l
total 120
drwxrwxrwx. 10 www-data www-data 4096 Aug 14 13:13 application
drwxrwxrwx. 3 www-data www-data 4096 Aug 14 13:13 bin
-rwxrwxrwx. 1 www-data www-data 9011 Aug 14 13:13 CHANGELOG
-rwxrwxrwx. 1 www-data www-data 2178 Aug 14 13:13 composer.json
-rwxrwxrwx. 1 www-data www-data 28065 Aug 14 14:03 composer.lock
drwxrwxrwx. 3 www-data www-data 4096 Aug 14 13:13 data
drwxrwxrwx. 3 www-data www-data 4096 Aug 14 13:13 doctrine2
drwxrwxrwx. 3 www-data www-data 4096 Aug 14 13:13 library
-rwxrwxrwx. 1 www-data www-data 35147 Aug 14 13:13 LICENSE
drwxrwxrwx. 6 www-data www-data 4096 Aug 14 14:42 public
-rwxrwxrwx. 1 www-data www-data 1127 Aug 14 13:13 README.md
-rwxrwxrwx. 1 www-data www-data 2329 Aug 14 13:13 UPDATING
drwxrwxrwx. 7 www-data www-data 4096 Aug 14 13:13 var
drwxrwxrwx. 10 www-data www-data 4096 Aug 14 14:03 vendor
root@Server:/usr/local/vimbadmin#
@smmalloy commented on GitHub (Aug 14, 2014):
http://pastebin.com/euxiUz2T
@barryo commented on GitHub (Aug 15, 2014):
That looks much better. Does it work?
@smmalloy commented on GitHub (Aug 15, 2014):
No, still getting the 403 error
Sent from my Sony Xperia™ smartphone
---- barryo wrote ----
@barryo commented on GitHub (Aug 15, 2014):
You're permissions are too permissive (not that that should result in a 403). The following will correct them:
Assuming you're using Apache 2.3 (or lower), the following should work:
Also ensure you have mod_rewrite enabled:
Lastly, ensure the file
/usr/local/vimbadmin/public/.htaccessdoes not exist. It shouldn't be required with the above configuration and this is most likely the source of your problem.It may be required for some CLI actions and, if so, just have it contain:
@smmalloy commented on GitHub (Aug 15, 2014):
I am running Apache 2.4.7 Is there a setting i can add/change for that?
From: barryo notifications@github.com
To: opensolutions/ViMbAdmin ViMbAdmin@noreply.github.com
Cc: smmalloy malloyj@btinternet.com
Sent: Friday, 15 August 2014, 11:20
Subject: Re: [ViMbAdmin] 404 error new install (#114)
You're permissions are too permissive (not that that should result in a 403). The following will correct them:
chown -R www-data: /usr/local/vimbadmin
chmod -R ug=rwX,o=rX /usr/local/vimbadmin
Assuming you're using Apache 2.3 (or lower), the following should work:
Alias /vimbadmin /usr/local/vimbadmin/public <Directory /usr/local/vimbadmin/public> Options FollowSymLinks AllowOverride None # For Apache <= 2.3: Order allow,deny allow from all SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^._
- [NC,L] RewriteRule ^._/vimbadmin/index.php [NC,L]Also ensure you have mod_rewrite enabled:
a2enmod rewrite
service apache2 restart
Lastly, ensure the file /usr/local/vimbadmin/public/.htaccess does not exist. It shouldn't be required with the above configuration and this is most likely the source of your problem.
It may be required for some CLI actions and, if so, just have it contain:
SetEnv APPLICATION_ENV production
—
Reply to this email directly or view it on GitHub.
@barryo commented on GitHub (Aug 15, 2014):
Use:
@smmalloy commented on GitHub (Aug 15, 2014):
Thanks, I have followed the rest of the guide, and I cannot get it to intergrate wit postfix, or dovecot!!
I receive the following:
Aug 15 12:57:09 Server dovecot: auth: Warning: sql: Ignoring changed iterate_query in /etc/dovecot/dovecot-sql.conf.ext, because userdb sql not used. (If this is intentional, set userdb_warning_disable=yes)
Aug 15 12:57:11 Server dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=user@anoblequest.co.uk, method=PLAIN, rip=62.49.15.89, lip=192.168.0.90, TLS, session=<ojeUuKkAKgA+MQ9Z>
Aug 15 13:20:09 Server dovecot: auth: Warning: sql: Ignoring changed iterate_query in /etc/dovecot/dovecot-sql.conf.ext, because userdb sql not used. (If this is intentional, set userdb_warning_disable=yes)
Aug 15 13:20:11 Server dovecot: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=joe@anoblequest.co.uk, method=PLAIN, rip=62.49.15.89, lip=192.168.0.90, TLS, session=<su7WCqoALAA+MQ9Z>
Aug 15 13:33:35 Server postfix/smtpd[15111]: fatal: do not run this command by hand
Any chance you can help?
Before I had to change the configs for your guide, i was getting mail to come in. Any Ideas?
@barryo commented on GitHub (Aug 15, 2014):
I'm sorry, I'm up to my neck 😢
http://www.vimbadmin.net/support.php
Your best bet at this stage in probably Dovecot / Postfix mailing lists. Also, for future reference, Github issues should be used for bugs / features. Please use the mailing list for this kind of thing.