[us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Manoj Singh
Hi,

Is it possible to get the logs of uploaded files in the apache server?

Please help me out.

Regards,
Manoj


Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Devraj Mukherjee
Do you mean files uploaded by applications running on the Apache
server or by something like mod_dav?


On Thu, Dec 31, 2009 at 7:28 PM, Manoj Singh  wrote:
> Hi,
>
> Is it possible to get the logs of uploaded files in the apache server?
>
> Please help me out.
>
> Regards,
> Manoj
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Manoj Singh
Hi Devraj,

Actually i mean by files uploaded through the client side by any browser? I
have the web site through which I am providing the facility to upload the
files. Now I want to check out how many files were uploaded and details
through apache web server logs. Please advice me how to do this.

Thanks,
Manoj

On Thu, Dec 31, 2009 at 2:55 PM, Devraj Mukherjee  wrote:

> Do you mean files uploaded by applications running on the Apache
> server or by something like mod_dav?
>
>
> On Thu, Dec 31, 2009 at 7:28 PM, Manoj Singh 
> wrote:
> > Hi,
> >
> > Is it possible to get the logs of uploaded files in the apache server?
> >
> > Please help me out.
> >
> > Regards,
> > Manoj
> >
>
>
>
> --
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread André Warnier

Tushar Joshi wrote:
Hi, 


I'm trying to get a HTTP header from my CGI program, in this particular
example it's SOAPAction, however I'm not sure how to do this as you can
only getenv some of the headers. Is there a way to get all the headers
sent from the client or a way in maybe the apache config to set the
environment variable manually. I've lookever all over for this and
couldn't find anything so either it's dead easy or I have to write an
apache module to do this?

Cheers if you can shed any light on this one, 


What is your CGI program written in ? (language)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] "Script GET /cgi-bin/foo" doesn't apply to all GET requests

2009-12-31 Thread André Warnier

Michael Stillwell wrote:

The documentation at

http://httpd.apache.org/docs/2.2/mod/mod_actions.html#script

says that "Script with a method of GET will only be called if there are query 
arguments present."  Is there any way to work around this limitation?  I would like 
a GET request for e.g.

http://example.com/user/foo

to be passed through to the specified CGI script irrespective of whether query 
arguments are present or not.


Just don't use the Script directive then.

ScriptAlias /cgi-bin/ /var/www/cgi-bin/


  Options ExecCGI



will allow any file within that directory to be executed as a CGI 
script, no matter the method or the arguments.

Just make sure that what you put there is safe.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread André Warnier

Manoj Singh wrote:

Hi Devraj,

Actually i mean by files uploaded through the client side by any browser? I
have the web site through which I am providing the facility to upload the
files. 


And how exactly are you doing this ?


Now I want to check out how many files were uploaded and details

through apache web server logs. Please advice me how to do this.


Apart from DAV, Apache does not provide a method to upload files.
DAV (mod_dav) will log any file upload (look for PUT requests).
If you do it via some other method, then your method is the one that 
should log the uploads.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Tushar Joshi
Hi thanks for the reply. I'm writing my applications in C so would  
have thought there might be a low level way of doing this.



Turtle Networks

Tel +44 (0)20 8896 2600
www.turtle.net
Unit 48
Concord Road
London W3 0TH

On 31 Dec 2009, at 14:23, André Warnier  wrote:


Tushar Joshi wrote:
Hi, I'm trying to get a HTTP header from my CGI program, in this  
particular
example it's SOAPAction, however I'm not sure how to do this as you  
can
only getenv some of the headers. Is there a way to get all the  
headers

sent from the client or a way in maybe the apache config to set the
environment variable manually. I've lookever all over for this and
couldn't find anything so either it's dead easy or I have to write an
apache module to do this?
Cheers if you can shed any light on this one,

What is your CGI program written in ? (language)

-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread André Warnier

Tushar Joshi wrote:
Hi thanks for the reply. I'm writing my applications in C so would have 
thought there might be a low level way of doing this.


