<div dir="ltr">You should use AllowOverride option in the directory settings to be All rather then none on not existed at all.<br><br>Ido<br clear="all"><div dir="ltr">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com" target="_blank">http://www.linesip.com</a><br>
<a href="http://www.linesip.co.il" target="_blank">http://www.linesip.co.il</a><br><br></div><br>
<br><br><div class="gmail_quote">2011/3/4 Uri Even-Chen <span dir="ltr"><<a href="mailto:uri@speedy.net">uri@speedy.net</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi everyone,<br><br>1. I installed a new cloud server on <a href="http://www.speedy2000.net" target="_blank">www.speedy2000.net</a> , 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:<br>
<br>root@www:/var/www/admin# cd /var/www/admin/<br>root@www:/var/www/admin# cat .htaccess<br>AuthUserFile /etc/apache2/users/.htpasswd<br>AuthGroupFile /dev/null<br>AuthName "Protected Area"<br>AuthType Basic<br>
<br><LIMIT GET POST><br>require admin<br></LIMIT><br><br>root@www:/var/www/admin# cd /var/www/uri/<br>root@www:/var/www/uri# cat .htaccess<br><IfModule mod_rewrite.c><br>RewriteEngine On<br>RewriteBase /uri/<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>RewriteCond %{REQUEST_FILENAME} !-d<br>RewriteRule . /uri/index.php [L]<br></IfModule><br><br>--<br>currently both .htaccess files are ignored, for example <a href="http://www.speedy2000.net/uri/en/" target="_blank">http://www.speedy2000.net/uri/en/</a> is not working and <a href="http://www.speedy2000.net/admin/" target="_blank">http://www.speedy2000.net/admin/</a> is visible to everyone. How do I fix it?<br>
<br>root@www:/var/www/uri# /usr/sbin/apache2 -v<br>Server version: Apache/2.2.14 (Ubuntu)<br>Server built: Apr 13 2010 20:21:26<br><br>2. <u><b>I also had a bug with MySQL</b></u> - <a href="http://bugs.mysql.com/bug.php?id=60331" target="_blank">http://bugs.mysql.com/bug.php?id=60331</a> - I understand I need to upgrade MySQL. What is the best stable version of MySQL, and how do I upgrade?<br>
<br>Thanks,<br>Uri Even-Chen<br>Mobile Phone: +972-50-9007559<br>E-mail: <a href="mailto:uri@speedy.net" target="_blank">uri@speedy.net</a><br>Website: <a href="http://www.speedy.net/" target="_blank">http://www.speedy.net/</a><br>
</div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>