Page 1 of 1

Using alias for xampp parts ?

PostPosted: 12. January 2011 15:21
by Angahran
Hi,
This may be an odd question but here goes :P
I have xampp installed and running great on my usb stick.
I have made one change to the installation, I have added a new level of folders to the phpmyadmin folder.
Instead of \xampp\phpmyadmin\(files are here) I have \xampp\phpmyadmin\3.3.9\(files are here)

I have also set up an alias in httpd.conf
Alias /phpMyAdmin /xampp/phpMyAdmin/3.3.9

This lets me try out different versions of phpmyadmin easily.

What I would like to do is do the same for the other programs that are part of xampp, e.g. apache (probably not possible?), filezilla, mercurymail, mysql, etc.

The mysql is probably the one I would most like to get working.

Would it be possible to do this the same way as I did for phpmyadmin ?

I tried to find if there was some general xampp configuration file that gave the locations of all the components but I couldn't find anything.

Thanks in advance for any help, advice, suggestions.

Re: Using alias for xampp parts ?

PostPosted: 12. January 2011 15:36
by Nobbie
Angahran wrote:I tried to find if there was some general xampp configuration file that gave the locations of all the components but I couldn't find anything.


Because there is no "general Xampp configuration".

The ALIAS directice is an Apache configuration directive and has NOTHING to do with Phpmyadmin (Phpmyadmin runs under Apache, therefore you could us ALIAS). There is nothing similar for the other tools and no general configuration.

Re: Using alias for xampp parts ?

PostPosted: 12. January 2011 17:00
by Angahran
So no way to modify the folders the components are in ?
Everything has to be directly under \xampp\ ?

Oh well, the phpmyadmin was the major one I wanted the various versions for and I have that working.

Thanks.

Re: Using alias for xampp parts ?

PostPosted: 13. January 2011 03:46
by Angahran
Found one glitch :(

The Xampp security page gives phpmyadmin a status of 'Unknown' and states "PhpMyAdmin: Could not find the 'config.inc.php' ..."
So apparently it's not using the alias I have setup.

It looks like this line in securefunctions.php is the problem:

Code: Select all
$phpmyadminconf = $partwampp."\phpmyadmin\\".$configinc;


I'm just starting to poke around with php so I don't know if this is possible or not.
I already have the alias set for /phpmyadmin = /phpmyadmin/3.3.9

Is there any way for php to reference this alias so that $phpmyadminconf would look in the correct folder depending on the value of the alias ?

Thanks in advance.

Re: Using alias for xampp parts ?

PostPosted: 13. January 2011 04:00
by Sharley
Angahran wrote:I have also set up an alias in httpd.conf...
You are aware that \xampp\apache\conf\extra\httpd-xampp.conf file is the correct location for your Alias directives as the entries in this file are read after the httpd.conf file and will override the httpd.conf content.
There is already a phpMyAdmin Alias in this httpd-xampp.conf which could be overriding your entry in the httpd.conf file.

Re: Using alias for xampp parts ?

PostPosted: 13. January 2011 05:04
by Angahran
Sharley wrote:You are aware that \xampp\apache\conf\extra\httpd-xampp.conf file is the correct location for your Alias directives as the entries in this file are read after the httpd.conf file and will override the httpd.conf content.


I am now, and I obviously was in the past because I edited the alias in that file from \phpmyadmin to \phpmyadmin\3.3.9
I've removed the duplicate alias from httpd.conf

Everything seems to work fine except the xampp security page since it's got a hardcoded location for phpmyadmin.