Hi,

sorry for this probably very simple question but I haven't been able to find 
the solution to my problem yet:
I am getting an "cannot access spool directory" error when I browse to 
http://<my_domain>/dl
So I guess something is wrong with my ownership / file permissions.

I've been following the setup document at 
http://www.thregr.org/~wavexx/software/dl/README.html But as somebody 
without real web server administration knowledge, I was unsure how to find 
out the user of my web server as in "You should then execute the provided 
SQL batch for SQLite with the same user as your web server (by using su or 
sudo if necessary)"

My setup is as follows:
CentOS 6.5, Parallels Plesk 11.5 (not sure whether this matters), Apache 
2.2.15, PHP 5.3.3

Looking into /etc/passwd, I am seeing users such as
apache:x:48:48:Apache:/var/www:/sbin/nologin
abo-admin:x:10000:503::/var/www/vhosts/<my_domain>:/bin/false

File permissions (this was setup by Parallels Plesk, I think):
$> ls -la /var/www/vhosts
...
drwx--x---  5 abo-admin psaserv 4096 13. Mai 23:24 <my_domain>
...

$> ls -la /var/www/vhosts/<my domain>
...
drwxr-xr-x  2 abo-admin psacln  4096 19. Apr 22:30 error_docs
drwxrwxr-x 12 maddox    psacln  4096 14. Mai 06:54 httpdocs
...

$> ls -la /var/spool
...
drwxrwx---  3 abo-admin psaserv 4096 14. Mai 00:42 dl
...

I've installed dl here set ownership to abo-admin:
$> ls -la /var/www/vhosts/fathomtrails.org/httpdocs/dl
-rw-r--r--  1 abo-admin psaserv  543 13. Mai 22:06 admin.php
-rw-r--r--  1 abo-admin psaserv   96 13. Mai 22:05 d.php
drwxr-xr-x  5 abo-admin psaserv 4096 13. Mai 22:15 include
-rw-r--r--  1 abo-admin psaserv  292 13. Mai 22:05 index.php
-rw-r--r--  1 abo-admin psaserv 1759 13. Mai 22:05 rest.php
-rw-r--r--  1 abo-admin psaserv   26 13. Mai 22:05 robots.txt
drwxr-xr-x  3 abo-admin psaserv 4096 13. Mai 22:05 static
drwxr-xr-x  4 abo-admin psaserv 4096 13. Mai 22:05 style

Following the rest of the setup document, I tried to run the sqlite3 and php 
useradmin.php commands as abo-admin (had to change login first with "chsh -
s" to enable this) like this: 
$> su - abo-admin
$> sqlite3 data.sdb < 
/var/www/vhosts/<my_domain>/httpdocs/dl/include/scripts/db/sqlite.sql


Can anybody help me?

Thanks!





Reply via email to