I was asking, just in case you were using Perl.  I would then have 
pointed you to mod_perl and the CGI module, which together allow you to 
do that kind of thing easily.


But, in general, if this is a CGI program, then it is running as a 
separate process from Apache itself, and it does not have access to 
Apache internals.
What your program gets is the CGI environment as set up by Apache, but 
you do not get all the HTTP request headers that way (only some are 
"translated" by Apache as environment variables for your CGI program).


It would be different if your application, instead of a CGI program, was 
written as an Apache add-on module. That is possible, but I cannot help 
you there (other than with Perl).


There may be a possibility however, by using one of the existing Apache 
modules as a filter, which would take the content of a HTTP request 
header and turn it into an environment variable which your CGI could 
then see.
I cannot give you any specifics, but I would look at modules such as 
mod_setenvif, mod_headers, mod_rewrite.

I would start the search here :
http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif

Be a bit careful however when you see words like "environment 
variables".  These words do not necessarily have the meaning 
"environment variables for CGI programs".



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Scott Gifford
André Warnier  writes:

> Tushar Joshi wrote:
>> Hi thanks for the reply. I'm writing my applications in C so would
>> have thought there might be a low level way of doing this.

[...]

> But, in general, if this is a CGI program, then it is running as a
> separate process from Apache itself, and it does not have access to
> Apache internals.
> What your program gets is the CGI environment as set up by Apache, but
> you do not get all the HTTP request headers that way (only some are
> "translated" by Apache as environment variables for your CGI
> program).

It would be fairly straightforward to copy additional information from
Apache to the environment with a little bit of mod_perl or a simple
module, to make it available to CGI scripts.

Scott.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread André Warnier

Scott Gifford wrote:

André Warnier  writes:


Tushar Joshi wrote:

Hi thanks for the reply. I'm writing my applications in C so would
have thought there might be a low level way of doing this.


[...]


But, in general, if this is a CGI program, then it is running as a
separate process from Apache itself, and it does not have access to
Apache internals.
What your program gets is the CGI environment as set up by Apache, but
you do not get all the HTTP request headers that way (only some are
"translated" by Apache as environment variables for your CGI
program).


It would be fairly straightforward to copy additional information from
Apache to the environment with a little bit of mod_perl or a simple
module, to make it available to CGI scripts.


Allright, how ?  We're all ears.
If the OP does not use mod_perl right now, and this being the day which 
it is, I cannot for myself think of a quickie solution for the next 24 
hours or so...

 ;-)
Happy New Year.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Nick Kew

On 31 Dec 2009, at 01:44, Tushar Joshi wrote:

> 
> Hi, 
> 
> I'm trying to get a HTTP header from my CGI program, in this particular
> example it's SOAPAction, however I'm not sure how to do this as you can
> only getenv some of the headers.

Erm, it seems neither you nor several who have responded have read TFM.

What header can't you get?

-- 
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Manoj Singh
Hi,

Sorry for confusion created. Actually I am using PHP as a server side
language to receive the uploaded files. As I am using apache as a web server
and I know that apache is maintaining access and error logs for the server.
similarly I want to know that whether the apache is maintaining the logs
regrading files uploaded.

Please suggest.

Regards,
Manoj

On Thu, Dec 31, 2009 at 8:04 PM, André Warnier  wrote:

> Manoj Singh wrote:
>
>> Hi Devraj,
>>
>> Actually i mean by files uploaded through the client side by any browser?
>> I
>> have the web site through which I am providing the facility to upload the
>> files.
>>
>
> And how exactly are you doing this ?
>
>
>
> Now I want to check out how many files were uploaded and details
>
>> through apache web server logs. Please advice me how to do this.
>>
>>  Apart from DAV, Apache does not provide a method to upload files.
> DAV (mod_dav) will log any file upload (look for PUT requests).
> If you do it via some other method, then your method is the one that should
> log the uploads.
>
>
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] "Script GET /cgi-bin/foo" doesn't apply to all GET requests

