Using alias for xampp parts ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Using alias for xampp parts ?

Postby Angahran » 12. January 2011 15:21

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.
Angahran
 
Posts: 10
Joined: 17. July 2009 19:45

Re: Using alias for xampp parts ?

Postby Nobbie » 12. January 2011 15:36

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Using alias for xampp parts ?

Postby Angahran » 12. January 2011 17:00

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.
Angahran
 
Posts: 10
Joined: 17. July 2009 19:45

Re: Using alias for xampp parts ?

Postby Angahran » 13. January 2011 03:46

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.
Angahran
 
Posts: 10
Joined: 17. July 2009 19:45

Re: Using alias for xampp parts ?

Postby Sharley » 13. January 2011 04:00

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Using alias for xampp parts ?

Postby Angahran » 13. January 2011 05:04

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.
Angahran
 
Posts: 10
Joined: 17. July 2009 19:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 90 guests