Default Owner/Group 48 48

Discussion in 'General' started by D-Spayre, Mar 20, 2012.

  1. D-Spayre

    D-Spayre New Member

    Hi,

    For some reason when I install plugins for my script the the Owner/Group is 48 48.

    The creators of the script tells me:
    You should check the PHP permission on your server, by default PHP should have the following:
    Files: 644
    Directories: 755
    Owner: username:username where username is your hosting account username.


    I have no clue what they are talking about. lol
    I'm a network guy this stuff is all new to me...:)

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ensure that you use php mode php-fcgi and that suexec is enaböed in the website.
     
  3. D-Spayre

    D-Spayre New Member

    Thanks for the reply,

    My site won't load with Fast-CGI (HTTP 500 Internal Server Error) but when I FTP in the rights have changed. :)
    How can I fix Error 500?

    Thanks again,
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log of this website, the reason for the error is logged there. The most likely reason is that some files in your website are owned by a wrong user, all files ahve to be owned by the web user and client group of this site.
     
  5. D-Spayre

    D-Spayre New Member

    HTML:
    [Wed Mar 21 07:12:31 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Fatal error:  Call to a member function registerFunction() on a non-object in /var/www/clients/client1/web5/web/includes/classes/rlHook.class.php(126) : eval()'d code on line 6
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/clients/client1/web5/web/includes/control.inc.php on line 28
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/clients/client1/web5/web/includes/control.inc.php on line 29
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/clients/client1/web5/web/includes/control.inc.php on line 46
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/clients/client1/web5/web/includes/control.inc.php on line 47
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/clients/client1/web5/web/includes/classes/reefless.class.php on line 70
    
    [Wed Mar 21 07:36:14 2012] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Fatal error:  Call to a member function registerFunction() on a non-object in /var/www/clients/client1/web5/web/includes/classes/rlHook.class.php(126) : eval()'d code on line 6
    Is this right? lol
    So I do I give the rights back to the proper user? Or how can I make sure that when I change the site to Fast-CGI the user doesn't change?

    Thanks again,
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The errors are from a problem in your php code and not a permission issue. Not sure if they are the reason for the error though. Are there no other errors in the log?

    The user has to change from apache user to the website user, thats why you have to switch to fastcgi plus suexec. Otherwise your siteruns with wrong priveliges and cant save files.

    Please post the output of:

    ls -la

    from within the web directory of that site.
     
  7. D-Spayre

    D-Spayre New Member

    Is this what your looking for? Ya gotta speak to me like I know nothing. lol:)
    Ok found this error_log, think I was looking in the wrong one before. :confused:

    HTML:
    drwx--x--- 13 web5 client1   4096 Mar 20 19:36 .
    drwxr-x--x  6 web5 client1   4096 Mar 18 12:37 ..
    drwxr-xr-x  7 web5 client1   4096 Mar 18 12:37 admin
    drwxr-xr-x  3 web5 client1   4096 Mar 18 12:37 backup
    drwxr-xr-x  2 web5 client1   4096 Mar 18 12:37 cron
    -rw-r--r--  1 web5 client1 522251 Mar 20 20:53 dump.sql
    drwxr-xr-x  2 web5 client1   4096 Mar 18 12:37 error
    -rwxr-xr--  1 web5 client1   7358 Mar 18 12:37 favicon.ico
    drwxrwxrwx  3 web5 client1   4096 Mar 18 12:37 files
    -rwxr-xr--  1 web5 client1   1335 Mar 20 19:36 .htaccess
    drwxr-xr-x  4 web5 client1   4096 Mar 18 12:37 includes
    -rwxr-xr--  1 web5 client1   1861 Mar 18 12:37 index.html
    -rw-r--r--  1 web5 client1   8248 Mar 20 20:53 index.php
    drwxr-xr-x 17 web5 client1   4096 Mar 18 12:37 libs
    drwxrwxrwx  4 web5 client1   4096 Mar 20 17:23 plugins
    -rwxr-xr--  1 web5 client1     24 Mar 18 12:37 robots.txt
    drwxr-xr-x  2 web5 client1   4096 Mar 21 00:30 stats
    drwxr-xr-x  4 web5 client1   4096 Mar 18 12:37 templates
    drwxr-xr-x  8 web5 client1   4096 Mar 20 00:24 tmp

    HTML:
    [Tue Mar 20 17:19:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:19:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:19:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:19:03 2012] [notice] Digest: done
    [Tue Mar 20 17:19:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 17:21:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:21:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:21:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:21:03 2012] [notice] Digest: done
    [Tue Mar 20 17:21:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 17:22:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:22:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:22:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:22:03 2012] [notice] Digest: done
    [Tue Mar 20 17:22:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 17:24:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:24:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:24:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:24:03 2012] [notice] Digest: done
    [Tue Mar 20 17:24:04 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 17:28:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:28:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:28:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:28:03 2012] [notice] Digest: done
    [Tue Mar 20 17:28:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 17:30:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 17:30:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 17:30:04 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 17:30:04 2012] [notice] Digest: done
    [Tue Mar 20 17:30:04 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 19:32:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 19:32:02 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 19:32:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 19:32:03 2012] [notice] Digest: done
    [Tue Mar 20 19:32:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 19:33:01 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 19:33:02 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 19:33:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 19:33:03 2012] [notice] Digest: done
    [Tue Mar 20 19:33:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 19:36:01 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 19:36:02 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 19:36:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 19:36:03 2012] [notice] Digest: done
    [Tue Mar 20 19:36:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 19:41:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 19:41:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 19:41:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 19:41:03 2012] [notice] Digest: done
    [Tue Mar 20 19:41:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    [Tue Mar 20 19:49:45 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 19:49:46 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 19:49:46 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 19:49:46 2012] [notice] Digest: done
    [Tue Mar 20 19:49:47 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    [Tue Mar 20 21:27:02 2012] [notice] caught SIGTERM, shutting down
    PHP:  syntax error, unexpected '(' in /etc/php.ini on line 481
    [Tue Mar 20 21:27:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 21:27:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 21:27:03 2012] [notice] Digest: done
    [Tue Mar 20 21:27:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    [Tue Mar 20 21:43:02 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 20 21:43:03 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Tue Mar 20 21:43:03 2012] [notice] Digest: generating secret for digest authentication ...
    [Tue Mar 20 21:43:03 2012] [notice] Digest: done
    [Tue Mar 20 21:43:03 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3 mod_ruby/1.3.0 Ruby/1.8.7(2011-06-30) mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
    Oh so confusing. lol

    Thanks Till
     

Share This Page