[Resolved] Problem for per user php.ini

Status
Not open for further replies.
#3
please provide more information regarding this.
how did you check ? $VH_HOST or $VH_ROOT ?
I set PHP_INI_SCAN_DIR=$VH_ROOT and check on the phpinfo() what directory he was scanning, and he was scanning /opt/lsws/admin/ as $VH_ROOT.

Mea culpa, $VH_HOST was a mistake.
 
Last edited by a moderator:

NiteWave

Administrator
#4
I tested
PHP_INI_SCAN_DIR=$VH_ROOT
it's working as expected.

what's your $VH_ROOT should be ? how do you know it's scanning /opt/lsws/admin/ ?

by phpinfo() "Additional .ini files parsed" ?
 
Last edited by a moderator:
#5
I tested
PHP_INI_SCAN_DIR=$VH_ROOT
it's working as expected.

what's your $VH_ROOT should be ? how do you know it's scanning /opt/lsws/admin/ ?

by phpinfo() "Additional .ini files parsed" ?

Yes by additional .ini files (who is set to none) parsed and Scan this dir for additional .ini files (who is set to /opt/lsws/admin)

$VH_ROOT hasn't to be /home/username/ ?
 
Last edited by a moderator:

NiteWave

Administrator
#6
$VH_ROOT hasn't to be /home/username/ ?
in cPanel, it should be /home/username/

it's really strange that in your phpinfo.php:
Scan this dir for additional .ini files : /opt/lsws/admin

can you give a screenshot about the phpinfo.php (from top to "Zend Extension" is ok)
 
Last edited by a moderator:
#7
in cPanel, it should be /home/username/

it's really strange that in your phpinfo.php:
Scan this dir for additional .ini files : /opt/lsws/admin

can you give a screenshot about the phpinfo.php (from top to "Zend Extension" is ok)
http://gyazo.com/0d1c227dc50c5cf29878923ff96cc584
http://gyazo.com/9be8c2408e36b5385a0f835391d3540f
http://gyazo.com/8adcfeee3cd85219b0f3483e7260e6a2

Using PHP 5.4.17
 
Last edited by a moderator:

NiteWave

Administrator
#8
in the first screenshot, show
"Server API: LiteSpeed"

maybe you build lsphp with the php source code ?
the lastest API should show
"Server API: LiteSpeed V6.3"

please download latest lsapi for php 6.3:
https://www.litespeedtech.com/open-source/litespeed-sapi/download
copy *.h and *.c to overwrite php-5.4.17 source tree:
php-5.4.17/sapi/litespeed
then build lsphp-5.4.17 again

see if the issue gone
 
Last edited by a moderator:
#9
in the first screenshot, show
"Server API: LiteSpeed"

maybe you build lsphp with the php source code ?
the lastest API should show
"Server API: LiteSpeed V6.3"

please download latest lsapi for php 6.3:
https://www.litespeedtech.com/open-source/litespeed-sapi/download
copy *.h and *.c to overwrite php-5.4.17 source tree:
php-5.4.17/sapi/litespeed
then build lsphp-5.4.17 again

see if the issue gone
Is now showing LiteSpeed V6.3 but the issue isn't gone
I retry to build using EasyApache and LSAPI, same.
 
Last edited by a moderator:
#13
I fixed it, on reinstalling litespeed and recompiling a custom older php version (5.4.10, restarting all, and now it's working, i dunno why that doesn't work the last time.

Thanks for helping
 
Status
Not open for further replies.
Top