Jump to content

Php/Apache settings, fsockopen not working?


en3r0

Recommended Posts

I am having problems on my websites with certain things not working. My one site will not grab rss feeds, and the other wont report external torrent information. I thought it night be the allow_url_fopen in php.ini, but it was set to On.

 

What other options could be affecting this? I am running slackware 11, PHP 4.4.4, MYSQL 5.0.24a, apache-1.3.37-i486-2

 

I am really lost as to what else it could be...

Link to comment
https://forums.phpfreaks.com/topic/49937-phpapache-settings-fsockopen-not-working/
Share on other sites

From the torrent tracker I get in the sitelog:

FAILED update external torrent (infohash: 1b0630e6bcbf1b6910f5204393c985c70c71aaf5) from http://torrent.ubuntu.com:6969/announce tracker (not connectable)

I made sure the torrent was active and has thousands of peers.

 

The other website just will not grab the rss feed. The code is clean and works for others.

 

 

So I concluded that my server cannot access things from the outside. I have tried everything I know, but can not get it to work.

there are a TON of undefined index erros, i could not find one specific thing that would help, so i erased, ran for a few moments and this is what I have:

 

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined variable:  child_cat_sql in /var/www/htdocs/torrop/libs/search.php on line 106

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  pretitle in /var/www/htdocs/torrop/templates_c/c_6e9d47fca259527c18191d29afe6df5a.php on line 87

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  body_args in /var/www/htdocs/torrop/templates_c/c_6e9d47fca259527c18191d29afe6df5a.php on line 95

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  search in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 9

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  link2 in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 151

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  link3 in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 154

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  text3 in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 156

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  link4 in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 157

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  text4 in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 159

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  category in /var/www/htdocs/torrop/templates_c/c_1ef20ce3d40db3ec68f39d97694c4927.php on line 199

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined offset:  5 in /var/www/htdocs/torrop/libs/link.php on line 537

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined offset:  5 in /var/www/htdocs/torrop/libs/link.php on line 537

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  login_username in /var/www/htdocs/torrop/templates_c/c_02c60e36719986c34b1cd6f92ff68298.php on line 24

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined index:  return in /var/www/htdocs/torrop/templates_c/c_02c60e36719986c34b1cd6f92ff68298.php on line 29

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined variable:  child_cat_sql in /var/www/htdocs/torrop/libs/search.php on line 106

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined offset:  5 in /var/www/htdocs/torrop/libs/link.php on line 537

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined offset:  5 in /var/www/htdocs/torrop/libs/link.php on line 537

[sat May  5 05:00:09 2007] [error] PHP Notice:  Undefined variable:  new_array in /var/www/htdocs/torrop/libs/ez_sql_core.php on line 234

[sat May  5 05:00:13 2007] [error] Resource temporarily unavailable

[sat May  5 05:00:14 2007] [error] [client 66.249.66.36] File does not exist: /var/www/htdocs/lt/robots.txt

[sat May  5 05:00:14 2007] [error] [client 192.168.1.1] File does not exist: /var/www/htdocs/lt/favicon.ico

use error_reporting(E_ALL); at teh top of your page and then send the Errors shown in that page

[sat May  5 05:00:13 2007] [error] Resource temporarily unavailable

[sat May  5 05:00:14 2007] [error] [client 66.249.66.36] File does not exist: /var/www/htdocs/lt/robots.txt

[sat May  5 05:00:14 2007] [error] [client 192.168.1.1] File does not exist: /var/www/htdocs/lt/favicon.ico

This errors are for what ??

sudo iptables -L -v gives:

 

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)

pkts bytes target    prot opt in    out    source              destination

 

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)

pkts bytes target    prot opt in    out    source              destination

 

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)

pkts bytes target    prot opt in    out    source              destination

 

As far as I know, Slackware dosn't have a firewall?

 

 

On line 301 of php.ini: error_reporting  =  E_ALL  So it should be reporting all errors on the page...

 

 

@ neel_basu Those are errors for the torrent tracker.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.