It's the oddest thing. I've found the logs but there is no error at all, the 
server just hangs and the only way to get it back is to restart Apache.
 

________________________________

From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Thu 1/7/2010 9:04 AM
To: Vernon Webb
Cc: php-general@lists.php.net
Subject: RE: [PHP] Site Moved From PHP4 to PHP5 Server - header, location no 
longer working


On Thu, 2010-01-07 at 08:57 -0500, Vernon Webb wrote: 

        Didn't know there were php logs, I thought they would be included in 
the Apache logs, where do I find the php logs?
         
        ~V
        
        ________________________________
        
        From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
        Sent: Thu 1/7/2010 8:42 AM
        To: Vernon Webb
        Cc: php-general@lists.php.net
        Subject: RE: [PHP] Site Moved From PHP4 to PHP5 Server - header, 
location no longer working
        
        
        On Thu, 2010-01-07 at 08:40 -0500, Vernon Webb wrote: 
        
                That's the odd thing, there is nothing being indicated in the 
error logs the server just hangs and I have to restart apache in order to get 
the site back up. First I thought it might be the server so I move over to a 
different server, but I still have the same issue. What I feel is really odd is 
the fact that it worked in a previous version of php, so waht's changed?
                 
                ~V
                
                ________________________________
                
                From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
                Sent: Thu 1/7/2010 7:52 AM
                To: James McLean
                Cc: Vernon Webb; php-general@lists.php.net
                Subject: Re: [PHP] Site Moved From PHP4 to PHP5 Server - 
header, location no longer working
                
                
                On Thu, 2010-01-07 at 16:50 +1030, James McLean wrote: 
                
                        On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb 
<ver...@comp-wiz.com> wrote:
                        > I move a number of sites from one server to another 
and one the one server we had php4 and now we have php5 and since then my 
server seems to hang every time there is a header, location redirect. Anyone 
have any ideas on how to resolve this? Is there something I can easily change 
in the php.ini file that will resolve this issue?
                        
                        Off the top of my head it sounds like something is 
being output before
                        the header, which causes an error. If you also have 
error display
                        turned off, you will likely just see a white screen 
with no useful
                        information.
                        
                        Make sure none of your includes have trailing 
whitespace or are trying
                        to print out information before the header itself.
                        
                        Best bet is to turn on errors and log them, then you 
will see where
                        the output started if infact that is your issue.
                        
                        Cheers
                        
                
                
                Don't turn on errors if this machine is public, as it could 
potentially give out more information to people than you want. First, look at 
the error logs for PHP, which record all the errors you've had with the site, 
whether you have them displayed or not.
                
                
                Thanks,
                Ash
                http://www.ashleysheridan.co.uk 
<http://www.ashleysheridan.co.uk/>  <http://www.ashleysheridan.co.uk/>  
<http://www.ashleysheridan.co.uk/> 
                
                
                        
                
        
        
        Have you checked both the PHP and Apache error logs? Things like 
invalid commands in an .htaccess file can cause server crashes.
        
        
        Thanks,
        Ash
        http://www.ashleysheridan.co.uk <http://www.ashleysheridan.co.uk/>  
<http://www.ashleysheridan.co.uk/> 
        
        
                
        


They could be in a variety of places depending on how your system is set up. It 
should show you if you do a phpinfo(); in a page on its own.


Thanks,
Ash
http://www.ashleysheridan.co.uk <http://www.ashleysheridan.co.uk/> 


        

-- 
This message has been scanned for viruses and 
dangerous content by comp-wiz.com <http://comp-wiz.com/> , and is 
believed to be clean. 

Reply via email to