2009-12-31 Thread Michael Stillwell
On Thu, Dec 31, 2009 at 2:31 PM, André Warnier  wrote:
> Michael Stillwell wrote:
>>
>> The documentation at
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_actions.html#script
>>
>> says that "Script with a method of GET will only be called if there are
>> query arguments present."  Is there any way to work around this limitation?
>>  I would like a GET request for e.g.
>>
>> http://example.com/user/foo
>>
>> to be passed through to the specified CGI script irrespective of whether
>> query arguments are present or not.
>>
> Just don't use the Script directive then.
>
> ScriptAlias /cgi-bin/ /var/www/cgi-bin/
>
> 
>  Options ExecCGI
>
> 
>
> will allow any file within that directory to be executed as a CGI script, no
> matter the method or the arguments.
> Just make sure that what you put there is safe.

I didn't mention this in my original email, but I would like to call
different scripts depending on the method.  e.g. GET.php for GET,
PUT.php for PUT.




Michael

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Tushar Joshi


On 31 Dec 2009, at 16:20, Nick Kew  wrote:



On 31 Dec 2009, at 01:44, Tushar Joshi wrote:



Hi,

I'm trying to get a HTTP header from my CGI program, in this  
particular
example it's SOAPAction, however I'm not sure how to do this as you  
can

only getenv some of the headers.


Erm, it seems neither you nor several who have responded have read  
TFM.


What header can't you get?

--
Nick Kew


Right bottom posting this time. I've looked in the manual searched on  
the web but I presume there isn't an easy way. I've looked at mod  
header and set env and I don't really want to add a perl wrapper to a  
lovely C program. I was hoping I could do something like getenv 
("HEADERS_REMAINING") or I could write an apache module to grab the  
SOAPAction header and set it in an environment variable. 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Upgrading from 1.3.22 to 1.3.41`

2009-12-31 Thread Paul McFerrin
I asked this question of this mailing lists many years ago about my 
1.3.22 and I'm again performing this upgrade to 1.3.41 (last 1.x 
release).  I have gotten my server to respond to both URL's.


However on every page, I get the "Forbidden" error message.  If I do 
allow it to view any page, I them get "The page isn't redirecting 
properly" error.  The htdocs pointer is pointing to thw same page as the 
1.3.22 server.


I have place the current copy of httpd.conf at 
http://pmcferrin.homedns.org/httpd.conf


Any help would be appreciated.  The end result is to get php4 installed.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Eric Covener
On Thu, Dec 31, 2009 at 12:31 PM, Tushar Joshi  wrote:
> was hoping I could do something like getenv("HEADERS_REMAINING") or I could
> write an apache module to grab the SOAPAction header and set it in an
> environment variable.

http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif (or
mod_rewrite with E= flag)


-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting HTTP Headers from CGI program

2009-12-31 Thread Nick Kew

On 31 Dec 2009, at 17:31, Tushar Joshi wrote:
> 
> Right bottom posting this time. I've looked in the manual searched on the web 
> but I presume there isn't an easy way. I've looked at mod header and set env 
> and I don't really want to add a perl wrapper to a lovely C program. I was 
> hoping I could do something like getenv("HEADERS_REMAINING") or I could write 
> an apache module to grab the SOAPAction header and set it in an environment 
> variable.

If SOAPAction is an HTTP header, I suggest looking at the CGI spec
(which is very, very simple) for how to get it.

-- 
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Paul McFerrin
I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know 
enough to tie things in as a fastcgi.  What other files have to be modified?
Where does PHP4 have to be installed?  Can someone tie things in for 
me.  I seemed to so close but yet so far.


Rightnow my .php file jst downloads the contents.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Devraj Mukherjee
You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin  wrote:
> I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
> enough to tie things in as a fastcgi.  What other files have to be modified?
> Where does PHP4 have to be installed?  Can someone tie things in for me.  I
> seemed to so close but yet so far.
>
> Rightnow my .php file jst downloads the contents.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Upgrading from 1.3.22 to 1.3.41`

