Page 1 of 3

CHANGE DOCUMENT ROOT wont work

PostPosted: 18. November 2003 10:56
by N0000BIE
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.

PostPosted: 18. November 2003 10:59
by n00000bie
FORGIVE ME FOR LOOKING UPSET BUT I JUST SPEND 3 HOURS OF MY PRECIOUS TIME FOR NOTHING

PostPosted: 18. November 2003 11:02
by n0000000bie
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.

PostPosted: 18. November 2003 11:08
by Oswald
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

PostPosted: 18. November 2003 11:12
by noobie
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 :?:

PostPosted: 18. November 2003 11:16
by Oswald
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

PostPosted: 18. November 2003 11:18
by Oswald
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.

PostPosted: 18. November 2003 11:21
by noob
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

PostPosted: 18. November 2003 11:24
by Oswald
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?

PostPosted: 18. November 2003 11:31
by Guest
latest mozilla

PostPosted: 18. November 2003 11:32
by Guest
uh i copy pasted this from secureCRT its a SSL shell command thingi

404

PostPosted: 18. November 2003 12:21
by Guest
i still get a 404 error

PostPosted: 18. November 2003 12:25
by Guest
my document root contains
/home/Bb0y/www

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

PostPosted: 18. November 2003 12:30
by Oswald
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?

PostPosted: 18. November 2003 12:31
by Guest
Not Found

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