PDA

View Full Version : allow_url_fopen and tmp problem


BND
03-01-2010, 10:19 AM
Hello,
i'm LiteSpeed 2cpu ent. licensed user. I'm using Centos 5.3 with cpanel latest.

i have 2 problems.

* allow_url_fopen is ON in /usr/local/lsws/admin/conf/php.ini but file_get_contents and some curl functions not running. I used php.ini (allow_url_fopen = On) but not runned.

* My tmp size is 2 gb. The folder size fill up within 12-15 hours. I'm using a corntab script rm -rf /tmp/* . But i don't like this. What else can I do?

Thank you for your valuable assistance.
Regards.
BND Corp

mistwang
03-01-2010, 11:12 AM
/usr/local/lsws/admin/conf/php.ini is only for litespeed web console, for other web sites, you need to check phpinfo() page to find out the correct php.ini

For temp directory, you can move "Static GZIP Cache Directory" to some where else
http://www.litespeedtech.com/docs/webserver/config/tuning/#gzipCacheDir,

Or, turn off "Auto Update Static File"
http://www.litespeedtech.com/docs/webserver/config/tuning/#gzipAutoUpdateStatic

BND
03-01-2010, 11:27 AM
The php files not running now.

<?php
phpinfo();
?>

returning emtpy page. What is this?

mistwang
03-01-2010, 11:44 AM
It means PHP has not been configured properly. Are you using any control panel?

BND
03-01-2010, 11:51 AM
i'm using centos 5.3 (64 bit) with cpanel 11.25. Some php files not runing. But blogs, forums running. I did not understand it. this crazy problem.

Example: serverproxies.com blog is running but serverproxies.com/phpinfo.php not running.

serverproxies.com/phpinfo.php codes:

<?php
echo phpinfo();
?>

Thank you for your support.

mistwang
03-01-2010, 11:54 AM
You should remove "echo".

BND
03-01-2010, 11:56 AM
removed echo. but returned same empty page.
<?php
phpinfo();
?>

mistwang
03-01-2010, 12:07 PM
looks like that file has been served as static html file.
Please check the .htaccess see if something override the MIME type for ".php" to "text/html".

BND
03-01-2010, 12:12 PM
htaccess:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I changed directory for this page. But i see same empty page.

serverproxies.com/deneme/test.php

BND
03-01-2010, 12:18 PM
and error_lod said:
[01-Mar-2010 22:02:56] PHP Warning: phpinfo() has been disabled for security reasons in /home/serverpr/public_html/deneme/test.php on line 2

mistwang
03-01-2010, 01:14 PM
That's the reason, please check /usr/local/lib/php.ini, that's the php.ini used in cPanel environment.

BND
03-01-2010, 01:19 PM
i resolved this problem thanks. But now, litespeed Admin Web Consol is returning empty page in whm.

mistwang
03-01-2010, 01:42 PM
Maybe you should restore the php.ini under admin/conf/ directory.

BND
03-01-2010, 01:54 PM
My php.ini file is broken. How can I restore? Or, how do I re-install? I did uninstall and re-installed. But not.

BND
03-01-2010, 02:00 PM
i removed the php.ini file and admin console is running now.

mistwang
03-01-2010, 02:44 PM
You can copy admin/conf/php.ini from a expanded installation package.

BND
03-01-2010, 03:57 PM
Thank you. Does Litespeed support xmlrpc? i can not using xmlrpc (in wp).

mistwang
03-01-2010, 08:47 PM
It is a PHP feature, not directly related to LiteSpeed. should work fine if corresponding PHP module is available.

soyturk
03-10-2010, 03:50 AM
build php to your apache php configuration