[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: phpmyadmin install (noob)



Le Fri, 22 Apr 2005 11:05:00 -0500, John Fleming a écrit :

>>> John Fleming wrote:
>>>
>>>> I made a symlink from /usr/share/phpmyadmin to
>>>> /home/mydefaultvirtualhost/www, but I still
>>>> can't browse www.mydomain.com/phpmyadmin. Privileges are OK. The error 
>>>> is
>>>> the generic Apache "Internal Server Error" Any ideas? Tnx! - John

> OK, here's the Apache error:
> 
> [Fri Apr 22 10:31:45 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) 
> PHP/4.3.10-10 mod_ssl/2.8.22 OpenSSL/0.9.7d configured -- resuming normal 
> operations
> [Fri Apr 22 10:31:45 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
> [Fri Apr 22 10:31:50 2005] [alert] [client 66.209.225.25] 
> /home/wa9als/www/phpmyadmin/.htaccess: DirectoryIndex not allowed here
> 
> The file .htaccess file contains near the top:
> 
> DirectoryIndex index.php
> Options +FollowSymLinks
> 
> Since it didn't like the DirectoryIndex here, I removed it, restarted 
> Apache, but I still get the same web error!  Now it doesn't like Options:
> 
> [Fri Apr 22 10:53:35 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) 
> PHP/4.3.10-10 mod_ssl/2.8.22 OpenSSL/0.9.7d configured -- resuming normal 
> operations
> [Fri Apr 22 10:53:35 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
> [Fri Apr 22 10:53:41 2005] [alert] [client 66.209.225.25] 
> /home/wa9als/www/phpmyadmin/.htaccess: Options not allowed here
> [Fri Apr 22 10:53:43 2005] [alert] [client 66.209.225.25] 
> /home/wa9als/www/phpmyadmin/.htaccess: Options not allowed here
> [Fri Apr 22 10:53:44 2005] [alert] [client 66.209.225.25] 
> /home/wa9als/www/phpmyadmin/.htaccess: Options not allowed here
> [Fri Apr 22 10:54:09 2005] [alert] [client 66.209.225.25] 
> /home/wa9als/www/phpmyadmin/.htaccess: Options not allowed here


this means .htaccess options are not allowed to override the virtual host
one. You need to set "AllowOverride All" if you want it to work in your
virtualhost( not in the htaccess , in the virtualhost conf).



> So I removed both the DirectoryIndex and Options lines, and now Apache 
> restarts without error:
> 
> [Fri Apr 22 10:58:08 2005] [notice] SIGHUP received. Attempting to restart
> [Fri Apr 22 10:58:08 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) 
> PHP/4.3.10-10 mod_ssl/2.8.22 OpenSSL/0.9.7d configured -- resuming normal 
> operations
> 


Well you could also add :
Alias  /phpmyadmin /home/wa9als/www/phpmyadmin

in /etc/apache/conf.d/phpmyadmin

though this would enable phpmyadmin on all your virtualhost.


Regards
Alban




Reply to: