Document root in users home folders

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

Document root in users home folders

Postby sotoskawasaki » 30. March 2008 05:26

Hi, I installed Xampp 1.6.6 in Kubuntu 7.10. In my home folder(/home/sotos) I made a folder public_html. I gave full rwx permissions to that folder (777). I also made an index.html page. But when I write http://localhost/~sotos it says 404 Not found. Am I doing something wrong or this isnt working in xampp. Thank you.
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby Wiedmann » 30. March 2008 12:44

You must enable and configure the UserDir in "httpd-userdir.conf".

(http://httpd.apache.org/docs/2.2/howto/public_html.html)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby sotoskawasaki » 30. March 2008 17:27

Thank you very much I will get right on to it
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby sotoskawasaki » 30. March 2008 18:21

Problem solved. Thank you very much. I just had to enable the UserDir in httpd.conf. The module was already loaded in httpd.conf. Also it worked with no configuration in httpd-userdir.conf.

But now I have another problem. How can I connect with ftp to my public_html folder, if i put ftp://localhost/~sotos and still be able to connect to my default xampp folder (ftp://localhost)
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby sotoskawasaki » 30. March 2008 19:12

The way I think of it I have to configure proftpd.conf (or some other conf file) so that when I connect with ftp:
1) Give the username nobody and password passwd1 and connect to default xampp folder (ftp://localhost)
2) Give the username sotos and password passwd2 and connect to my public_html folder (ftp://localhost/~sotos)

Any help on how can I do this? Thank you..
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby sotoskawasaki » 02. April 2008 16:58

I found a solution to my problem. In proftpd.conf file there is a line:

"DefaultRoot /opt/lampp/htdocs"
This means that when I connect to the ftp server I will se the htdocs folder (which is default in xampp).

If I write "DefaultRoot ~" it means that when I connect to the ftp server (giving the username and password of a specific linux user acount) I wll see the home folder of that account.

The problem is that its either the first or the second. I cant use both. Does anyone know how to fix that?
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby sotoskawasaki » 05. April 2008 13:15

I didn't imagine it would be that difficult....
sotoskawasaki
 
Posts: 7
Joined: 30. March 2008 05:17

Postby skuipers » 06. April 2008 11:18

sotoskawasaki wrote:I didn't imagine it would be that difficult....

Well, it isn't a XAMPP problem, is it? Maybe you should try in a proftpd forum.
skuipers
 
Posts: 102
Joined: 21. January 2005 16:27
Location: The Netherlands


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 32 guests