php and ppstats

mindless

Senior member
Oct 9, 1999
661
0
0
Im trying to get ppstats working with php. I compiled php and thought I had everything all set up in apache, but when I try and pull up the stats page my browser tries to download the php file. The site is at fred.dnsalias.org. Now I should note that the first time I went there it showed some code, but from then on it downloaded the file.

Im running RedHat 7.0 with Apache 1.3.19 and PHP 4.0.4pl1. Apache and PHP were both compiled by me so I am assuming I screwed something up.

Ive got the necessary PHP lines in my httpd.conf:
AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

and have the mod_so.c module setup with Apache.

I am willing to give someone access to my box (assuming I recognize their nick) if it will help, and would leave the shell on their if they liked.

Thanks in advace

Kevin
 

mindless

Senior member
Oct 9, 1999
661
0
0
Either there is, or Dnet is playing a mean trick on me

PPStats - Stats generation using the PHP server-side web scripting language. By M. Bakker and K. van den Hout. Webpage. Webserver with PHP required. Download.
 

Jator

Golden Member
Jun 14, 2000
1,445
7
81
Mindless,

Go here PHP Stats , and also here (I've done some modification) My PHP Stats . I can't help you with Linux and Apache though, I use Win32 and IIS with a PHP Module. If you do decide o switch to Win32/IIS, let me know and I'll help as much as I can.

Jay
 

mindless

Senior member
Oct 9, 1999
661
0
0
Thanks Jay, and thanks for the link, I might have to start dumping to your proxy, I very much like your stats.
 

Jator

Golden Member
Jun 14, 2000
1,445
7
81
I didn't do anything other than provide links to my PHP stats. But you are more than welcome to use my pproxy. Use the jator.2y.net address though as I can control the change of the IP address under that domain in about 5 minutes, whereas www.jator.net can take a few hours to update.

Jay
 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
mindless - is the point of your exercise to generate your own stats for anytime viewage... ? If so, it might be easier going with the perl version of ppstats. I just went through this myself, having my pproxy on win2K generating the logs and ppstats running on my alpha, with Red Hat 6.2 and Apache 1.3. I have an smbmount between the 2k and linux, and have a cron job run the perl scripts on 2K's logs. The scripts generate the stats files in my designated Apache server directory, for viewing.
 

mindless

Senior member
Oct 9, 1999
661
0
0
Poof, part of it is I want the stats, the other part is an excuse to play with my Linux box
 

Poof

Diamond Member
Jul 27, 2000
4,305
0
0
mindless - that's sortof exactly why I did it too. It was learning... but not only linux but cross-platform (2K advanced server vs linux). Once done, I could produce a this as a first step, to look at...

If you try the perl version rather than the PHP one (PHP is something that I'm gonna have to learn at some point down the road), I might be able to help... Gotta feed that addiction!
 

Dale

Senior member
Oct 9, 1999
503
0
0
mindless your apache is either not compiled with or not loading the modules

I see from your comment(have the mod_so.c module) that you checked
to see if they were there
your server
________________________
Connected to fred.dnsalias.org.

HTTP/1.1 200 OK
Server: Apache/1.3.19 (Unix)
Last-Modified: Sun, 26 Nov 2000 09:11:32 GMT
Accept-Ranges: bytes
Content-Type: application/x-httpd-php3
Content-Length: 2927
Etag: "abd5b-b6f-3a20d3c4"
Via: 1.1 c760 (NetCache 4.1R4D1)
Date: Fri, 16 Mar 2001 17:36:11 GMT

should read
________________________________
Connected to xed out

HTTP/1.1 200 OK
Date: Fri, 16 Mar 2001 17:41:45 GMT
Server: Apache/1.3.19 (Unix) PHP/4.0.3pl1
Last-Modified: Thu, 30 Nov 2000 16:21:53 GMT
ETag: "1c0fd-6-3a267ea1"
Accept-Ranges: bytes
Content-Length: 6
Connection: close
Content-Type: text/html

also you appear to be using some sort of cache server(which I know nothing about)

when you compiled PHP did you use the full line
"./configure --with-mysql --with-apxs"

also make sure you put the php.ini where it can be found
(/usr/local/lib/php.ini)

..Dale
 

mindless

Senior member
Oct 9, 1999
661
0
0
Dale, thanks for the help. I think the cache is Charter's proxy/cache which I am forced to run though :|

If you can tell me how you got that output Ill run it on my internal IP and see if I get the same thing

PHP was compiled using --with-mysql --with-apxs

I have the php.ini in /usr/local/lib/php.ini, the file is owned by root, and has these permissions: -rw-r--r--

Thanks
Kevin
 

Dale

Senior member
Oct 9, 1999
503
0
0
>>If you can tell me how you got that output

it is from the HEAD command

telnet localhost 80
HEAD / HTTP/1.0

(note there are 2 CR at the end of the last line)

if the server: line does not show PHP/4.0.3pl1(along with the other info)

then Apache either is not compiled correctly or the modules did not load

did you compile Apache?? or use an RPM??

Apache is where your problem lies, you may have to recompile it

it is possible that it is running correctly and the cache server
is just sending "old" output

you can test localy untill you see that Apache is configured for PHP

..Dale
 

mindless

Senior member
Oct 9, 1999
661
0
0
Heres what I get:

HTTP/1.1 200 OK
Date: Sat, 17 Mar 2001 03:39:29 GMT
Server: Apache/1.3.19 (Unix)
Content-Location: index.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Last-Modified: Fri, 19 Jan 2001 19:39:47 GMT
ETag: "28424-51e-3a689803;3aade0fa"
Accept-Ranges: bytes
Content-Length: 1310
Connection: close
Content-Type: text/html
Content-Language: en


I compiled Apache and aparently not correctly
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |