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

Go Back   LiteSpeed Support Forums > External Applications > PHP > [solved] php.ini on Plesk 10 Probleem!

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2011, 09:00 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
Default [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!

Last edited by NiteWave; 07-08-2011 at 02:23 AM..
Reply With Quote
  #2  
Old 07-07-2011, 10:00 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
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"

Last edited by webizen; 07-07-2011 at 10:02 AM..
Reply With Quote
  #3  
Old 07-07-2011, 10:19 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
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!
Reply With Quote
  #4  
Old 07-07-2011, 10:34 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
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(); ?>
Reply With Quote
  #5  
Old 07-07-2011, 10:41 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
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!
Reply With Quote
  #6  
Old 07-07-2011, 04:18 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
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
Reply With Quote
  #7  
Old 07-07-2011, 11:03 PM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
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!
Reply With Quote
  #8  
Old 07-08-2011, 12:42 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
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
Reply With Quote
  #9  
Old 07-08-2011, 01:07 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
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!!!
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 02:45 AM.



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