[GH-ISSUE #114] 404 error new install #90

Closed
opened 2026-02-26 09:35:46 +03:00 by kerem · 12 comments
Owner

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

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
kerem closed this issue 2026-02-26 09:35:46 +03:00
Author
Owner

@barryo commented on GitHub (Aug 14, 2014):

Please see: https://github.com/opensolutions/ViMbAdmin/wiki/Installation#apache2

<!-- gh-comment-id:52191959 --> @barryo commented on GitHub (Aug 14, 2014): Please see: https://github.com/opensolutions/ViMbAdmin/wiki/Installation#apache2
Author
Owner

@barryo commented on GitHub (Aug 14, 2014):

You said:

I followed the guide on the wiki

Your pastebin is quite different from the guide 😢

<!-- gh-comment-id:52192043 --> @barryo commented on GitHub (Aug 14, 2014): You said: > I followed the guide on the wiki Your pastebin is quite different from the guide :cry:
Author
Owner

@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!

<!-- gh-comment-id:52236099 --> @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!
Author
Owner

@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#

<!-- gh-comment-id:52237771 --> @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#
Author
Owner

@smmalloy commented on GitHub (Aug 14, 2014):

http://pastebin.com/euxiUz2T

<!-- gh-comment-id:52247847 --> @smmalloy commented on GitHub (Aug 14, 2014): http://pastebin.com/euxiUz2T
Author
Owner

@barryo commented on GitHub (Aug 15, 2014):

That looks much better. Does it work?

<!-- gh-comment-id:52291481 --> @barryo commented on GitHub (Aug 15, 2014): That looks much better. Does it work?
Author
Owner

@smmalloy commented on GitHub (Aug 15, 2014):

No, still getting the 403 error

Sent from my Sony Xperia™ smartphone

---- barryo wrote ----

That looks much better. Does it work?


Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:52292158 --> @smmalloy commented on GitHub (Aug 15, 2014): No, still getting the 403 error Sent from my Sony Xperia™ smartphone ---- barryo wrote ---- > That looks much better. Does it work? > > — > Reply to this email directly or view it on GitHub.
Author
Owner

@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:

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]
</Directory>

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
<!-- gh-comment-id:52292702 --> @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: ``` sh 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: ``` apache 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] </Directory> ``` Also ensure you have mod_rewrite enabled: ``` sh 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: ``` apache SetEnv APPLICATION_ENV production ```
Author
Owner

@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.

<!-- gh-comment-id:52293333 --> @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] </Directory> 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.
Author
Owner

@barryo commented on GitHub (Aug 15, 2014):

Use:

Alias /vimbadmin /usr/local/vimbadmin/public

<Directory /usr/local/vimbadmin/public>
    Options FollowSymLinks
    AllowOverride None

    Require all granted

    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]
</Directory>
<!-- gh-comment-id:52294533 --> @barryo commented on GitHub (Aug 15, 2014): Use: ``` apache Alias /vimbadmin /usr/local/vimbadmin/public <Directory /usr/local/vimbadmin/public> Options FollowSymLinks AllowOverride None Require all granted 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] </Directory> ```
Author
Owner

@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?

<!-- gh-comment-id:52302130 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:52302375 --> @barryo commented on GitHub (Aug 15, 2014): I'm sorry, I'm up to my neck :cry: 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#90
No description provided.