Apache owner when upload

[QUOTE=pascal;12220]
ps: suPHP works well and is really good[/QUOTE]

I agree. :slight_smile:

I just installed suPHP and I would like to implement it in the /home/interworx/etc/vhost-base.conf file but ran in to the following problem:
The line

suPHP_UserGroup <username> <username>

What should I fill in for ? I can’t use <>

This is the file so far:

<VirtualHost <<IP_ADDR>>:<<PORT>>>

  <<SUEXEC>>

  DocumentRoot <<WEBROOT>>
  ServerName <<DOMAIN>>

  ServerAlias <<ALIASES>>
  ServerAdmin webmaster@<<DOMAIN>>

  # subdomain logic
  RewriteEngine On
  RewriteOptions inherit
  RewriteCond %{HTTP_HOST} !^www\.<<ESCDOMAIN>> [NC]
  RewriteCond %{HTTP_HOST} !^<<ESCDOMAIN>> [NC]
  RewriteCond %{HTTP_HOST} ^([A-Z0-9a-z-]+)\.<<ESCDOMAIN>> [NC]
  RewriteCond %{DOCUMENT_ROOT}/%1 -d
  RewriteRule ^(.+) %{HTTP_HOST}/$1 [C]
  RewriteRule ^([0-9A-Za-z-]+)\.<<ESCDOMAIN>>/?(.*)$ %{DOCUMENT_ROOT}/$1/$2 [L]

  RewriteCond %{HTTP_HOST} ^www\.([A-Z0-9a-z-]+)\.<<ESCDOMAIN>> [NC]
  RewriteCond %{DOCUMENT_ROOT}/%1 -d
  RewriteRule ^(.+) %{HTTP_HOST}/$1 [C]
  RewriteRule ^www\.([0-9A-Za-z-]+)\.<<ESCDOMAIN>>/?(.*)$ %{DOCUMENT_ROOT}/$1/$2 [L]
  # end subdomain logic

  ErrorLog <<ERRORLOG>>
  CustomLog <<XFERLOG>> combined

 # suPHP begin
  AddType application/x-httpd-php .php
  AddHandler x-httpd-php .php
  suPHP_Engine on
  suPHP_UserGroup <username> <username>
  suPHP_ConfigPath <<WEBROOT>>
  php_admin_flag engine off
  # suPHP end

  # php_admin_flag engine On

  # cgi: <<CGISTATUS>>  don't edit between this and the "end cgi" comment below
  <Directory <<WEBROOT>>>
    suPHP_AddHandler x-httpd-php .php
    AllowOverride All
  </Directory>

  <Location />
    Options <<CGI1>>
  </Location>
  <<CGI2>>
  # end cgi

</VirtualHost>

bump :confused:

Give <UNIQNAME> a shot for the user name

Paul

HI all.
rpmbuild --rebuild --with rhe4x http://updates.interworx.com/iworx/SRPMS/experimental/suphp-0.6.0-100.iworx.src.rpm

I was try install but have some error
checking for C compiler default output file name… configure: error: C compiler cannot create executables
See `config.log’ for more details.
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.72890 (%build)

Ошибки сборки пакетов:
Неверный код возврата из /var/tmp/rpm-tmp.72890 (%build)

Hello

it is surely because you use centos5

Indeed you must set apr to apr-1-config in the spec file

Anyway, I have updated the iworx spec file to allow centos5 install + patch the suphp source to allow suPHP_AddHandler and removeHandler in a virtualhost

This way yo can set this for every virthosts

suPHP_Engine on
suPHP_UserGroup xxxxx xxxxxx
suPHP_AddHandler x-httpd-php5 .php
suPHP_AddHandler x-httpd-php .php
suPHP_ConfigPath /home/account/domain.com
SetEnv PHPRC /home/account/domain.com
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php5 .phtml
AcceptPathInfo On

And then only put in an .htaccess file

AddHandler x-httpd-php .php .php4 .php3
or
AddHandler x-httpd-php5 .php .php5

Ok here is it the updated src.rpm
Just do rpmbuild --rebuild --with cos5x suphp.src.rpm

then install it rpm -ivh /usr/src/redhat/RPMS/i386/suphp.xxx.rpm

HERE IS THE SUPHP SOURCE RPM THE LINK http://www.netiworx.com/suphp-0.6.2-100.cos5x.iworx.src.rpm
HERE IS THE SUPHP RPM LINK FOR CENTOS5 (32bits) http://www.netiworx.com/suphp-0.6.2-100.cos5x.iworx.i386.rpm

Hope this help

Paul

Indeed, the suphp srpm we had here had not yet been updated to compile on CentOS 5.

Thanks a lot :slight_smile:

Paul

Go to System Services / Webserver / PHP Integration Mode and change the PHP Mode to Php Scripts run as Siteworx user

restart Webserver

you’re done!