Inconsistency of PHP path and config file

tim874536

Verified User
Joined
Nov 24, 2006
Messages
73
Dear All,

I was using CentOS 6 with CB2.0. A few days ago, I upgraded to CloudLinux with lsphp.
However, after finishing the installation, the phpinfo shows different paths which included the mod_php path and lsphp new path.
May I know how can I fix it? This is the only server shows such situation.

Problemtic server:
PHP Version 5.3.29
Code:
Configure Command	'./configure' '--prefix=/usr/local/php53' '--program-suffix=53' '--with-litespeed' '--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl'
Server API	LiteSpeed V6.8
Virtual Directory Support	disabled
Configuration File (php.ini) Path	[B][I]/usr/local/php53/lib[/I][/B]
Loaded Configuration File	[B][COLOR="#FF0000"]/usr/local/lib/php.ini[/COLOR][/B]
Scan this dir for additional .ini files	[B][COLOR="#FF0000"]/usr/local/lib/php.conf.d[/COLOR][/B]
Additional .ini files parsed	[B][COLOR="#FF0000"]/usr/local/lib/php.conf.d[/COLOR][/B]/10-directadmin.ini, /usr/local/lib/php.conf.d/50-webapps.ini

Normal server
PHP Version 5.3.29
All are /usr/local/php53/
Code:
Configure Command	'./configure' '--prefix=/usr/local/php53' '--program-suffix=53' '--with-litespeed' '--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl'
Server API	LiteSpeed V6.8
Virtual Directory Support	disabled
Configuration File (php.ini) Path	[B]/usr/local/php53/lib[/B]
Loaded Configuration File	[B]/usr/local/php53/lib/php.ini[/B]
Scan this dir for additional .ini files	[B]/usr/local/php53/lib/php.conf.d[/B]
Additional .ini files parsed	[B]/usr/local/php53/lib/[/B]php.conf.d/10-directadmin.ini, /usr/local/php53/lib/php.conf.d/50-webapps.ini

Thank you very much.
Tim
 
I have tested the following and cannot fix the situation.
1. Install php 5.4, the phpinfo and path shows correctly
2. Reinstall php 5.3, the path is incorrect.
3. Install php 5.4, once the platform ready, delete the whole /usr/local/php53 folder and reinstall php53, problem not solved.

Thank you ben29

Here is the Options.conf
Code:
#PHP Settings
[B]php1_release=5.3[/B]
[B]php1_mode=lsphp[/B]
php2_release=no
php2_mode=php-fpm
[B]opcache=yes[/B]
htscanner=no
[B]php_ini=yes[/B]
php_timezone=Asia/Hong_Kong
php_ini_type=production
[B]ioncube=yes[/B]
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.5
mysql_inst=mysql
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=hkecs-server7.ecshopcity.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.4
blockcracking=yes
easy_spam_fighter=yes
spamassassin=yes
dovecot=yes
dovecot_conf=yes
pigeonhole=no

#FTP Settings
ftpd=proftpd

#Statistics Settings
awstats=yes
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=no
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files12.directadmin.com

#Cronjob Settings
cron=no
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=yes
cagefs=yes

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_pcre=no

mariadb=10.0
sa_update=daily
userdir_access=yes
 
I understand that this is not a commond situation.
May I know is there anyone have a way to fix this?
Thank you very much.
 
Back
Top