28, May 2012

phproxy problem - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: phproxy problem
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: phproxy problem  (Read 2298 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« on: Jul 29, 2007, 04:46:21 pm »

Since switching some of my proxy sites to phproxy my server is filling up with core.12345 files (with each file having a different number)

Each file is around 50MB and with a few hundred of those on each account the server is filling up quickly. Deleting them doesn't seem to do any harm, but is there any way to prevent them from being created in the first place? Or maybe they can be auto-deleted when no longer used...

I know some people here are familiar with phproxy, do you see the same files created on your server or is this not related to phproxy?


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jul 29, 2007, 04:59:51 pm »

I have to use this script for a long time, so I don't really know.

Does your script has any fopen() argument?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Jul 29, 2007, 05:09:39 pm »

No I can't find any fopen() in the script, I also don't see any reference to core.#### in the script, but these files are only showing up in my hosting accounts that use phproxy.


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Jul 29, 2007, 05:11:55 pm »

Looks like a security whole. First check if you have the latest version of the script, then check if there is any eval() and BTW what do those files contain?

Maybe it is just a place that your host uses to keep logs from apache or from awstats.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #4 on: Jul 29, 2007, 05:19:45 pm »

oh wait there is a fopen():

Code:
<?php
           
foreach ($array as $key => $file_info)
            {
                
$_post_body .= "--{$_data_boundary}\r\n";
                
$_post_body .= "Content-Disposition: form-data; name=\"$key\"; filename=\"{$file_info['name']}\"\r\n";
                
$_post_body .= 'Content-Type: ' . (empty($file_info['type']) ? 'application/octet-stream' $file_info['type']) . "\r\n\r\n";
    
                if (
is_readable($file_info['tmp_name']))
                {
                    
$handle fopen($file_info['tmp_name'], 'rb');
                    
$_post_body .= fread($handlefilesize($file_info['tmp_name']));
                    
fclose($handle);
                }
                
                
$_post_body .= "\r\n";
            }



Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Jul 29, 2007, 07:23:42 pm »

No there is no way to write a file using this

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jul 29, 2007, 07:25:21 pm »

I use phproxy since more than 3 month never saw that kind of files, where do you find them?

Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jul 29, 2007, 07:26:40 pm »

Nico, do you have a file limit for the proxy?

maybe thats a kind of cache while parsing big video files

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #8 on: Jul 29, 2007, 07:30:03 pm »

Even it is cache, it should have an fopen statement Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Jul 29, 2007, 07:32:14 pm »

Even it is cache, it should have an fopen statement Smiley

maybe it's done by apache to safe memory Huh

Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Jul 29, 2007, 07:34:36 pm »

just found this thread:

http://forums.theplanet.com/index.php?showtopic=53875

fine tuning apache is the magic of each proxy success Wink

Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #11 on: Jul 29, 2007, 07:53:43 pm »

Nico, do you have a file limit for the proxy?

maybe thats a kind of cache while parsing big video files
It's the version downloaded from proxies2u with the country filter enabled.
('max_file_size'  => 1024*2048)

 I did see the same files on a different phproxy install I have. I have deleted all the files today, but just found a new one has been created. I'm downloading the 50mb file now to have a look inside.


Last blog : Are You Stumbling Yet?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Jul 29, 2007, 08:07:00 pm »

I think its the problem like described via the link I posted before, check the apache error log (check the PID)

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6960
Tags : phproxy core.files Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: phproxy problem
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:18:08 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.