2009-12-31 Thread Devraj Mukherjee
Can you please look through the logs and share anything meaningful you
find there?

What OS are you using?

On Fri, Jan 1, 2010 at 4:58 AM, Paul McFerrin  wrote:
> I asked this question of this mailing lists many years ago about my 1.3.22
> and I'm again performing this upgrade to 1.3.41 (last 1.x release).  I have
> gotten my server to respond to both URL's.
>
> However on every page, I get the "Forbidden" error message.  If I do allow
> it to view any page, I them get "The page isn't redirecting properly" error.
>  The htdocs pointer is pointing to thw same page as the 1.3.22 server.
>
> I have place the current copy of httpd.conf at
> http://pmcferrin.homedns.org/httpd.conf
>
> Any help would be appreciated.  The end result is to get php4 installed.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Daniel Reinhardt


--
From: "Devraj Mukherjee" 
Sent: 31 December, 2009 23:15
To: ; 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41


You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin  
wrote:

I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
enough to tie things in as a fastcgi.  What other files have to be modified?
Where does PHP4 have to be installed?  Can someone tie things in for me.  I
seemed to so close but yet so far.

Rightnow my .php file jst downloads the contents.



Is PHP compiled to run with Apache?




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Paul McFerrin
Well yes & no.  I'm having to build PHP4 myself.  Instructions for 
installing SAPI are not clearly written.  That's been my hard part.  
Does not matter PHP4 or PHP5.  There is always a road-block.


Daniel Reinhardt wrote:


--
From: "Devraj Mukherjee" 
Sent: 31 December, 2009 23:15
To: ; 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41


You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin 
 wrote:

I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
enough to tie things in as a fastcgi.  What other files have to be 
modified?
Where does PHP4 have to be installed?  Can someone tie things in for 
me.  I

seemed to so close but yet so far.

Rightnow my .php file jst downloads the contents.



Is PHP compiled to run with Apache?




-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Paul McFerrin
I'm sure these is more to add to webserver.  In my directory: 
sapi/apache there are:


CREDITSlibphp4.module.in   mod_php4.h  php_apache_http.h
apMakefile.libdir   php.sym sapi_apache.c
apMakefile.tmplmod_php4.c php4apache.dsp
config.m4  mod_php4.exp   php_apache.c

But no instructions.


Daniel Reinhardt wrote:


--
From: "Devraj Mukherjee" 
Sent: 31 December, 2009 23:15
To: ; 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41


You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin 
 wrote:

I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
enough to tie things in as a fastcgi.  What other files have to be 
modified?
Where does PHP4 have to be installed?  Can someone tie things in for 
me.  I

seemed to so close but yet so far.

Rightnow my .php file jst downloads the contents.



Is PHP compiled to run with Apache?




-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Eric Covener
On Thu, Dec 31, 2009 at 10:01 PM, Paul McFerrin
 wrote:
> I'm sure these is more to add to webserver.  In my directory: sapi/apache
> there are:
>
> CREDITS    libphp4.module.in       mod_php4.h      php_apache_http.h
> apMakefile.libdir       php.sym         sapi_apache.c
> apMakefile.tmpl    mod_php4.c         php4apache.dsp
> config.m4          mod_php4.exp       php_apache.c
>
> But no instructions.

You have to build it, presumably from the top-level directory.

http://www.php.net/manual/en/install.unix.apache.php

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Daniel Reinhardt


--
From: "Paul McFerrin" 
Sent: 01 January, 2010 2:55
To: 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

Well yes & no.  I'm having to build PHP4 myself.  Instructions for installing 
SAPI are not clearly written.  That's been my hard part.  Does not matter PHP4 
or PHP5.  There is always a road-block.


Daniel Reinhardt wrote:


