Le dimanche 18 mai 2008 à 13:36 -0500, Les Mikesell a écrit : > Sam Przyswa wrote: > > > >>> I installed BackupPC 3.1.0 (before 2.1.2 on an old machine) on new > >>> machine with Apache2 but the main script BackupPC_Admin is displayed > >>> on > >>> browser instead of be executed !? > >>> > >>> What is the right apache2 config to run BackupPC ? > >> See the docs: > >> http://backuppc.sourceforge.net/faq/BackupPC.html#step_9__cgi_interface > > > > Thanks, now BackupPC_Admin tell me that it's running with the wrong UID > > (www-data ID 33) instead of backuppc userid. > > > > I run Debian Etch with the sperl5.8.8, I set the BackupPC_Admin with uid > > and guid flag, no changes. > > > > I set my apache2 setup for BackupPC virtualhost: > > > > ------------------------------------- > > <Directory > > "/var/apache2/backuppc"> > > > > allow from all > > AuthName "Backups Externes Arial Concept" > > SetHandler > > perl-script > > > > PerlResponseHandler > > ModPerl::Registry > > > > PerlOptions +ParseHeaders > > AuthType Basic > > AuthUserFile /etc/apache2/backups_users > > > > Options +ExecCGI > > require valid-user > > order deny,allow > > # AllowOverride AuthConfig FileInfo Limit Options > > </Directory> > > ------------------------------------- > > > > But I always got the same message about the wrong userid !? > > > > I never had this problem with apache 1.33 and BPC 2.1.2 on my old Debian > > machine. > > If you configure apache to use mod_perl, the apache user and backuppc > user must be the same since mod_perl is embedded in the same process. > If you run through the cgi interface, a separate perl process is started > that can observe the suid bit and change effective users.
That mean that apache must run in backuppc user or BackupPC must run in www-data userid ? If BackupPC can run in www-data userid I will do that because I have others web sites that should run in www-data userid. Thanks for your help, but it's a strange BackupPC's feature or behavior (perhaps a bug...) Sam. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
