
Originally Posted by
handsonhosting
Ok, I'll go through my apache config file and start disabling items and see what happens

Exactly how is that supposed to help you? 
Random messing with config files you apparently don't understand in the first place is not going to do anything to help you especially when your Apache configuration has absolutely NOTHING to do with the issue you are asking about!
The place you want to check is your PHP.INI file which is usually located in /usr/local/lib
The two things that you want to look at is disable_functions and allow_url_fopen lines in your PHP configuration.
You should check that fopen does not appear in the list of disabled functions on your server although it does not sound like this is your problem here:
Code:
disable_functions = !!!LIST OF FUNCTIONS -- SHOULD NOT HAVE fopen!!!
What does sound more to be your issue is if you have network connections turned off for fopen and similar functions.
Code:
allow_url_fopen = On
** If this says "Off" in your configuration then that is your problem! **
Another lesser known config setting that I don't believe has bearing on your specific script but could effect others particularily those that try to load code remotely from other servers:
Code:
allow_url_include = Off #I would leave this Off for security unless you really have need
The above is those settings most likely to affect PHP fopen() remote connections but there are other smaller settings that can have an impact as well. You may want to compare your old server PHP configuration and the new configuration
or even backup the new configuration and copy the PHP.INI in from your old server although be careful with doing that as you may have differences in 3rd party loaded modules and library paths.
If you need to make any changes to your PHP configurations, you will likely need to go ahead and restart your Apache server
Code:
# service httpd restart
# service httpd status
Aside from your PHP configuration, if you are running any firewall application such as APF or CSF, it is possible that you have disallowed your server to make any outbound TCP network connections to be able to connect to remote web servers. Make sure you have enough ports open on your server to allow for outbound connections and that you are able to make connections outbound to a remote address on port 80, otherwise you won't be able to run any scripts that make external network connections.
The quickest way to find out if your firewall is effecting your scripts is to simply turn it off for a few minutes and flush your IPTABLES and then see if your scripts start working. If so, it's your security settings that are blocking your scripts and you'll need to update your firewall settings.
Again, nothing different on the two machines other than the PHP version.
Incidentally, that is a very stupid statement to make! Unless you directly cloned the old machine's hard drive and both machines were using the exact same hardware (and even then would be doubtful), you could not really say there is "nothing different" between the two machines.
As an expert, you put two supposed identical machines in front of me with the same hardware and the same base image and I can usually find hundred if not thousands of subtle differences in the configurations between both machines that each could have a substantial impact on one script running on one machine but not on the other even though both machines on the casual surface appear to be identical and that is even when using cloned images!
When you are talking about setting up a new machine from scratch and then duplicating the basic Cpanel settings, you are dealing with an entirely new machine, new hardware, new configuration, new OS components, possibly different libraries, different versions of various prerequisite programs, possibly even different operating systems or kernel versions, and tens of thousands of other differences and one of which could effect any given script from running the same way from the other machine.
The point is that your machines are NOT identical and to quickly make assumptions just to blindly point your finger at PHP 5.2.10 is a very unwise thing to do almost about as much as randomly playing with your Apache settings hoping that will will fix your issue!
Speaking of Apache, the newer Apache 2.0 and 2.2 series has built in compression modes that can also effect the output of pages, and depending on the configuration of Apache when built can have different results for different browsers because of HTTP 1.0 and 1.1 compatibility settings, etc.