LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > mysql in latest php build

Reply
 
Thread Tools Display Modes
  #11  
Old 02-08-2012, 01:21 PM
stairmaster stairmaster is offline
Member
 
Join Date: Mar 2011
Posts: 22
FYI This works too

$a = file_get_contents("/home/aaa/public_html/xxx.html");
echo $a;
Reply With Quote
  #12  
Old 02-08-2012, 03:43 PM
stairmaster stairmaster is offline
Member
 
Join Date: Mar 2011
Posts: 22
If we restart litespeed, the site includes work for a few minutes, then they start having the same error again.

We thought it may be based on too much traffic, so we only allowed our IP to access the site, and then restarted litespeed, and again it worked for a couple minutes and then broke, just like before.

Is there something that our copy of litespeed has downloaded in the background that would be causing this? We have version 4.1.10
Reply With Quote
  #13  
Old 02-08-2012, 05:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
was to ask you about this once mysql connection gets resolved.

Quote:
Originally Posted by stairmaster View Post
...
Is there something that our copy of litespeed has downloaded in the background that would be causing this? We have version 4.1.10
don't think that would make any difference.

in just case, pls check if allow_url_open is on in your php setting

Quote:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep allow_url
btw, what's your server environment?
Reply With Quote
  #14  
Old 02-08-2012, 06:01 PM
stairmaster stairmaster is offline
Member
 
Join Date: Mar 2011
Posts: 22
server environment .. 4cpu linux, 4pcu license litespeed webserver, with a separate mysql database server.

Here's the results of what you asked.
allow_url_fopen => On => On
allow_url_include => Off => Off

So one is on and the other off.
Reply With Quote
  #15  
Old 02-08-2012, 06:50 PM
stairmaster stairmaster is offline
Member
 
Join Date: Mar 2011
Posts: 22
Looking at php.info I see the following

php 5.2.11

options -
'./configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-pic' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed'

curl
cURL support enabled
cURL Information libcurl/7.19.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

Maybe something in those values can shed some light on this?
Reply With Quote
  #16  
Old 02-08-2012, 09:47 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Update:

due to file_get_contents(URL), server IP exceeds per client throttling limits (Admin CP -> Server -> Security). hence the problem. once added server IP to allow list (with trailing T), the issue is gone.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:22 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.