[quote=vipsoft @ Jul 21 2010, 04:15 PM]Does a simple phpinfo.php script work?
<?php phpinfo();
[/quote]
I have created some defaultPHPWebApp with all necessary CGIServlet settings in web.xml and weblogic.xml descriptor. so now when I type php.info I get text like at end of this post. Also I added piwik extracted zip to servlet’s php script path. When I try to invoke piwik.php I get following:
Warning: parse_ini_file(M:\piwik/config/config.ini.php): failed to open stream: No such file or directory in M:\piwik\libs\upgradephp\upgrade.php on line 463
Piwik is a free open source web analytics alternative to Google analytics.
However, the php script exists, but do I need to put every folder that contains php file into into servlet cgidir ?? What is the easyest and fastest way to get it working. I haven’t even started with db stuff, I guess there will be more job to do…
Anyway, will including piwik and all folders be enough ?
many thanks.
===========================================================
Web.xml for the setting of PHP and piwik into the PHP script path.
<servlet>
<servlet-name>PHPCGIServlet</servlet-name>
<servlet-class>weblogic.servlet.CGIServlet</servlet-class>
<init-param>
<param-name>cgiDir</param-name>
<param-value>M:/php_scripts;M:/piwik</param-value>
</init-param>
<init-param>
<param-name>*.php</param-name>
<param-value>php.exe</param-value>
</init-param>
<init-param>
<param-name>useByteStream</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>PHPCGIServlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>piwik.php</welcome-file>
</welcome-file-list>
===========================================================
PHP INFO - some of settings that might be important
Core
PHP Version => 5.3.1
Directive => Local Value => Master Value
allow_call_time_pass_reference => Off => Off
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Registered Stream Socket Transports => tcp, udp, ssl, sslv3, sslv2, tls
Registered Stream Filters => convert.iconv., string.rot13, string.toupper, string.tolower, string.strip_tags, convert., consumed, dechunk, zlib., bzip2.
CharConv => No
Protocols => tftp, ftp, telnet, dict, ldap, http, file, https, ftps, scp, sftp
Host => i386-pc-win32
SSL Version => OpenSSL/0.9.8l
ZLib Version => 1.2.3
libSSH Version => libssh2/1.1
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $
Persistent cache => enabled
Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.cache_size => 2000 => 2000
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqlnd
mysqlnd => enabled
Version => mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 31536000
Collecting statistics => Yes
Collecting memory statistics => No