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

Go Back   LiteSpeed Support Forums > External Applications > PHP > php.ini on cpanel

Reply
 
Thread Tools Display Modes
  #11  
Old 07-12-2012, 01:16 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
I have disable all extension only this left:
date.timezone = "Europe/Berlin"

I have test with this and without this:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"

I have save php.ini and then I test it and it working but when I restart litespeed I get the error.
Reply With Quote
  #12  
Old 07-12-2012, 05:56 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
since it's cPanel, does the php script work fine under apache ?
Reply With Quote
  #13  
Old 07-13-2012, 01:35 AM
flowcubano flowcubano is offline
Member
 
Join Date: May 2011
Posts: 19
Yes before I dont had probleem, it only hapen when I install litespeed and compile php.

This is my Configure Command for compile php to 5.4.4
PHP Code:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-zip' '--with-curl=/opt/curlssl/' '--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-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed' 
I also have try to change Apache Port Offset to 2080 and 2443 but I get this error:
PHP Code:
root@db [~]# service httpd start
(98)Address already in use: make_sockcould not bind to address 0.0.0.0:80
no listening sockets available
shutting down
Unable to open logs
root
@db [~]# service httpd status

Looking up localhost
Making HTTP connection to localhost
Alert
!: Unable to connect to remote host.

lynxCan't access startfile http://localhost/whm-server-status 
But all my website work fine on litespeed
only that probleem with timezone that I need to fix.
Reply With Quote
  #14  
Old 07-13-2012, 05:56 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
looks like litespeed is running on port 80. do 'netstat -tnpl | grep litespeed' to verify.

for the timezone issue. is the php.ini you saved the one in use by lsws? you can do '/usr/local/lsws/fcgi-bin/lsphp5 -i | grep "Configuration File"' to check.
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 11:26 AM.



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