[solved] php.ini on Plesk 10 Probleem!

#1
Hello

I have probleem with the php.ini

I have Compile php 5.1.6 to PHP 5.3.6 with LSAPI.
With the admin webserver - Compile PHP.

I have place the php.ini on /usr/local/lsws/lsphp5/lib/php.ini

But when I go to upgrade wordpress it say that I have php 5.1.6
And my php page info show php 5.1.6 to

I have try to place the php.ini on /usr/local/lsws/php/php.ini

but it not working I get the same probleem.


How can I fix it?

Thanks!
 
Last edited by a moderator:

webizen

Well-Known Member
#2
Once PHP compiled via LSWS Admin Console, LSWS needs restart to make the new PHP effective. Also, make sure LSWS is running on port 80 (instead of Apache).

To verify whether and/or which php.ini is in use, do the followings from command line:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Configuration File"
 
Last edited:
#3
I have restart it and it running on port 80 ( httpd is offline)

When I run the command I get this:

Configuration File (php.ini) Path => /usr/local/lsws/lsphp5/lib
Loaded Configuration File => /usr/local/lsws/lsphp5/lib/php.ini
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Eur
ope/Berlin' for 'CEST/2.0/DST' instead in Unknown on line 0[
And still not working!

On "External app" command line I have this: $SERVER_ROOT/fcgi-bin/lsphp5

You know other solution?

Thanks!
 

webizen

Well-Known Member
#4
check /usr/local/lsws/lsphp5/lib/php.ini and make sure you have an entry "date.timezone='Europe/Berlin'" in there.

run '/usr/local/lsws/fcgi-bin/lsphp5 -v' from command line to see which version is running at. also, create a simple phpinfo page with the following to verify from browser
Code:
<?php phpinfo(); ?>
 
#5
I have fix the timezone!

http://46.4.90.81/info.php

[root@eu ~]# /usr/local/lsws/fcgi-bin/lsphp5 -v
PHP 5.3.6 (litespeed) (built: Jul 8 2011 00:20:56)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

I have restart litespeed but still not working!
 
#7
oky thanks it work now!

But I get now this error en my website: Error establishing a database connection

I have read that I have to : compile PHP mysql module and set correct mysql socket path

But I don't not know how to do that kan you tell my how I can do that?

Thanks!
 
#8
I have update the mysql.default_socket on my php.ini to te corect mysql socket but it still don't working.

I have compile php again with this: ( '--with-mysql' )
'--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-mysql' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-litespeed'
But I get this error:
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
**ERROR** Could not configure PHP build
 
Top