Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Keith G. Murphy" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" Sent: 15 July, 2003 12:41 AM Subject: Re: cgi-bin directory under home/user/public_html > Jason Lim wrote: > > > - Original Message - > > From: "Nestor R. Mazza" <[EMAIL PROTECTED]> > > To: "DEBIAN debian-isp" > > Sent: 13 July, 2003 11:06 PM > > Subject: cgi-bin directory under home/user/public_html > > > > > > Hi > > > > My server is > > Debian Woody 3.0r1 > > Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 > > > > All the scripts works fine under original directories but now I want to > > put the user's scripts under /home/user/public_html/cgi-bin ... > > > > At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the > > same script that works fine under /usr/lib/cgi-bin > > > > I have red the Apache Documentation but until today I couldn't get to > > works fine ... > > > > Apache documentation says > > > > There are many ways to give each user directory a cgi-bin directory such > > that anything requested as http://example.com/~user/cgi-bin/program will > > be executed as a CGI script. Two alternatives are: > > > > 1.. Place the cgi-bin directory next to the public_html directory: > > ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 > > 2.. Place the cgi-bin directory underneath the public_html directory: > > > > Options ExecCGI > > SetHandler cgi-script > > > > If you are using suexec, the first technique will not work because CGI > > scripts must be stored under the public_html directory. > > > > I have used the second option under the virtualhost of the user > > > > # > > # Dominio bodegonweb.com.ar > > # > > > > > > ServerAdmin [EMAIL PROTECTED] > > ServerName www.bodegonweb.com.ar > > DocumentRoot /home/bodegonweb/public_html > > > > Options ExecCGI > > SetHandler cgi-script > > > > > > #ErrorLog logs/host.some_domain.com-error.log > > #CustomLog logs/host.some_domain.com-access.log common > > > > > > > > == > > Unfortunately, if you want to use suexec, you'll need to recompile it to > > allow /home/*/public_html/cgi-bin/ otherwise it won't run. > > > Really? I have found that Woody's apache-perl package does this fine > "out of the box". Unless I'm really missing something. > > Nestor, give us some error log output to go on, please. I agree... some error log output would help, but regarding apache-perl or mod_perl, it actually runs under the Apache user/group id unless there is something really new I don't know about. Are you absolutely sure that the scripts you run, are run as the user's own user and group ID, and not the Apache one? Jas
Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Peter An. Zyumbilev" <[EMAIL PROTECTED]> To: "Jason Lim" <[EMAIL PROTECTED]> Sent: 14 July, 2003 2:56 AM Subject: RE: cgi-bin directory under home/user/public_html > Have you tried adding this ? > > AddHandler cgi-script .pl > > BIVOL Yes, that would work if you don't mind having the scripts running under the Apache user/group. If you want to run under the user through SUEXEC, you need to recompile SUEXEC. There is no quick way around it, unfortunately. > > > > -Original Message- > > From: Jason Lim [mailto:[EMAIL PROTECTED] > > Sent: Sunday, July 13, 2003 9:19 PM > > To: Nestor R. Mazza; DEBIAN debian-isp > > Subject: Re: cgi-bin directory under home/user/public_html > > > > > > > > - Original Message - > > From: "Nestor R. Mazza" <[EMAIL PROTECTED]> > > To: "DEBIAN debian-isp" > > Sent: 13 July, 2003 11:06 PM > > Subject: cgi-bin directory under home/user/public_html > > > > > > Hi > > > > My server is > > Debian Woody 3.0r1 > > Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 > > > > All the scripts works fine under original directories but now I want to > > put the user's scripts under /home/user/public_html/cgi-bin ... > > > > At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the > > same script that works fine under /usr/lib/cgi-bin > > > > I have red the Apache Documentation but until today I couldn't get to > > works fine ... > > > > Apache documentation says > > > > There are many ways to give each user directory a cgi-bin directory such > > that anything requested as http://example.com/~user/cgi-bin/program will > > be executed as a CGI script. Two alternatives are: > > > > 1.. Place the cgi-bin directory next to the public_html directory: > > ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 > > 2.. Place the cgi-bin directory underneath the public_html directory: > > > > Options ExecCGI > > SetHandler cgi-script > > > > If you are using suexec, the first technique will not work because CGI > > scripts must be stored under the public_html directory. > > > > I have used the second option under the virtualhost of the user > > > > # > > # Dominio bodegonweb.com.ar > > # > > > > > > ServerAdmin [EMAIL PROTECTED] > > ServerName www.bodegonweb.com.ar > > DocumentRoot /home/bodegonweb/public_html > > > > Options ExecCGI > > SetHandler cgi-script > > > > > > #ErrorLog logs/host.some_domain.com-error.log > > #CustomLog logs/host.some_domain.com-access.log common > > > > > > > > == > > Unfortunately, if you want to use suexec, you'll need to recompile it to > > allow /home/*/public_html/cgi-bin/ otherwise it won't run. > > > > There are docs on this common issue. Google is your friend. > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > >
Re: cgi-bin directory under home/user/public_html
Jason Lim wrote: - Original Message - From: "Nestor R. Mazza" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" Sent: 13 July, 2003 11:06 PM Subject: cgi-bin directory under home/user/public_html Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: 1.. Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 2.. Place the cgi-bin directory underneath the public_html directory: Options ExecCGI SetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user # # Dominio bodegonweb.com.ar # ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGI SetHandler cgi-script #ErrorLog logs/host.some_domain.com-error.log #CustomLog logs/host.some_domain.com-access.log common == Unfortunately, if you want to use suexec, you'll need to recompile it to allow /home/*/public_html/cgi-bin/ otherwise it won't run. Really? I have found that Woody's apache-perl package does this fine "out of the box". Unless I'm really missing something. Nestor, give us some error log output to go on, please.
Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Keith G. Murphy" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" <[EMAIL PROTECTED]> Sent: 15 July, 2003 12:41 AM Subject: Re: cgi-bin directory under home/user/public_html > Jason Lim wrote: > > > - Original Message - > > From: "Nestor R. Mazza" <[EMAIL PROTECTED]> > > To: "DEBIAN debian-isp" <[EMAIL PROTECTED]> > > Sent: 13 July, 2003 11:06 PM > > Subject: cgi-bin directory under home/user/public_html > > > > > > Hi > > > > My server is > > Debian Woody 3.0r1 > > Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 > > > > All the scripts works fine under original directories but now I want to > > put the user's scripts under /home/user/public_html/cgi-bin ... > > > > At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the > > same script that works fine under /usr/lib/cgi-bin > > > > I have red the Apache Documentation but until today I couldn't get to > > works fine ... > > > > Apache documentation says > > > > There are many ways to give each user directory a cgi-bin directory such > > that anything requested as http://example.com/~user/cgi-bin/program will > > be executed as a CGI script. Two alternatives are: > > > > 1.. Place the cgi-bin directory next to the public_html directory: > > ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 > > 2.. Place the cgi-bin directory underneath the public_html directory: > > > > Options ExecCGI > > SetHandler cgi-script > > > > If you are using suexec, the first technique will not work because CGI > > scripts must be stored under the public_html directory. > > > > I have used the second option under the virtualhost of the user > > > > # > > # Dominio bodegonweb.com.ar > > # > > > > > > ServerAdmin [EMAIL PROTECTED] > > ServerName www.bodegonweb.com.ar > > DocumentRoot /home/bodegonweb/public_html > > > > Options ExecCGI > > SetHandler cgi-script > > > > > > #ErrorLog logs/host.some_domain.com-error.log > > #CustomLog logs/host.some_domain.com-access.log common > > > > > > > > == > > Unfortunately, if you want to use suexec, you'll need to recompile it to > > allow /home/*/public_html/cgi-bin/ otherwise it won't run. > > > Really? I have found that Woody's apache-perl package does this fine > "out of the box". Unless I'm really missing something. > > Nestor, give us some error log output to go on, please. I agree... some error log output would help, but regarding apache-perl or mod_perl, it actually runs under the Apache user/group id unless there is something really new I don't know about. Are you absolutely sure that the scripts you run, are run as the user's own user and group ID, and not the Apache one? Jas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Peter An. Zyumbilev" <[EMAIL PROTECTED]> To: "Jason Lim" <[EMAIL PROTECTED]> Sent: 14 July, 2003 2:56 AM Subject: RE: cgi-bin directory under home/user/public_html > Have you tried adding this ? > > AddHandler cgi-script .pl > > BIVOL Yes, that would work if you don't mind having the scripts running under the Apache user/group. If you want to run under the user through SUEXEC, you need to recompile SUEXEC. There is no quick way around it, unfortunately. > > > > -Original Message- > > From: Jason Lim [mailto:[EMAIL PROTECTED] > > Sent: Sunday, July 13, 2003 9:19 PM > > To: Nestor R. Mazza; DEBIAN debian-isp > > Subject: Re: cgi-bin directory under home/user/public_html > > > > > > > > - Original Message - > > From: "Nestor R. Mazza" <[EMAIL PROTECTED]> > > To: "DEBIAN debian-isp" <[EMAIL PROTECTED]> > > Sent: 13 July, 2003 11:06 PM > > Subject: cgi-bin directory under home/user/public_html > > > > > > Hi > > > > My server is > > Debian Woody 3.0r1 > > Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 > > > > All the scripts works fine under original directories but now I want to > > put the user's scripts under /home/user/public_html/cgi-bin ... > > > > At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the > > same script that works fine under /usr/lib/cgi-bin > > > > I have red the Apache Documentation but until today I couldn't get to > > works fine ... > > > > Apache documentation says > > > > There are many ways to give each user directory a cgi-bin directory such > > that anything requested as http://example.com/~user/cgi-bin/program will > > be executed as a CGI script. Two alternatives are: > > > > 1.. Place the cgi-bin directory next to the public_html directory: > > ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 > > 2.. Place the cgi-bin directory underneath the public_html directory: > > > > Options ExecCGI > > SetHandler cgi-script > > > > If you are using suexec, the first technique will not work because CGI > > scripts must be stored under the public_html directory. > > > > I have used the second option under the virtualhost of the user > > > > # > > # Dominio bodegonweb.com.ar > > # > > > > > > ServerAdmin [EMAIL PROTECTED] > > ServerName www.bodegonweb.com.ar > > DocumentRoot /home/bodegonweb/public_html > > > > Options ExecCGI > > SetHandler cgi-script > > > > > > #ErrorLog logs/host.some_domain.com-error.log > > #CustomLog logs/host.some_domain.com-access.log common > > > > > > > > == > > Unfortunately, if you want to use suexec, you'll need to recompile it to > > allow /home/*/public_html/cgi-bin/ otherwise it won't run. > > > > There are docs on this common issue. Google is your friend. > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cgi-bin directory under home/user/public_html
Jason Lim wrote: - Original Message - From: "Nestor R. Mazza" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" <[EMAIL PROTECTED]> Sent: 13 July, 2003 11:06 PM Subject: cgi-bin directory under home/user/public_html Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: 1.. Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 2.. Place the cgi-bin directory underneath the public_html directory: Options ExecCGI SetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user # # Dominio bodegonweb.com.ar # ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGI SetHandler cgi-script #ErrorLog logs/host.some_domain.com-error.log #CustomLog logs/host.some_domain.com-access.log common == Unfortunately, if you want to use suexec, you'll need to recompile it to allow /home/*/public_html/cgi-bin/ otherwise it won't run. Really? I have found that Woody's apache-perl package does this fine "out of the box". Unless I'm really missing something. Nestor, give us some error log output to go on, please. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Nestor R. Mazza" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" Sent: 13 July, 2003 11:06 PM Subject: cgi-bin directory under home/user/public_html Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: 1.. Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 2.. Place the cgi-bin directory underneath the public_html directory: Options ExecCGI SetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user # # Dominio bodegonweb.com.ar # ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGI SetHandler cgi-script #ErrorLog logs/host.some_domain.com-error.log #CustomLog logs/host.some_domain.com-access.log common == Unfortunately, if you want to use suexec, you'll need to recompile it to allow /home/*/public_html/cgi-bin/ otherwise it won't run. There are docs on this common issue. Google is your friend.
Re: cgi-bin directory under home/user/public_html
- Original Message - From: "Nestor R. Mazza" <[EMAIL PROTECTED]> To: "DEBIAN debian-isp" <[EMAIL PROTECTED]> Sent: 13 July, 2003 11:06 PM Subject: cgi-bin directory under home/user/public_html Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: 1.. Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 2.. Place the cgi-bin directory underneath the public_html directory: Options ExecCGI SetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user # # Dominio bodegonweb.com.ar # ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGI SetHandler cgi-script #ErrorLog logs/host.some_domain.com-error.log #CustomLog logs/host.some_domain.com-access.log common == Unfortunately, if you want to use suexec, you'll need to recompile it to allow /home/*/public_html/cgi-bin/ otherwise it won't run. There are docs on this common issue. Google is your friend. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cgi-bin directory under home/user/public_html
Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 Place the cgi-bin directory underneath the public_html directory: Options ExecCGISetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user ## Dominio bodegonweb.com.ar# ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGISetHandler cgi-script # ErrorLog logs/host.some_domain.com-error.log# CustomLog logs/host.some_domain.com-access.log common I'll apprecite your cooperation Regards Nestor Mazza [EMAIL PROTECTED]
cgi-bin directory under home/user/public_html
Hi My server is Debian Woody 3.0r1 Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26 All the scripts works fine under original directories but now I want to put the user's scripts under /home/user/public_html/cgi-bin ... At first I put /home/bodegonweb/public_html/cgi-bin/test-cgi the same script that works fine under /usr/lib/cgi-bin I have red the Apache Documentation but until today I couldn't get to works fine ... Apache documentation says There are many ways to give each user directory a cgi-bin directory such that anything requested as http://example.com/~user/cgi-bin/program will be executed as a CGI script. Two alternatives are: Place the cgi-bin directory next to the public_html directory: ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2 Place the cgi-bin directory underneath the public_html directory: Options ExecCGISetHandler cgi-script If you are using suexec, the first technique will not work because CGI scripts must be stored under the public_html directory. I have used the second option under the virtualhost of the user ## Dominio bodegonweb.com.ar# ServerAdmin [EMAIL PROTECTED] ServerName www.bodegonweb.com.ar DocumentRoot /home/bodegonweb/public_html Options ExecCGISetHandler cgi-script # ErrorLog logs/host.some_domain.com-error.log# CustomLog logs/host.some_domain.com-access.log common I'll apprecite your cooperation Regards Nestor Mazza [EMAIL PROTECTED]