--
From: "Devraj Mukherjee" 
Sent: 31 December, 2009 23:15
To: ; 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41


You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin  
wrote:

I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
enough to tie things in as a fastcgi.  What other files have to be 
modified?

Where does PHP4 have to be installed?  Can someone tie things in for me.  I
seemed to so close but yet so far.

Rightnow my .php file jst downloads the contents.



Is PHP compiled to run with Apache?



Try this configure script:

./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr --libdir=/usr/lib --with-libdir=lib 
--sysconfdir=/etc --disable-safe-mode --disable-ipv6  --with-libexpat-dir=/usr  
--disable-magic-quotes --enable-zend-multibyte --enable-mbregex --enable-tokenizer=shared 
--with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd --enable-mod_charset 
--with-layout=PHP --enable-sigchild --enable-xml --with-libxml-dir=/usr --enable-simplexml 
--enable-spl --enable-filter --disable-debug --with-openssl=shared --with-pcre-regex=/usr 
--with-zlib=shared,/usr --enable-bcmath=shared --with-bz2=shared,/usr --enable-calendar=shared 
--enable-ctype=shared --with-curl=shared --with-curlwrappers --with-mcrypt=/usr 
--enable-dba=shared --with-gdbm=/usr --with-db4=/usr --enable-dbase=shared --enable-exif=shared 
--enable-ftp=shared --with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr 
--with-xpm-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --enable-gd-native-ttf 
--enable-gd-jis-conv --with-gettext=shared,/usr --with-gmp=shared,/usr --with-iconv=shared 
--with-imap-ssl=/usr --with-ldap=shared --enable-mbstring=shared --enable-hash  
--with-mhash=shared,/usr --with-mysql --enable-pdo=shared --with-pdo-mysql=shared,/usr 
--with-pdo-sqlite=shared --with-pspell=shared,/usr --with-mm=/usr --enable-shmop=shared 
--with-snmp=shared,/usr --enable-soap=shared --enable-sockets --with-sqlite=shared 
--with-regex=php --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx=shared 
--with-xsl=shared,/usr --enable-zip=shared --with-tsrm-pthreads --enable-shared=yes 
--enable-static=no --with-gnu-ld --with-pic


Its for Apache 2.xx you may have to change a few of the options, and the 
directories.


Apache 2.xx series is much easier and more supported.




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

2009-12-31 Thread Frank Gingras



Daniel Reinhardt wrote:


--
From: "Paul McFerrin" 
Sent: 01 January, 2010 2:55
To: 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41

Well yes & no.  I'm having to build PHP4 myself.  Instructions for 
installing SAPI are not clearly written.  That's been my hard part.  
Does not matter PHP4 or PHP5.  There is always a road-block.


Daniel Reinhardt wrote:


--
From: "Devraj Mukherjee" 
Sent: 31 December, 2009 23:15
To: ; 
Subject: Re: [us...@httpd] Getting PHP to work w Apache 1.3.41


You need to add something like

AddType application/x-httpd-php .php

to your Apache configuration file. You are also likely to get more
information regarding this on the PHP resource centres.

Also is there a reason you aren't choosing Apache 2.x + PHP5?

On Fri, Jan 1, 2010 at 8:17 AM, Paul McFerrin 
 wrote:

I'me been trying to get PHP4 to run with Apache1.3.41 but I don't know
enough to tie things in as a fastcgi.  What other files have to be 
modified?
Where does PHP4 have to be installed?  Can someone tie things in 
for me.  I

seemed to so close but yet so far.

Rightnow my .php file jst downloads the contents.



Is PHP compiled to run with Apache?



Try this configure script:

