Site Moved From PHP4 to PHP5 Server - header, location no longer working

Site Moved From PHP4 to PHP5 Server - header, location no longer working

am 07.01.2010 04:05:35 von Vernon Webb

------_=_NextPart_001_01CA8F46.4EDC6AD2
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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?

Thanks
~V


------_=_NextPart_001_01CA8F46.4EDC6AD2--

Re: Site Moved From PHP4 to PHP5 Server - header, location no

am 07.01.2010 07:20:57 von James Mclean

On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb wrote:
> I move a number of sites from one server to another and one the one serve=
r we had php4 and now we have php5 and since then my server seems to hang e=
very time there is a header, location redirect. Anyone have any ideas on ho=
w to resolve this? Is there something I can easily change in the php.ini fi=
le 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Site Moved From PHP4 to PHP5 Server - header, locationno longer working

am 07.01.2010 13:52:52 von Ashley Sheridan

--=-BvlJZHxWlTqAryvh3ndj
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2010-01-07 at 16:50 +1030, James McLean wrote:

> On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb 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



--=-BvlJZHxWlTqAryvh3ndj--

RE: Site Moved From PHP4 to PHP5 Server - header, location no longer working

am 07.01.2010 14:40:03 von Vernon Webb

------_=_NextPart_001_01CA8F9E.EA30DDDA
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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?
=20
~V

________________________________

From: Ashley Sheridan [mailto:ash@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:=20

On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb =
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?
=09
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.
=09
Make sure none of your includes have trailing whitespace or are trying
to print out information before the header itself.
=09
Best bet is to turn on errors and log them, then you will see where
the output started if infact that is your issue.
=09
Cheers
=09


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 =20


=09

--=20
This message has been scanned for viruses and=20
dangerous content by comp-wiz.com , and is=20
believed to be clean.=20

------_=_NextPart_001_01CA8F9E.EA30DDDA--

RE: Site Moved From PHP4 to PHP5 Server - header, locationno longer working

am 07.01.2010 14:42:18 von Ashley Sheridan

--=-itqqLIcxtDIpJO1cZlAB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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:ash@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 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
>
>
>
>


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



--=-itqqLIcxtDIpJO1cZlAB--

RE: Site Moved From PHP4 to PHP5 Server - header, location no longer working

am 07.01.2010 14:57:32 von Vernon Webb

------_=_NextPart_001_01CA8FA1.87FABD86
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Didn't know there were php logs, I thought they would be included in the =
Apache logs, where do I find the php logs?
=20
~V

________________________________

From: Ashley Sheridan [mailto:ash@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:=20

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?
=20
~V
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash@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
=09
=09
On Thu, 2010-01-07 at 16:50 +1030, James McLean wrote:=20
=09
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb =
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?
=09
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.
=09
Make sure none of your includes have trailing whitespace or are trying
to print out information before the header itself.
=09
Best bet is to turn on errors and log them, then you will see where
the output started if infact that is your issue.
=09
Cheers
=09
=09
=09
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.
=09
=09
Thanks,
Ash
http://www.ashleysheridan.co.uk =
=20
=09
=09
=09
=09


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 =20


=09

--=20
This message has been scanned for viruses and=20
dangerous content by comp-wiz.com , and is=20
believed to be clean.=20

------_=_NextPart_001_01CA8FA1.87FABD86--

RE: Site Moved From PHP4 to PHP5 Server - header, locationno longer working

am 07.01.2010 15:04:02 von Ashley Sheridan

--=-upzTvOlaPl+14Ivffvls
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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:ash@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:ash@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 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
>
>
>
>
>
>
> 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
>
>
>
>


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



--=-upzTvOlaPl+14Ivffvls--

RE: Site Moved From PHP4 to PHP5 Server - header, location no longer working

am 08.01.2010 03:03:12 von Vernon Webb

------_=_NextPart_001_01CA9006.E70F39FE
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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.
=20

________________________________

From: Ashley Sheridan [mailto:ash@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:=20

Didn't know there were php logs, I thought they would be included in =
the Apache logs, where do I find the php logs?
=20
~V
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash@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
=09
=09
On Thu, 2010-01-07 at 08:40 -0500, Vernon Webb wrote:=20
=09
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?
=20
~V
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash@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
=09
=09
On Thu, 2010-01-07 at 16:50 +1030, James McLean wrote:=20
=09
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb =
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?
=09
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.
=09
Make sure none of your includes have trailing whitespace or are =
trying
to print out information before the header itself.
=09
Best bet is to turn on errors and log them, then you will see where
the output started if infact that is your issue.
=09
Cheers
=09
=09
=09
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.
=09
=09
Thanks,
Ash
http://www.ashleysheridan.co.uk =
=20
=09
=09
=09
=09
=09
=09
Have you checked both the PHP and Apache error logs? Things like =
invalid commands in an .htaccess file can cause server crashes.
=09
=09
Thanks,
Ash
http://www.ashleysheridan.co.uk =
=20
=09
=09
=09
=09


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 =20


=09

--=20
This message has been scanned for viruses and=20
dangerous content by comp-wiz.com , and is=20
believed to be clean.=20

------_=_NextPart_001_01CA9006.E70F39FE--