LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   [solved] php.ini on Plesk 10 Probleem! (http://www.litespeedtech.com/support/forum/showthread.php?t=5114)

flowcubano 07-07-2011 09:00 AM

[solved] php.ini on Plesk 10 Probleem!
 
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!

webizen 07-07-2011 10:00 AM

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:
Quote:

/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Configuration File"

flowcubano 07-07-2011 10:19 AM

I have restart it and it running on port 80 ( httpd is offline)

When I run the command I get this:

Quote:

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 07-07-2011 10:34 AM

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(); ?>

flowcubano 07-07-2011 10:41 AM

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!

webizen 07-07-2011 04:18 PM

Are you sure Apache is stopped? The server signature is still Apache from below. Is this the server in question?

Quote:

~>curl -I http://46.4.90.81/info.php
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2011 07:17:31 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Connection: close
Content-Type: text/html


flowcubano 07-07-2011 11:03 PM

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!

flowcubano 07-08-2011 12:42 AM

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' )
Quote:

'--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:
Quote:

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

flowcubano 07-08-2011 01:07 AM

Hello I have fix the probleem!

I have use this to compile php: --with-mysql=/usr/bin/ --with-libdir=lib64

Thank You For The Support!!!


All times are GMT -7. The time now is 09:32 AM.