./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr --libdir=/usr/lib 
--with-libdir=lib --sysconfdir=/etc --disable-safe-mode --disable-ipv6  
--with-libexpat-dir=/usr  --disable-magic-quotes --enable-zend-multibyte 
--enable-mbregex --enable-tokenizer=shared 
--with-config-file-scan-dir=/etc/php --with-config-file-path=/etc/httpd 
--enable-mod_charset --with-layout=PHP --enable-sigchild --enable-xml 
--with-libxml-dir=/usr --enable-simplexml --enable-spl --enable-filter 
--disable-debug --with-openssl=shared --with-pcre-regex=/usr 
--with-zlib=shared,/usr --enable-bcmath=shared --with-bz2=shared,/usr 
--enable-calendar=shared --enable-ctype=shared --with-curl=shared 
--with-curlwrappers --with-mcrypt=/usr --enable-dba=shared 
--with-gdbm=/usr --with-db4=/usr --enable-dbase=shared 
--enable-exif=shared --enable-ftp=shared --with-gd=shared 
--with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr 
--with-xpm-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr 
--enable-gd-native-ttf --enable-gd-jis-conv --with-gettext=shared,/usr 
--with-gmp=shared,/usr --with-iconv=shared --with-imap-ssl=/usr 
--with-ldap=shared --enable-mbstring=shared --enable-hash  
--with-mhash=shared,/usr --with-mysql --enable-pdo=shared 
--with-pdo-mysql=shared,/usr --with-pdo-sqlite=shared 
--with-pspell=shared,/usr --with-mm=/usr --enable-shmop=shared 
--with-snmp=shared,/usr --enable-soap=shared --enable-sockets 
--with-sqlite=shared --with-regex=php --enable-sysvmsg --enable-sysvsem 
--enable-sysvshm --enable-wddx=shared --with-xsl=shared,/usr 
--enable-zip=shared --with-tsrm-pthreads --enable-shared=yes 
--enable-static=no --with-gnu-ld --with-pic


Its for Apache 2.xx you may have to change a few of the options, and the 
directories.


Apache 2.xx series is much easier and more supported.




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



No, you don't want to use AddType.

Read this:

http://wiki.apache.org/httpd/PHPDownload

Frank.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Upgrading from 1.3.22 to 1.3.41`

2009-12-31 Thread Frank Gingras



Paul McFerrin wrote:
I asked this question of this mailing lists many years ago about my 
1.3.22 and I'm again performing this upgrade to 1.3.41 (last 1.x 
release).  I have gotten my server to respond to both URL's.


However on every page, I get the "Forbidden" error message.  If I do 
allow it to view any page, I them get "The page isn't redirecting 
properly" error.  The htdocs pointer is pointing to thw same page as the 
1.3.22 server.


I have place the current copy of httpd.conf at 
http://pmcferrin.homedns.org/httpd.conf


Any help would be appreciated.  The end result is to get php4 installed.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



What does the error log say, exactly?

Frank.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Logs of uploaded files from browser

2009-12-31 Thread Frank Gingras



Manoj Singh wrote:

Hi,

Sorry for confusion created. Actually I am using PHP as a server side 
language to receive the uploaded files. As I am using apache as a web 
server and I know that apache is maintaining access and error logs for 
the server. similarly I want to know that whether the apache is 
maintaining the logs regrading files uploaded.


Please suggest.

Regards,
Manoj

On Thu, Dec 31, 2009 at 8:04 PM, André Warnier > wrote:


Manoj Singh wrote:

Hi Devraj,

Actually i mean by files uploaded through the client side by any
browser? I
have the web site through which I am providing the facility to
upload the
files.


And how exactly are you doing this ?



Now I want to check out how many files were uploaded and details

through apache web server logs. Please advice me how to do this.

Apart from DAV, Apache does not provide a method to upload files.
DAV (mod_dav) will log any file upload (look for PUT requests).
If you do it via some other method, then your method is the one that
should log the uploads.



-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org

 "   from the digest: users-digest-unsubscr...@httpd.apache.org

For additional commands, e-mail: users-h...@httpd.apache.org





Manoj,

No, those are not logged from apache directly. Perhaps you could ask the 
php mailing lists to see if those can be logged.


Alternately, POST data can be examined with mod_logio.

Frank


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org