PDA

View Full Version : suexec without recompile - php-fastcgi


thomas80
27th March 2008, 19:09
Hi!
another problem Im facing with:
I'm trying to use php with fast-cgi, according to one of the howto I found on this page.
however, I was too lazy/whatever to recompile suexec, so that it does not check the owner of the starter script. however, if i add a new domain to ispconfig, the owner of this file is root.webXX, so I had to change the owner manually after.

what is the elegant way for setting the owner of this file to the actual VirtualHost User on the fly?

thanks in advance,
Tamas

falko
28th March 2008, 15:33
You must create an admin user for that site on the User & Email tab in ISPConfig.

thomas80
2nd April 2008, 10:38
hi falko,

I've created a fresh new website, and added an administrator to it.

however, not all the files were chown-ed to the admin user, see below:
(admin user is: web27_zse). I need the php-fcgi-starter to have
web27_zse.web27 ownership.
Where are these files specified, which to chown when an administrator is added? Config.lib.php maybe?

Thx !

T.

drwxr-xr-x 8 web27_zse web27 4096 2008-04-02 09:36 .
drwxr-xr-x 25 root root 4096 2008-04-02 09:36 ..
drwxr-xr-x 2 web27_zse web27 4096 2008-04-02 09:36 cgi-bin
-rw------- 1 web27_zse web27 24 2008-04-02 09:36 .forward
drwxr-xr-x 2 web27_zse web27 4096 2008-04-02 09:36 log
lrwxrwxrwx 1 root root 38 2008-04-02 09:36 Maildir -> /home/www/web27/user/web27_zse/Maildir
-rwxr-xr-x 1 root web27 114 2008-03-04 08:31 php-fcgi-starter
drwxrwxrwx 2 www-data web27 4096 2008-04-02 09:36 phptmp
-rw-r--r-- 1 root root 464 2008-04-02 09:36 .procmailrc
lrwxrwxrwx 1 root root 45 2008-04-02 09:36 .spamassassin -> /home/www/web27/user/web27_zse/.spamassassin/
drwxr-xr-x 2 web27_zse web27 4096 2008-04-02 09:36 ssl
drwxr-xr-x 3 web27_zse web27 4096 2008-04-02 09:36 user
lrwxrwxrwx 1 root root 46 2008-04-02 09:36 .vacation.cache -> /home/www/web27/user/web27_zse/.vacation.cache
drwxrwxr-x 3 web27_zse web27 4096 2008-04-02 09:36 web

thomas80
2nd April 2008, 12:30
OK, I've grepped config.lib.php for "chown" and added 3 lines of chown .... ".php-fcgi-starter"
and it works okay.