SuPHP and ISPconfig

Discussion in 'Installation/Configuration' started by planet_fox, Nov 12, 2006.

Thread Status:
Not open for further replies.
  1. planet_fox

    planet_fox Member HowtoForge Supporter

    ok, I have this understand this with apache and apache2 .

    Code:
    Fine tuning of the installation directories:
      --bindir=DIR           user executables [EPREFIX/bin]
      --sbindir=DIR          system admin executables [EPREFIX/sbin]
      --libexecdir=DIR       program executables [EPREFIX/libexec]
      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
      --libdir=DIR           object code libraries [EPREFIX/lib]
      --includedir=DIR       C header files [PREFIX/include]
      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
      --infodir=DIR          info documentation [PREFIX/info]
      --mandir=DIR           man documentation [PREFIX/man]
    
    Must I somthing do for debian with ispconfig do with this parameters?

    --bindir=DIR
    --sbindir=DIR
    --libexecdir=DIR
    --datadir=DIR
     
  2. falko

    falko Super Moderator Howtoforge Staff

    No, that's not necessary.
     
  3. planet_fox

    planet_fox Member HowtoForge Supporter

    ok i must nothing do . Apache do running and php do not work
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your logs?
     
  5. planet_fox

    planet_fox Member HowtoForge Supporter

    yes here can you see

    Code:
    [Wed Dec 13 02:32:45 2006] [error] [client 82.135.4.3] Invalid method in request \x16\x03\x01
    [Wed Dec 13 02:33:22 2006] [error] [client 66.249.65.47] File does not exist: /var/www/index2.php
    [Wed Dec 13 02:34:55 2006] [error] [client 66.249.65.47] File does not exist: /var/www/coppermine
    [Wed Dec 13 02:34:55 2006] [error] [client 66.249.65.47] File does not exist: /var/www/coppermine
    [Wed Dec 13 02:35:00 2006] [error] [client 84.145.0.197] File does not exist: /var/www/favicon.ico
    [Wed Dec 13 02:36:01 2006] [notice] caught SIGTERM, shutting down
    [Wed Dec 13 02:36:02 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    [Wed Dec 13 02:36:02 2006] [notice] Apache configured -- resuming normal operations
    [Wed Dec 13 02:36:27 2006] [error] [client 82.135.4.3] Invalid method in request \x16\x03\x01
    [Wed Dec 13 02:36:47 2006] [error] [client 82.135.4.3] Invalid method in request \x16\x03\x01
    [Wed Dec 13 02:39:14 2006] [notice] caught SIGTERM, shutting down
    [Wed Dec 13 02:41:28 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    [Wed Dec 13 02:41:28 2006] [notice] Apache configured -- resuming normal operations
    [Wed Dec 13 02:41:47 2006] [error] [client 82.135.4.3] Invalid method in request \x16\x03\x01
    [Wed Dec 13 02:54:40 2006] [notice] caught SIGTERM, shutting down
    [Wed Dec 13 02:54:42 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    [Wed Dec 13 02:54:42 2006] [notice] Apache configured -- resuming normal operations
    [Wed Dec 13 03:05:34 2006] [notice] Graceful restart requested, doing restart
    [Wed Dec 13 03:05:34 2006] [notice] Apache configured -- resuming normal operations
    [Wed Dec 13 03:05:34 2006] [warn] long lost child came home! (pid 31914)
    [Wed Dec 13 03:05:46 2006] [notice] caught SIGTERM, shutting down
    [Wed Dec 13 03:05:47 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec2)
    [Wed Dec 13 03:05:48 2006] [notice] Apache configured -- resuming normal operations
    
    
    Code:
    [Wed Dec 13 03:12:33 2006] [warn] File "/home/times/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:12:36 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:12:42 2006] [warn] File "/home/www/web9/web/index.php" is writeable by group
    [Wed Dec 13 03:12:48 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:12:50 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:13:06 2006] [warn] File "/home/www/web9/web/coppermine/displayimage.php" is writeable by group
    [Wed Dec 13 03:14:57 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:14:59 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:15:00 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:15:01 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:15:01 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:15:08 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:15:33 2006] [warn] File "/home/www/web9/web/coppermine/displayimage.php" is writeable by group
    [Wed Dec 13 03:15:46 2006] [warn] File "/home/www/web21/web/petition.php" is writeable by group
    [Wed Dec 13 03:16:00 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:16:02 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:16:03 2006] [warn] File "/home/www/web40/web/info.php" is writeable by group
    [Wed Dec 13 03:16:20 2006] [warn] File "/home/www/web40/web/info.php4" is writeable by group
    [Wed Dec 13 03:17:45 2006] [warn] File "/home/www/web9/web/index.php" is writeable by group
    [Wed Dec 13 03:18:04 2006] [warn] File "/home/www/web9/web/coppermine/thumbnails.php" is writeable by group
    [Wed Dec 13 03:21:04 2006] [warn] File "/home/times/web11/web/index.php" is writeable by group
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. planet_fox

    planet_fox Member HowtoForge Supporter

    ok sorry for this idot question "how can I disable the group writable"
    on the compile command ?
     
  8. planet_fox

    planet_fox Member HowtoForge Supporter

    This is my suphp.conf

    Code:
    [global]
    ;Path to logfile
    logfile=/var/log/suphp.log
    
    ;Loglevel
    loglevel=info
    
    ;User Apache is running as
    webserver_user=www-data
    
    ;Path all scripts have to be in
    docroot=/
    
    ;Path to chroot() to before executing script
    ;chroot=/mychroot
    
    ; Security options
    allow_file_group_writeable=false
    allow_file_others_writeable=false
    allow_directory_group_writeable=false
    allow_directory_others_writeable=false
    
    ;Check wheter script is within DOCUMENT_ROOT
    check_vhost_docroot=true
    
    ;Send minor error messages to browser
    errors_to_browser=false
    
    ;PATH environment variable
    env_path=/bin:/usr/bin
    
    ;Umask to set, specify in octal notation
    umask=0077
    
    ; Minimum UID
    min_uid=100
    
    ; Minimum GID
    min_gid=100
    
    
    [handlers]
    ;Handler for php-scripts
    x-httpd-php=php:/usr/bin/php
    
    ;Handler for CGI-scripts
    x-suphp-cgi=execute:!self
    
    Must here change on this line ?

    ; Security options
    allow_file_group_writeable=false
    allow_file_others_writeable=false
    allow_directory_group_writeable=false
    allow_directory_others_writeable=false

    ;Check wheter script is within DOCUMENT_ROOT
    check_vhost_docroot=true
     
  9. falko

    falko Super Moderator Howtoforge Staff

    You can either chmod your group writeable files, or you set
    Code:
    allow_file_group_writeable=true
    in your suphp.conf.
     
  10. planet_fox

    planet_fox Member HowtoForge Supporter

    Thanks thats is the error. I have solve the Problem. Just beginn new Problem
    I must for some webs set a ph.ini for globals on ..... . How I can do with ISP_ config . I have say it gives for suphp this suPHP_ConfigPath . How can I use with ISp Config.

    Thanks and good night
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    When you add the config path directive to the apache directives field of the website, it will be parsed in the vhost configuration file.
     
  12. planet_fox

    planet_fox Member HowtoForge Supporter

    Ok, I musst same doing than yaesterday with php_admin_flags. I must in
    in Apache directive in Isp Config this set

    suPHP_Config /path/to/server/confi <-- is from suphp website

    When I Copy php.ini in /home/www/web1/phpini/php.ini

    must I set

    suPHP_Config /home/www/web1/phpini/php.ini

    is this korect ? and whats permission musst I set for php.ini ?

    Thanks
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks fine. Chown the php.ini to the web admin user and it must be readable for this user.
     
  14. planet_fox

    planet_fox Member HowtoForge Supporter

    ok I do later update isp_config and do testing. I do have lots of learn here about linux. on first time I have hate this forum when I have type english words in key and on this time I have fun. SO we close the thread 4 sites to much when a other search for a problem with install suphp :) .

    Best Regards
     
Thread Status:
Not open for further replies.

Share This Page