CHANGE DOCUMENT ROOT wont work

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

CHANGE DOCUMENT ROOT wont work

Postby N0000BIE » 18. November 2003 10:56

HELLO I WAS WONDERING WHY THIS POPS UP

Not Found

The requested URL /xampp/ was not found on this server.

AFTER I MOVED THE FOLDER TO THE FOLDER I WANTED, THEN EDITED HTTPD.CONF, ALSO TRIED HIGHPERFORMANCE.CONF, AND THE -STD VARIANTS, OFFCOURSE RESTARTED XAMPP NUMEROUS TIMES.
nothing helped

THEN I LOOKED AT SOME FILE WITH MY FAVORITE vi

if test ! -f /opt/lampp/htdocs/xampp/lang.tmp
then
#$de && echo -n "de" > /opt/lampp/htdocs/xampp/lang.tmp
#$de || echo -n "en" > /opt/lampp/htdocs/xampp/lang.tmp
touch /opt/lampp/htdocs/xampp/lang.tmp
chown nobody /opt/lampp/htdocs/xampp/lang.tmp
chmod 600 /opt/lampp/htdocs/xampp/lang.tmp

YOU DONT EVEN USE VARIABLES :?:
NOW I WONDER RIGHT AWAY AT HOW MANY ESSENTIONAL SPOTS YOU DIDNT USED THE DOCUMENT ROOT VARIABLE
HOW CAN THIS WORK WHEN MY DOCUMENT ROOT IS NOT THE DEFAULT THING YOU CHOOSE FOR ME :?:

WHEN I TRY TO RUN XAMPP IT SAYS:
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
Stopping XAMPP for Linux 1.4...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Stopping Apache with SSL...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Stopping MySQL...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Stopping ProFTPD...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP stopped.
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
Starting XAMPP for Linux 1.4...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Starting Apache with SSL...
Warning: DocumentRoot [/opt/lampp/htdocs] does not exist
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Starting MySQL...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
LAMPP: Starting ProFTPD...
touch: creating `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chown: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
chmod: failed to get attributes of `/opt/lampp/htdocs/xampp/lang.tmp': Onbekend bestand of map
XAMPP for Linux started.
N0000BIE
 

Postby n00000bie » 18. November 2003 10:59

FORGIVE ME FOR LOOKING UPSET BUT I JUST SPEND 3 HOURS OF MY PRECIOUS TIME FOR NOTHING
n00000bie
 

Postby n0000000bie » 18. November 2003 11:02

AND ANOTHER THING 1 AND A HALF HOUR OF IT I SPEND SEARCHING THE BOARD FOR 'DOCUMENT ROOT" BUT YO KNOW MY GERMAN TEACHERS ACCIDENTLY HAPPEN TO BE THE MOST BORING PPL EVER.
n0000000bie
 

Postby Oswald » 18. November 2003 11:08

Dear Unknown!

Yes, we know about that error in 1.4 and it will be fixed in 1.5. But thanks anyway for the information.

Simply remove the touch, chown, and chmod from the script to stop the error messages.

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby noobie » 18. November 2003 11:12

tx alot for the fast reply,

i dont mind that last error msg its just that i cant access the start.php at all because it thinks its in the /opt/blabla/htdocs map while i changed this setting in all conf files :?:
noobie
 

Postby Oswald » 18. November 2003 11:16

To change the document root you only need to change the DocumentRoot directive (line 359) and the accordingly Directory container (line 384).

This should work! If not please tell me what your DocumentRoot line contains and where do you put the start.php file.

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby Oswald » 18. November 2003 11:18

Please take also a look into /opt/lampp/logs/error_log. To get more info about the error message you get when you tried to access start.php.
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby noob » 18. November 2003 11:21

ok let me guess: i had to stop the service before i moved the htdocs folder right?


[Tue Nov 18 06:57:59 2003] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Tue Nov 18 06:58:07 2003] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 18 06:58:07 2003] [notice] Digest: done
[Tue Nov 18 06:58:08 2003] [notice] Apache/2.0.48 (Unix) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.3 DAV/2 configured -- resuming normal operations
[Tue Nov 18 08:19:46 2003] [warn] child process 7021 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 7042 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6989 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6990 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6991 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6992 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6993 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6994 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 7048 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 7021 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 7042 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6989 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6990 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6991 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6992 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6993 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 6994 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:47 2003] [warn] child process 7048 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 7021 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 7042 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6989 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6990 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6991 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6992 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6993 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 6994 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:48 2003] [warn] child process 7048 still did not exit, sending a SIGTERM
[Tue Nov 18 08:19:52 2003] [error] child process 7042 still did not exit, sending a SIGKILL
[Tue Nov 18 08:19:52 2003] [error] child process 7048 still did not exit, sending a SIGKILL
[Tue Nov 18 08:20:09 2003] [notice] caught SIGTERM, shutting down
[Tue Nov 18 08:23:51 2003] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Tue Nov 18 08:23:57 2003] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 18 08:23:57 2003] [notice] Digest: done
[Tue Nov 18 08:23:58 2003] [notice] Apache/2.0.48 (Unix) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.3 DAV/2 configured -- resuming normal operations
[Tue Nov 18 08:24:00 2003] [error] [client 192.168.0.2] Invalid method in request <80>g^A^C^A
[Tue Nov 18 08:24:00 2003] [error] [client 192.168.0.2] Invalid method in request <80>g^A^C
[Tue Nov 18 08:24:17 2003] [error] [client 192.168.0.2] Invalid method in request <80>g^A^C
[Tue Nov 18 08:25:50 2003] [warn] child process 8035 still did not exit, sending a SIGTERM
[Tue Nov 18 08:25:50 2003] [warn] child process 8037 still did not exit, sending a SIGTERM
[Tue Nov 18 08:25:50 2003] [warn] child process 8038 still did not exit, sending a SIGTERM
[Tue Nov 18 08:25:50 2003] [notice] caught SIGTERM, shutting down
[Tue Nov 18 08:26:03 2003] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Tue Nov 18 08:26:07 2003] [notice] Digest: generating secret for digest authentication ...
[Tue Nov 18 08:26:07 2003] [notice] Digest: done
[Tue Nov 18 08:26:08 2003] [notice] Apache/2.0.48 (Unix) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.3 DAV/2 configured -- resuming normal operations
[Tue Nov 18 08:26:11 2003] [error] [client 192.168.0.2] Invalid method in request <80>g^A^C^A
noob
 

Postby Oswald » 18. November 2003 11:24

Yes, after changing httpd.conf you have to restart Apache.

BTW: Invalid method in request <80>g^A^C^A looks very stange. What kind of browser do you use?
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby Guest » 18. November 2003 11:31

latest mozilla
Guest
 

Postby Guest » 18. November 2003 11:32

uh i copy pasted this from secureCRT its a SSL shell command thingi
Guest
 

404

Postby Guest » 18. November 2003 12:21

i still get a 404 error
Guest
 

Postby Guest » 18. November 2003 12:25

my document root contains
/home/Bb0y/www

(which is a samba share..)
the start.php file is in /home/Bb0y/www/xampp/start.php
Guest
 

Postby Oswald » 18. November 2003 12:30

Okay! Please access now http://<ip-of-your-server>/xampp/start.php

What is the exact error message you get?
What do you find in the last lines of your error_log file?
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby Guest » 18. November 2003 12:31

Not Found

The requested URL /xampp/start.php was not found on this server.
Guest
 

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 10 guests