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

------_=_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--
Vernon Webb [ Do, 07 Januar 2010 04:05 ] [ ID #2028088 ]

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

On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb <vernon [at] comp-wiz.com> 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
James Mclean [ Do, 07 Januar 2010 07:20 ] [ ID #2028092 ]

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

--=-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 <vernon [at] 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



--=-BvlJZHxWlTqAryvh3ndj--
Ashley Sheridan [ Do, 07 Januar 2010 13:52 ] [ ID #2028104 ]

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

------_=_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?

~V

________________________________

From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 7:52 AM
To: James McLean
Cc: Vernon Webb; php-general [at] 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 <vernon [at] 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?
=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 <http://www.ashleysheridan.co.uk/>


=09

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

------_=_NextPart_001_01CA8F9E.EA30DDDA--
Vernon Webb [ Do, 07 Januar 2010 14:40 ] [ ID #2028108 ]

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

--=-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 [at] ashleysheridan.co.uk]
> Sent: Thu 1/7/2010 7:52 AM
> To: James McLean
> Cc: Vernon Webb; php-general [at] 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 <vernon [at] 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/>
>
>
>
>


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--
Ashley Sheridan [ Do, 07 Januar 2010 14:42 ] [ ID #2028109 ]

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

------_=_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?

~V

________________________________

From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 8:42 AM
To: Vernon Webb
Cc: php-general [at] 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
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 7:52 AM
To: James McLean
Cc: Vernon Webb; php-general [at] 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:
=09
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb <vernon [at] 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?
=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 <http://www.ashleysheridan.co.uk/> =
<http://www.ashleysheridan.co.uk/>
=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 <http://www.ashleysheridan.co.uk/>


=09

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

------_=_NextPart_001_01CA8FA1.87FABD86--
Vernon Webb [ Do, 07 Januar 2010 14:57 ] [ ID #2028110 ]

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

--=-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 [at] ashleysheridan.co.uk]
> Sent: Thu 1/7/2010 8:42 AM
> To: Vernon Webb
> Cc: php-general [at] 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 [at] ashleysheridan.co.uk]
> Sent: Thu 1/7/2010 7:52 AM
> To: James McLean
> Cc: Vernon Webb; php-general [at] 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 <vernon [at] 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/>
>
>
>
>
>
>
> 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/>
>
>
>
>


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--
Ashley Sheridan [ Do, 07 Januar 2010 15:04 ] [ ID #2028111 ]

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

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


________________________________

From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 9:04 AM
To: Vernon Webb
Cc: php-general [at] 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
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 8:42 AM
To: Vernon Webb
Cc: php-general [at] 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:
=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?

~V
=09
________________________________
=09
From: Ashley Sheridan [mailto:ash [at] ashleysheridan.co.uk]
Sent: Thu 1/7/2010 7:52 AM
To: James McLean
Cc: Vernon Webb; php-general [at] 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:
=09
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb <vernon [at] 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?
=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 <http://www.ashleysheridan.co.uk/> =
<http://www.ashleysheridan.co.uk/> <http://www.ashleysheridan.co.uk/>
=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 <http://www.ashleysheridan.co.uk/> =
<http://www.ashleysheridan.co.uk/>
=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 <http://www.ashleysheridan.co.uk/>


=09

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

------_=_NextPart_001_01CA9006.E70F39FE--
Vernon Webb [ Fr, 08 Januar 2010 03:03 ] [ ID #2028177 ]
PHP » gmane.comp.php.general » Site Moved From PHP4 to PHP5 Server - header, location no longer working

Vorheriges Thema: How to write specification
Nächstes Thema: cannot access SimpleXML object property