[Resolved] php.ini

Status
Not open for further replies.
#1
Hi,
i tried this command

Code:
/usr/local/lsws/fcgi-bin/lsphp5 -i | grep php.ini
result:
Configuration File (php.ini) Path => /usr/local/lsws/lsphp5/lib
i checked the path but there is no php.ini!
there is only php folder and no php.ini,

please help
 
Last edited by a moderator:

NiteWave

Administrator
#2
need create a php.ini yourself or copy php.ini from the php package

for example, you compile lsphp-5.3.19 from lsws admin console
Code:
/usr/local/lsws/phpbuild/php-5.3.19>ls -l php.ini*
-rw-r--r-- 1 lsadm lsadm 69606 Nov 21  2012 php.ini-development
-rw-r--r-- 1 lsadm lsadm 69627 Nov 21  2012 php.ini-production
copy one of them to /usr/local/lsws/lsphp5/lib
Code:
/usr/local/lsws/phpbuild/php-5.3.19>cp php.ini-production /usr/local/lsws/lsphp5/lib/php.ini
 
Last edited by a moderator:
#3
ok
i copied by this command:
Code:
cp /usr/local/lib/php.ini /usr/local/lsws/lsphp5/lib
thx
 
Last edited by a moderator:
#5
another problem
i have these in php.ini , but phpinfo doesnt load ioncube loader , pdomysql, ....

INI:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"
extension="eaccelerator.so"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.check_mtime="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.debug="0"
eaccelerator.enable="1"
eaccelerator.filter=""
eaccelerator.optimizer="1"
eaccelerator.shm_max="0"
eaccelerator.shm_only="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_size="16"
eaccelerator.shm_ttl="0"
extension="suhosin.so"
extension = "pdo.so"
extension = "pdo_sqlite.so"
extension = "sqlite.so"
extension = "pdo_mysql.so"
 
Last edited by a moderator:

NiteWave

Administrator
#6
need get the right php.ini first

put a phpinfo() page under document root of a website, access it, then search "Loaded Configuration File"
 
Last edited by a moderator:
Status
Not open for further replies.
Top