You are not logged in.
Hi everyone!
I was following the instructions from the wiki: http://wiki.archlinux.org/index.php/Xam … _directory
So I edited the /opt/lampp/etc/httpd.conf file.
327 Alias /testing /home/fourreux/PHP/
328 <directory /home/fourreux/PHP/>
329 AllowOverride FileInfo Limit Options Indexes
330 Order allow,deny
331 Allow from all
332 </directory>
But when I put a simple index.php file in there I cannot open it (via: http://localhost/testing/index.php)
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Sun 10 Oct 2010 11:34:04 AM CEST
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
So it's definitely there, but the permissions are wrong ...
In /home/fourreux/PHP/
-rw-r--r-- 1 fourreux users 113 Oct 10 11:33 index.php
When I put that same index.php in /opt/lampp/htdocs/ it's displayed correctly (via http://localhost/index.php).
In /opt/lampp/htdocs/
-rw-r--r-- 1 root root 113 Oct 10 11:17 index.php
Actually I would expect the opposite!?! But this doesn't help, coz if I change permissions I get the same result, so the problem has to do with that httpd.conf file, it seems to me ...
Thanx for your precious time!
Last edited by fourreux (2010-10-15 06:43:18)
Offline
ls -l /home:
drwx------ 51 fourreux users 4096 Oct 12 21:42 fourreux
ls -l /home/fourreux:
drwxr-xr-x
for the other question ... I'm not sure, where to look for
processes from ps aux
root 9330 0.1 0.8 51176 18104 ? Ss 17:40 0:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
root 9349 0.0 0.0 4744 1476 pts/0 S 17:40 0:00 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/opt/lampp/var/mysql/nox.pid
nobody 9476 0.0 1.1 126672 23100 pts/0 Sl 17:40 0:00 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --user=nobody --log-error=/opt/lampp/var/mysql/nox.err --pid-file=/opt/lampp/var/mysql/nox.pid --socket=/opt/lampp/var/mysql/mysql.sock --port=3306
Offline
Well, there's the following on "grep httpd" on "ps aux":
root 9330 0.0 0.8 51176 17960 ? Ss Oct14 0:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 9478 0.0 0.5 47532 12360 ? S Oct14 0:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
and some more error_log messages
and I'm startig the whole thing with: sudo /opt/lampp/lampp start
and in the error_log it says:
[Fri Oct 15 00:37:54 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /testing/index.php denied
Last edited by fourreux (2010-10-14 22:46:32)
Offline
ok the problem is that the user nobody doesn't have permission to get into and traverse you home directory.
chmod o+x /home/fourreux should do the trick. It won't let "other/world" read your files, just let them go through the folder to get to other folders/files (as long as they have permissions)
Execute permission. In the case of a regular file, this means you can execute the file as a program or a shell script. On a directory, the execute permission (also called the "search bit") allows you to access files in the directory and enter it, with the cd command, for example. However, note that although the execute bit lets you enter the directory, you're not allowed to list its contents, unless you also have the read permissions to that directory.
Offline
Great!!! Works fine now. Many Thanx!!!
:-)
Offline