.htaccess files on apache2 + MySQL

.htaccess files on apache2 + MySQL

ik idokan at gmail.com
Fri Mar 4 17:03:13 IST 2011


You should use AllowOverride option in the directory settings to be All
rather then none on not existed at all.

Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il




2011/3/4 Uri Even-Chen <uri at speedy.net>

> Hi everyone,
>
> 1. I installed a new cloud server on www.speedy2000.net , it uses Ubuntu
> 10.04 LTS with apache2, PHP and MySQL. The problem is, currently apache
> ignores .htaccess files. I have 2 .htaccess files, one to protect a
> directory with username & password and one to redirect to another domain.
> Here are the contents of the .htaccess files:
>
> root at www:/var/www/admin# cd /var/www/admin/
> root at www:/var/www/admin# cat .htaccess
> AuthUserFile /etc/apache2/users/.htpasswd
> AuthGroupFile /dev/null
> AuthName "Protected Area"
> AuthType Basic
>
> <LIMIT GET POST>
> require admin
> </LIMIT>
>
> root at www:/var/www/admin# cd /var/www/uri/
> root at www:/var/www/uri# cat .htaccess
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /uri/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /uri/index.php [L]
> </IfModule>
>
> --
> currently both .htaccess files are ignored, for example
> http://www.speedy2000.net/uri/en/ is not working and
> http://www.speedy2000.net/admin/ is visible to everyone. How do I fix it?
>
> root at www:/var/www/uri# /usr/sbin/apache2 -v
> Server version: Apache/2.2.14 (Ubuntu)
> Server built:   Apr 13 2010 20:21:26
>
> 2. *I also had a bug with MySQL* - http://bugs.mysql.com/bug.php?id=60331- I understand I need to upgrade MySQL. What is the best stable version of
> MySQL, and how do I upgrade?
>
> Thanks,
> Uri Even-Chen
> Mobile Phone: +972-50-9007559
> E-mail: uri at speedy.net
> Website: http://www.speedy.net/
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110304/42075e8d/attachment-0001.html>


More information about the Linux-il mailing list