Change the document root and still access XAMPP index page?

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

Change the document root and still access XAMPP index page?

Postby senorJ » 03. August 2006 13:43

Hi

I have a dual boot laptop (Windows XP and Ubuntu Linux) and need to be able to access my document root from both systems.

More info here: http://community.apachefriends.org/f/viewtopic.php?t=19450

I have managed to configure Apache in both sytems to use the same doc root (on a FAT partition) so I can see my websites no problem.

Now the problem is that I cannot access the XAMPP index page (and other services such as PHP MyAdmin) from Linux as the index page resides at:

Code: Select all
/opt/lampp/htdocs/xampp


And my new doc root on the FAT partition is at:

Code: Select all
/media/share/work/web


I assume that I will have the same issue when I boot into Windows. Is there any way around this?

Thanks
Jay
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby Wiedmann » 03. August 2006 13:56


Why not using this post for additional questions?

Now the problem is that I cannot access the XAMPP index page

You need an alias for the XAMPP demopages.

(and other services such as PHP MyAdmin)

Really?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby senorJ » 03. August 2006 15:03

Believe it or not, I haven't posted in forums much before so I guess you can consider me a forum newbie. But I can see your point now and will try not to start uneccessary threads.

I am also new to Linux and haven't needed to create aliases (yet). I will do some quick research into this and give it a go.

As for PHP MyAdmin, it was my mistake - it is still there after all !
That's just me being stupid / confused.

Thanks Again
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby Wiedmann » 03. August 2006 15:09

As for PHP MyAdmin, it was my mistake - it is still there after all !

Right, because there is an alias for phpMyAdmin... Just make the same for the XAMPP folder.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby senorJ » 03. August 2006 16:04

I know PHP MyAdmin is there because I can access it by using this link in my browser:

http://127.0.0.1/phpmyadmin/

I am having difficulty finding the alias for PHP MyAdmin and adding one for the XAMPP demo pages.

After much digging around I found the following line of code in the file: /opt/lampp/etc/extra/httpd-xampp.conf

Code: Select all
Alias /phpmyadmin "/opt/lampp/phpmyadmin"


With additional code:

Code: Select all
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>


Is this the alias you were referring to? I tried to add the line:

Code: Select all
Alias /xampp "/opt/lampp/htdocs/xampp"


With:

Code: Select all
<Directory "/opt/lampp/htdocs/xampp">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>


But this made no difference.

Does the alias need to be added to httpd.conf or httpd-xampp.conf ?

I am a relative beginner who is feeling around in the dark. Are you very busy or can you be a little more specific?

Thanks Again
Jay
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby senorJ » 03. August 2006 16:08

Hang on - I think I may have figured it out...
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

Postby senorJ » 03. August 2006 16:16

Yep, that's working now! Phew

I assume (and hope) that the code should be the same or similar for the Windows XAMPP httpd.conf file ?

Anyway, I'm off to beer garden now to unwind!

Thank you so much for your help Wiedmann - God knows I need it!
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39

How???

Postby mimine » 21. October 2006 21:18

How did you do?
mimine
 
Posts: 1
Joined: 21. October 2006 21:09

Re: How???

Postby senorJ » 23. October 2006 13:42

Well, I managed to solve the issue I was having back in August.

Why - are you trying to do something similar?
senorJ
 
Posts: 9
Joined: 02. August 2006 17:39


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 22 guests

cron