VPS.NET Cloud Community: awellis - Viewing Profile - VPS.NET Cloud Community

Jump to content

awellis's Profile User Rating: -----

Reputation: 10 Good
Group:
Customers
Active Posts:
9 (0.01 per day)
Most Active In:
Tutorials and How-To's (3 posts)
Joined:
14-January 10
Profile Views:
595
Last Active:
User is offline Jul 06 2011 05:08 PM
Currently:
Offline

My Information

Member Title:
I Got Nodes
Age:
22 years old
Birthday:
May 30, 1989
Gender:
Not Telling Not Telling

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.1three.com/

Converted

Occupation:
PHP Developer

Topics I've Started

  1. phpMyAdmin with SuExec, how?

    05 July 2011 - 08:52 PM

    Hey there,

    I am currently running on a Debian Optimized template and have installed PHP 5.3.5, MySQL 5.1.57-1~dotdeb.0, Apahce 2.2.9. PHP is currently running with SuExec for all of my domains, and I am now in the process of trying to install phpMyAdmin and make it globally accessible through all domains by the alias "/phpmyadmin". Unfortunately, it seems SuExec does not play nicely with Aliases...

    I have added the following Alias to /etc/apache2/conf.d/phpmyadmin.conf:

    Alias /phpmyadmin /usr/local/share/phpMyAdmin
    <Directory /usr/local/share/phpMyAdmin>
            AllowOverride All
            Options -Indexes +IncludesNOEXEC +FollowSymLinks +MultiViews
            Order allow,deny
            Allow from all
    </Directory>


    Here is an example of a Virtual Host:

    <VirtualHost 206.217.197.81:80>
            SuExecUserGroup 13labs 1three
    
            ServerAdmin name@domain.com
            ServerName 13labs.net
            ServerAlias www.13labs.net admin.13labs.net
    
            DirectoryIndex index.php
            DocumentRoot /var/www/13labs.net/html/
            ErrorLog /var/www/13labs.net/logs/error.log
    
            Alias /fcgi-bin/ /var/www/13labs.net/fcgi-bin/
            AddHandler php-fastcgi .php
            AddType application/x-httpd-php .php
            Action php-fastcgi /fcgi-bin/php.fcgi
    
            <Directory /var/www/13labs.net/fcgi-bin/>
                    SetHandler fcgid-script
                    AllowOverride None
                    Options -Indexes +ExecCGI -FollowSymlinks -SymLinksIfOwnerMatch
                    Order allow,deny
                    Allow from all
            </Directory>
    
            RewriteEngine On
    
            # Remove the www alias
            RewriteCond %{HTTP_HOST} ^www\.13labs\.net$ [NC]
            RewriteRule ^(.+)$ http://13labs.net$1 [R=301,L]
    
            RewriteCond %{REQUEST_URI} ^.+$
            RewriteCond %{REQUEST_FILENAME} \.(ico|gif|jpe?g|png|js|css|swf|php|txt|pdf|xml)$ [OR]
            RewriteCond %{REQUEST_FILENAME} -f [OR]
            RewriteCond %{REQUEST_FILENAME} -d [OR]
            RewriteCond %{REQUEST_FILENAME} -l
            RewriteRule ^ - [L]  
            RewriteRule ^/mint/ - [L]
    
            RewriteRule ^(.*)$ /index.php?kohana_uri=$1 [PT,L,QSA]
    </VirtualHost>


    When I try to visit http://13labs.net/phpmyadmin I get a Kohana routing error, which means the alias is not being picked up by Apache. If I comment out the Rewrite stuff in the vHost, I get a server error. Unfortunately this server error is not logging to any of the logs that I can think off (Apache's error_log, syslog, vHost's error.log, etc.).

    I tried moving the alias into another VirtualHost so it's not tied to a specific SuExec user/group; no love.

    Next thing up I think is a permissions problem, but I'm not sure what they should be. Here is what the current permissions of the /usr/local/share/phpmyadmin directory are:

    drwxr-xr-x 9 root staff 4096 2011-07-02 21:18 phpmyadmin


    Any thoughts on what I can do to get this working would be awesome as I'm pulling my hair out trying to figure this out :)

    Best regards,
    Andrew

Friends

awellis hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    goyourside 

    01 Jul 2010 - 02:56
    Only till my natural death could I tell which of what I have been doing is right or wrong, so now I have to try to do well in everything, and then wait to die a natural death [url=http://www.uggbootuk.com]ugg boots[/url] .
Page 1 of 1