[SOLVED] PHP Modules missing

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

Moderators: Developers, Moderators

Post Reply
gmc
Posts: 3
Joined: Fri May 11, 2018 7:55 am

[SOLVED] PHP Modules missing

Post by gmc »

Having issues with php modules missing. I've read through lots of posts with similar issues but have not managed to find a solution yet.

ctype, zlib, PDO etc all say "CLI - No"

OS: Windows 7, 32 bit

Cacti: 1.2.8

Apache:
Server version: Apache/2.4.41 (Win32)
Server built: Aug 10 2019 12:59:56

PHP 7.4.0 (cli) (built: Nov 27 2019 10:15:52) ( ZTS Visual C++ 2017 x86 )

MySQL: Server version: 5.5.62-log MySQL Community Server (GPL)

I've run php cli_check.php extensions and get:

Code: Select all

{"ctype":{"cli":true,"web":false},"PDO":{"cli":true,"web":false},"zlib":{"cli":t
rue,"web":false},"xml":{"cli":true,"web":false},"standard":{"cli":true,"web":fal
se},"spl":{"cli":true,"web":false},"sockets":{"cli":true,"web":false},"simplexml
":{"cli":true,"web":false},"session":{"cli":true,"web":false},"pdo_mysql":{"cli"
:true,"web":false},"pcre":{"cli":true,"web":false},"date":{"cli":true,"web":fals
e},"openssl":{"cli":false,"web":false},"mbstring":{"cli":false,"web":false},"lda
p":{"cli":false,"web":false},"json":{"cli":true,"web":false},"hash":{"cli":true,
"web":false},"gmp":{"cli":false,"web":false},"gd":{"cli":true,"web":false},"filt
er":{"cli":true,"web":false},"com_dotnet":{"cli":false,"web":false}}
Have also checked the path_php_binary is set in MySQL

Code: Select all

mysql> select * from settings where name='path_php_binary';
+-----------------+----------------+
| name            | value          |
+-----------------+----------------+
| path_php_binary | c:\php\php.exe |
+-----------------+----------------+
php -m returns:

Code: Select all

[PHP Modules]
bcmath
calendar
Core
ctype
date
dom
filter
gd
hash
iconv
json
libxml
mysqli
mysqlnd
pcre
PDO
pdo_mysql
Phar
readline
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
Have also enabled debug logging. install-complete.log:

https://pastebin.com/JafEXGtR

Not sure where to look next? Any ideas?
gmc
Posts: 3
Joined: Fri May 11, 2018 7:55 am

Re: PHP Modules missing

Post by gmc »

Problem fixed. :o

path_php_binary should be c:/php/php.exe (And not c:\php\php.exe)
idv8361
Posts: 1
Joined: Thu Jan 02, 2020 5:49 am

Re: [SOLVED] PHP Modules missing

Post by idv8361 »

Hello

I also have the same problem. Could you tell me where the "path_php_binary" where should be? I have nothing like this in settings...
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: [SOLVED] PHP Modules missing

Post by netniV »

it is the settings table in mysql.
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
meow
Posts: 1
Joined: Thu Feb 27, 2020 4:11 am

Re: [SOLVED] PHP Modules missing

Post by meow »

I cannot find php_path_binary from settings table at this moment(pre-install check).
So I manually inserted it.
Must use forward slash, or installer cannot find php.exe

Code: Select all

INSERT INTO cacti.settings (name, value) VALUES('path_php_binary', 'c:/tools/php74/php.exe');
braveheart814
Posts: 1
Joined: Wed Mar 25, 2020 11:35 am

Re: [SOLVED] PHP Modules missing

Post by braveheart814 »

Hey meow,
if its not to much trouble please reply how to find and edit the settings table, that would be purrrrrfect thank you
k2gu
Posts: 1
Joined: Fri Dec 01, 2023 3:58 pm

Re: [SOLVED] PHP Modules missing

Post by k2gu »

Hey braveheart814!

What I did is that i searched for mysql in Windows searcher, I opened the MySQL command Line Client - Unicode
typed:
USE cacti
INSERT INTO cacti.settings (name, value) VALUES('path_php_binary', 'C:/php/php.exe');

and so it was done

Also I just copied the php folder from Cacti folder to C:/
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest