ispCP - Board - Support
Problem with +FollowSymLinks and phpMyAdmin - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Problem with +FollowSymLinks and phpMyAdmin (/thread-2935.html)



Problem with +FollowSymLinks and phpMyAdmin - DaSilva - 04-05-2008 08:57 AM

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.


RE: Problem with +FollowSymLinks and phpMyAdmin - joximu - 04-05-2008 09:53 AM

either comment/deactivate the FollowSymLink in this file
or allow it in the apache configuration....


RE: Problem with +FollowSymLinks and phpMyAdmin - DaSilva - 04-05-2008 07:40 PM

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.


RE: Problem with +FollowSymLinks and phpMyAdmin - joximu - 04-05-2008 08:59 PM

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)


RE: Problem with +FollowSymLinks and phpMyAdmin - DaSilva - 04-05-2008 09:19 PM

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?


RE: Problem with +FollowSymLinks and phpMyAdmin - joximu - 04-05-2008 10:34 PM

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


RE: Problem with +FollowSymLinks and phpMyAdmin - DaSilva - 04-06-2008 08:50 AM

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


RE: Problem with +FollowSymLinks and phpMyAdmin - Nightshark - 08-24-2008 12:00 AM

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"


RE: Problem with +FollowSymLinks and phpMyAdmin - kilburn - 08-25-2008 05:55 PM

Quote: AllowOverride None

Check the apache docs Wink