Cacti server v1.2.5 PHP problem

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Apollion
Posts: 5
Joined: Wed Aug 14, 2019 4:31 am

Cacti server v1.2.5 PHP problem

Post by Apollion »

Hello,
Im new to cacti, but ive been trying to make it work in last few days. I used Cacti Windows Installed updated 18-07-2019, (cacti 1.2.5 spine 1.2.5. apache 2.4, mysql 5.7, php 7.2.20) everything went fine, no installation errors( i installed cacti on new clean system with all required drivers).
Im stuck at localhost\cacti\ this is what i get

Image

i added to enviroment variables c:\cacti\php as PHPRC and c:\cacti\php\extras\mibs as MIBDIRS.

Here is apache error log
[Wed Aug 14 10:22:52.067844 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00424: Parent: Received restart signal -- Restarting the server.
[Wed Aug 14 10:22:52.250795 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00455: Apache/2.4.39 (Win64) configured -- resuming normal operations
[Wed Aug 14 10:22:52.250795 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00456: Apache Lounge VC15 Server built: Mar 28 2019 11:59:33
[Wed Aug 14 10:22:52.250795 2019] [core:notice] [pid 5524:tid 708] AH00094: Command line: 'C:\\Cacti\\Apache24\\bin\\httpd.exe -d C:/Cacti/Apache24'
[Wed Aug 14 10:22:52.274324 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00418: Parent: Created child process 32
[Wed Aug 14 10:22:53.069495 2019] [mpm_winnt:notice] [pid 32:tid 656] AH00354: Child: Starting 64 worker threads.
[Wed Aug 14 10:22:54.081432 2019] [mpm_winnt:notice] [pid 5492:tid 656] AH00364: Child: All worker threads have exited.
[Wed Aug 14 10:26:35.910378 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00424: Parent: Received restart signal -- Restarting the server.
[Wed Aug 14 10:26:36.084390 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00455: Apache/2.4.39 (Win64) configured -- resuming normal operations
[Wed Aug 14 10:26:36.084390 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00456: Apache Lounge VC15 Server built: Mar 28 2019 11:59:33
[Wed Aug 14 10:26:36.084390 2019] [core:notice] [pid 5524:tid 708] AH00094: Command line: 'C:\\Cacti\\Apache24\\bin\\httpd.exe -d C:/Cacti/Apache24'
[Wed Aug 14 10:26:36.128438 2019] [mpm_winnt:notice] [pid 5524:tid 708] AH00418: Parent: Created child process 7468
[Wed Aug 14 10:26:36.911099 2019] [mpm_winnt:notice] [pid 7468:tid 660] AH00354: Child: Starting 64 worker threads.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-v' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-v' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-v' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.
'-q' is not recognized as an internal or external command,
operable program or batch file.


Im running out of ideas how to fix it.
I already checked php.ini file, i tried to add manually extensions listed above however with no result.
Apollion
Posts: 5
Joined: Wed Aug 14, 2019 4:31 am

Re: Cacti server v1.2.5 PHP problem

Post by Apollion »

I eddited PATH

C:\Users\Administrator>php -v
PHP 7.2.20 (cli) (built: Jul 2 2019 13:01:33) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.20, Copyright (c) 1999-2018, by Zend Technologies

C:\Users\Administrator>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
date
dom
filter
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
Phar
readline
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti server v1.2.5 PHP problem

Post by netniV »

What is slightly worrying is all the '-q' and '-v' parameters not being allowed in your logs.

Check the mysql settings table for the path_php_binary and see what that is set to. That is used to run the install/cli_check.php with various parameters. If that fails, then it doesn't get back to modules it expects. It may also be possible that an error is appearing which messes with the json output.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Apollion
Posts: 5
Joined: Wed Aug 14, 2019 4:31 am

Re: Cacti server v1.2.5 PHP problem

Post by Apollion »

netniV wrote: Wed Aug 14, 2019 7:34 am What is slightly worrying is all the '-q' and '-v' parameters not being allowed in your logs.

Check the mysql settings table for the path_php_binary and see what that is set to. That is used to run the install/cli_check.php with various parameters. If that fails, then it doesn't get back to modules it expects. It may also be possible that an error is appearing which messes with the json output.
Thanks for your quick response.
About mysql setting table, do you mean file in programdata\mysql\mysql server 5.7\my.ini ?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti server v1.2.5 PHP problem

Post by netniV »

No, I mean the actual database tables that cacti users.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Apollion
Posts: 5
Joined: Wed Aug 14, 2019 4:31 am

Re: Cacti server v1.2.5 PHP problem

Post by Apollion »

Hello,

Today i installed xampp(i did clean installation that means i deleted all cacti/mysql/php etc files and installed xampp then and so on), latest working build.

However i got error 200k during cacti installation.
I tried Edge, Chrome

//edit i checked other threads with same error. Apache log error looks the same like before, php error log is clean.

Action failed
Sorry, we could not process your last action.
Error: 200 OK
Reason:
Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\cacti\lib\utility.php on line 1439
{"Mode":"1","Step":"2","Errors":{"Modules":["ctype is missing","PDO is missing","zlib is missing","xml is missing","standard is missing","spl is missing","sockets is missing","simplexml is missing","session is missing","pdo_mysql is missing","pcre is missing","date is missing","openssl is missing","mbstring is missing","ldap is missing","json is missing","hash is missing","gmp is missing","gd is missing","filter is missing","com_dotnet is missing"],"Paths":{"path_php_binary":"File not found","path_rrdtool":"File not found"}},"Eula":"1","Prev":{"Text":"Previous","Step":1,"Enabled":true,"Visible":true},"Next":{"Text":"Next","Step":3,"Enabled":false,"Visible":true},"Test":{"Text":"Test Connection","Step":-4,"Enabled":true,"Visible":false},"Theme":"dark","StepData":{"Sections":{"location":2,"php_modules":0,"php_optional":1,"mysql_timezone":0,"mysql_performance":0,"php_recommends_web":1,"php_recommends_cli":2}},"Html":"
Pre-installation Checks<\/h2>
Location checks<\/h3>
Your Cacti configuration has the relative correct path (url_path) in config.php.<\/p><\/div>

PHP - Recommendations (web)<\/h3>
PHP Recommendations<\/span><\/div> <\/span><\/div><\/div>\n\t\n\t\n\t\n\t
version<\/td>\n\t 7.3.8<\/td>\n\t >= 5.4.0<\/td>\n\t Passed<\/font><\/td>\n\t PHP 5.4.0 is the mimimum version<\/td>\n<\/tr>\n
memory_limit<\/td>\n\t 128M<\/td>\n\t >= 400M<\/td>\n\t Warning<\/font><\/td>\n\t A minimum of 400M MB memory limit<\/td>\n<\/tr>\n
max_execution_time<\/td>\n\t 30<\/td>\n\t >= 60<\/td>\n\t Warning<\/font><\/td>\n\t A minimum of 60 m execution time<\/td>\n<\/tr>\n
date.timezone<\/td>\n\t Europe\/Berlin<\/td>\n\t >= <\/td>\n\t Passed<\/font><\/td>\n\t A valid timezone that matches MySQL and the system<\/td>\n<\/tr>\n<\/table><\/div><\/p><\/div>
PHP - Recommendations (cli)<\/h3>
PHP Recommendations<\/span><\/div> <\/span><\/div><\/div>

However there is still problem with -q and -v in apache logs.
I checked users, temporary all users has all privileges.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti server v1.2.5 PHP problem

Post by netniV »

Can you report this on the cacti GitHub repo please.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Apollion
Posts: 5
Joined: Wed Aug 14, 2019 4:31 am

Re: Cacti server v1.2.5 PHP problem

Post by Apollion »

netniV wrote: Fri Aug 16, 2019 10:19 am Can you report this on the cacti GitHub repo please.
Yes sir, i will report this at github.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests