LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-21-2009, 05:39 AM   #1
bhedrington
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
HTTPD times out with PHP include files on CENTOS5


Errors Only happen on external addresses: (Not on my local network 192.x.x.x).

Web page times out under the following conditions:

Web page (PHP) index.php
Includes many files (PHP INCLUDE STATEMENT)

The include files use imagemap or images from a server...

Ex:
<area shape="rect" coords="856,23,951,46" href="http://www.example.com/redirect.cgi?ss=<?php echo "$ss"; ?>&page=example/index" target="_blank" alt="Some random text" />

If this line is in the file it will timeout on ONLY external clients (not on the 192.x.x.x network)

This exact code WORKED on another centos server so I'm thinking there is something I'm missing on setup or access controls.

If I just put in some generic php or html the file loads at the remote web browsers just fine.

It seems to be the alt tags or reference to img maps/images that cause the issues. I can echo the statement through php and get the same issue.

Checked for unprintable chars...

I've been working on this tonight to no avail...

Any help would be appreciated.

Thanks

P.S.
here is the System Config
System hostname BH-Linux-01
Operating system CentOS Linux 5.4
Webmin version 1.500
Time on system Mon Dec 21 04:18:34 2009
Kernel and CPU Linux 2.6.18-164.9.1.el5 on x86_64
Processor information Intel(R) Core(TM) i7 CPU 975 @ 3.33GHz, 8 cores
System uptime 3 days, 12 hours, 11 minutes
Running processes 254
CPU load averages 0.00 (1 min) 0.02 (5 mins) 0.00 (15 mins)
Real memory 11.72 GB total, 435.81 MB used
Virtual memory 13.69 GB total, 0 bytes used
Local disk space 5.27 TB total, 287.91 GB used
 
Old 12-21-2009, 03:24 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Is there any clue in the Apache error logs? (assuming your using Apache). Also, what time-out settings do you have set in php.ini, and I noticed your using short-tags '<?', are these enabled in php.ini?
 
Old 12-22-2009, 01:49 PM   #3
bhedrington
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by harry edwards View Post
Is there any clue in the Apache error logs? (assuming your using Apache). Also, what time-out settings do you have set in php.ini, and I noticed your using short-tags '<?', are these enabled in php.ini?
Yes I am using apache and no message in the error logs. The access log show the access but no transfer of datd (ex: the .jpg file).

The php works just fine unless I call an external fuke such as a ,jpg and the file works 100% including the external file if I hit the web page from my internal network.

Thanks
Btret
 
Old 12-22-2009, 01:52 PM   #4
bhedrington
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by harry edwards View Post
Is there any clue in the Apache error logs? (assuming your using Apache). Also, what time-out settings do you have set in php.ini, and I noticed your using short-tags '<?', are these enabled in php.ini?
Also tried it without the PHP same problem as with the php included.

Thanks
Bret
 
  


Reply

Tags
apache, centos, linux, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP include files not loading enew Linux - Server 3 12-09-2007 04:38 PM
Caching files accessed by a PHP include in server's memory pafinator11 Programming 5 11-30-2007 03:28 PM
Plesk httpd.include help DropHit Linux - Software 2 02-14-2005 12:47 PM
Plesk httpd.include help DropHit Linux - Software 1 02-14-2005 09:18 AM
php include files abrb220 Programming 2 10-27-2003 07:54 AM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration