Current time: 04-20-2024, 07:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with +FollowSymLinks and phpMyAdmin
Author Message
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #1
Question Problem with +FollowSymLinks and phpMyAdmin
I have the following error message in my /var/log/apache2/error.log :

Quote:[Sat Apr 05 00:50:22 2008] [alert] [client ::1] /var/www/phpmyadmin/.htaccess: Option FollowSymLinks not allowed here

and my /var/www/phpmyadmin/.htaccess looks like this:

Code:
DirectoryIndex index.php
Options +FollowSymLinks -Indexes

<IfModule mod_mime.c>
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .
    </IfModule>
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .
    </IfModule>
    <IfModule !mod_php4.c>
    <IfModule !mod_php5.c>
    <IfModule !mod_fastcgi.c>
    <IfModule !mod_fcgid.c>
    <IfModule mod_actions.c>
    <IfModule mod_cgi.c>
        AddType application/x-httpd-php .php

        Action application/x-httpd-php /cgi-bin/php
    </IfModule>
    <IfModule mod_cgid.c>
        AddType application/x-httpd-php .php

        Action application/x-httpd-php /cgi-bin/php
    </IfModule>
    </IfModule>
    </IfModule>
    </IfModule>
    </IfModule>
    </IfModule>
</IfModule>

# Deny config.inc.php file
<Files config.inc.php>
    Order deny,allow
    Deny from all
</Files>
    
# Authorize for setup
<Files setup.php>
    # For Apache 1.3 and 2.0
    <IfModule mod_auth.c>
    AuthType Basic
    AuthName "phpMyAdmin Setup"
    AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    # For Apache 2.2
    <IfModule mod_authn_file.c>
    AuthType Basic
    AuthName "phpMyAdmin Setup"
    AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    Require valid-user
</Files>

Should I delete the "+FollowSymLinks" at the beginning?
Thanks in advance.
(This post was last modified: 04-05-2008 07:50 PM by DaSilva.)
04-05-2008 08:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem with +FollowSymLinks and phpMyAdmin
either comment/deactivate the FollowSymLink in this file
or allow it in the apache configuration....
04-05-2008 09:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #3
RE: Problem with +FollowSymLinks and phpMyAdmin
So it is not important isn't it?

EDIT: I have deleted it and I now get this error:

Quote:[Sat Apr 05 11:41:52 2008] [alert] [client ::1] /var/www/phpmyadmin/.htaccess: Option Indexes not allowed here

Now my question is: How can I allow these options?
I think I must change something in this part of the 00_master.conf:

Code:
<Directory /var/www/ispcp/gui/tools/pma>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/master/
        ScriptAlias /php5/ /var/www/fcgi/master/
        <Directory "/var/www/fcgi/master">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

but I don't know what.
Thanks for help.
(This post was last modified: 04-05-2008 07:49 PM by DaSilva.)
04-05-2008 07:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem with +FollowSymLinks and phpMyAdmin
Where did you configure the path "/var/www/phpmyadmin/" in apache? or: why don't you use the built in pma?

http://<ispcp-servername>/pma

If you want to use your own pma, then there will be a part somewhere in the apache config where you tell apache to use this folder /var/www/phpmyadmin/ - there is the right place to either set the options directly (instead of in the .htaccess file) or allow setting different options in the .htaccess file: "AllowOverride All" (better: read the apache docu to see what's available)
04-05-2008 08:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #5
RE: Problem with +FollowSymLinks and phpMyAdmin
I am using the built in pma.
I don't know why I have this error now.
I haven't changed anything.
I only added the global subdomain "pma" in /etc/apache2/sites-available/00_master.conf .
So I posted the cotnent of that.
Is there no failure?
04-05-2008 09:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem with +FollowSymLinks and phpMyAdmin
Then I don't understand, why you use /var/www/phpmyadmin/

you may follow this guide to create subdomains for the tools:
http://www.isp-control.net/ispcp/wiki/customer_webtools

/J
04-05-2008 10:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #7
RE: Problem with +FollowSymLinks and phpMyAdmin
Ah, I see what you mean.
Now I am surprised.
I must see and check where this error message comes from.
Above you see that I used that tutorial you gave me for the global subdomain.
I don't know why . No files in /etc/apache2/sites-enabled contain that line "/var/www/phpmyadmin/".
Strange...
04-06-2008 08:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nightshark Offline
Junior Member
*

Posts: 31
Joined: Nov 2007
Reputation: 0
Post: #8
RE: Problem with +FollowSymLinks and phpMyAdmin
DaSilva Wrote:Ah, I see what you mean.
Now I am surprised.
I must see and check where this error message comes from.
Above you see that I used that tutorial you gave me for the global subdomain.
I don't know why . No files in /etc/apache2/sites-enabled contain that line "/var/www/phpmyadmin/".
Strange...

the link comes from /etc/apache2/apache2.conf -> DocumentRoot="/var/www"
08-24-2008 12:00 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: Problem with +FollowSymLinks and phpMyAdmin
Quote: AllowOverride None

Check the apache docs Wink
08-25-2008 05:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)