suexec without recompile - php-fastcgi

Discussion in 'Installation/Configuration' started by thomas80, Mar 27, 2008.

  1. thomas80

    thomas80 New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must create an admin user for that site on the User & Email tab in ISPConfig.
     
  3. thomas80

    thomas80 New Member

    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
     
  4. thomas80

    thomas80 New Member

    OK, I've grepped config.lib.php for "chown" and added 3 lines of chown .... ".php-fcgi-starter"
    and it works okay.
     

Share This Page