Two problems with CACTI installation on Fedora 27 server
Moderators: Developers, Moderators
Two problems with CACTI installation on Fedora 27 server
Hello,
I am using Fedora 27 server in my office and I decided to install CACTI.
The version of HTTP server is:
# httpd -v
Server version: Apache/2.4.29 (Fedora)
Server built: Oct 25 2017 12:34:45
The version ov PHP is:
# php -v
PHP 7.1.15 (cli) (built: Feb 28 2018 11:19:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
All required php modules are installed. In the PHP.ini file the date time is set to date.timezone = 'Europe/Sofia' (btw I tried with ', with ", without them /with apostroff, with quotation marks and without them/).
In the same time when I tried to do an initiall installation of the cacti (via web interface), I am getting next errors:
PHP Timezone Support
ERROR: Your Web Servers PHP Timezone settings have not been set. Please edit php.ini and uncomment the 'date.timezone' setting and set it to the Web Servers Timezone per the PHP installation instructions prior to installing Cacti.
Required PHP Modules
Name Required Installed
PHP Version 5.2.0+ 7.1.15
posix Yes No
session Yes Yes
sockets Yes Yes
PDO Yes Yes
pdo_mysql Yes Yes
xml Yes No
ldap Yes Yes
mbstring Yes No
pcre Yes Yes
json Yes Yes
openssl Yes Yes
gd Yes No
zlib Yes Yes
About the first error:
If I try the next commands I am getting:
# date
Tue Mar 27 15:20:29 EEST 2018
#php -r "echo date('r').PHP_EOL;"
Tue, 27 Mar 2018 15:20:47 +0300 ---- it supposed to be +0200
mysql -u root -p -e "SELECT NOW();"
Enter password:
+---------------------+
| NOW() |
+---------------------+
| 2018-03-27 15:21:13 |
+---------------------+
About the modules:
If I try to install them I'm gettring:
]# dnf install php-xml php-posix php-mbstring php-gd
Last metadata expiration check: 0:26:01 ago on Tue 27 Mar 2018 03:15:28 PM EEST.
Package php-xml-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-process-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-mbstring-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-gd-7.1.15-1.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Please help. There is obviously something wrong, but I cannot find out wht it is.
I am using Fedora 27 server in my office and I decided to install CACTI.
The version of HTTP server is:
# httpd -v
Server version: Apache/2.4.29 (Fedora)
Server built: Oct 25 2017 12:34:45
The version ov PHP is:
# php -v
PHP 7.1.15 (cli) (built: Feb 28 2018 11:19:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
All required php modules are installed. In the PHP.ini file the date time is set to date.timezone = 'Europe/Sofia' (btw I tried with ', with ", without them /with apostroff, with quotation marks and without them/).
In the same time when I tried to do an initiall installation of the cacti (via web interface), I am getting next errors:
PHP Timezone Support
ERROR: Your Web Servers PHP Timezone settings have not been set. Please edit php.ini and uncomment the 'date.timezone' setting and set it to the Web Servers Timezone per the PHP installation instructions prior to installing Cacti.
Required PHP Modules
Name Required Installed
PHP Version 5.2.0+ 7.1.15
posix Yes No
session Yes Yes
sockets Yes Yes
PDO Yes Yes
pdo_mysql Yes Yes
xml Yes No
ldap Yes Yes
mbstring Yes No
pcre Yes Yes
json Yes Yes
openssl Yes Yes
gd Yes No
zlib Yes Yes
About the first error:
If I try the next commands I am getting:
# date
Tue Mar 27 15:20:29 EEST 2018
#php -r "echo date('r').PHP_EOL;"
Tue, 27 Mar 2018 15:20:47 +0300 ---- it supposed to be +0200
mysql -u root -p -e "SELECT NOW();"
Enter password:
+---------------------+
| NOW() |
+---------------------+
| 2018-03-27 15:21:13 |
+---------------------+
About the modules:
If I try to install them I'm gettring:
]# dnf install php-xml php-posix php-mbstring php-gd
Last metadata expiration check: 0:26:01 ago on Tue 27 Mar 2018 03:15:28 PM EEST.
Package php-xml-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-process-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-mbstring-7.1.15-1.fc27.x86_64 is already installed, skipping.
Package php-gd-7.1.15-1.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
Please help. There is obviously something wrong, but I cannot find out wht it is.
Re: Two problems with CACTI installation on Fedora 27 server
I have recently done a Fedora 27 installation so I know it's possible and it should be fairly straight forward. I have notes on my wiki page from my test environment. Please note, my test setups always create three sites so when reading the instructions over be prepared to adjust according to your single installation.
https://github.com/netniV/cacti/wiki/Te ... nt:-Fedora
https://github.com/netniV/cacti/wiki/Te ... nt:-Fedora
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 45
- Joined: Fri Feb 09, 2018 9:31 am
Re: Two problems with CACTI installation on Fedora 27 server
I just finished a Fedora 27 installation.
It should install every dependency with ''dnf install cacti'.
My php.ini says and works:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Amsterdam
Maybe you should do without quotation marks!
Try uninstall the dependencies and reïnstalling.
You could also try to reïnstall cacti.
It should install every dependency with ''dnf install cacti'.
My php.ini says and works:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Amsterdam
Maybe you should do without quotation marks!
Try uninstall the dependencies and reïnstalling.
You could also try to reïnstall cacti.
Re: Two problems with CACTI installation on Fedora 27 server
Hello nilsvandermark.
Thank you for the replay.
I took a look at the configurations you have post to your wiki.
I think I have everything this in my configuration (keeping in mind that mine is for a single site).
What I do not have is the SSL configurations, but so far I think I do not neet them.
I do not get the meaning of:
Configuration MySQL
Enable custom configurations - " > /etc/my.cnf.d/cacti.cnf. Could you explain me what this means and where you put this?
Everythin else I have written (with the difference that except default_time_zone='+00:00' I have default_time_zone='+02:00'.
But I thing this is not a problem. The problem could be that the time in the base sistem, http and the database are absolutely equal, but if I ask for the time zone it sais +03:00, doesn't matter that I am setting default_time_zone='+02:00' and date.timezone = 'Europe/Sofia".
And of course another problem is that cacti doesn't recognize the installed PHP modules and in the same time it sais that those modules are required.
If you can give me some other advises I really will appresiate this.
Thanks again.
P.S. And as I said I tried date.timezone = 'Europe/Sofia', date.timezone = "Europe/Sofia", date.timezone = Europe/Sofia.
It doesn't issue any error and if I change Sofia with the city in different time zone (for example 'UTC' - it changes the time in PHP. So for me this works, but for cacti obviously doesn't.
Thank you for the replay.
I took a look at the configurations you have post to your wiki.
I think I have everything this in my configuration (keeping in mind that mine is for a single site).
What I do not have is the SSL configurations, but so far I think I do not neet them.
I do not get the meaning of:
Configuration MySQL
Enable custom configurations - " > /etc/my.cnf.d/cacti.cnf. Could you explain me what this means and where you put this?
Everythin else I have written (with the difference that except default_time_zone='+00:00' I have default_time_zone='+02:00'.
But I thing this is not a problem. The problem could be that the time in the base sistem, http and the database are absolutely equal, but if I ask for the time zone it sais +03:00, doesn't matter that I am setting default_time_zone='+02:00' and date.timezone = 'Europe/Sofia".
And of course another problem is that cacti doesn't recognize the installed PHP modules and in the same time it sais that those modules are required.
If you can give me some other advises I really will appresiate this.
Thanks again.
P.S. And as I said I tried date.timezone = 'Europe/Sofia', date.timezone = "Europe/Sofia", date.timezone = Europe/Sofia.
It doesn't issue any error and if I change Sofia with the city in different time zone (for example 'UTC' - it changes the time in PHP. So for me this works, but for cacti obviously doesn't.
Re: Two problems with CACTI installation on Fedora 27 server
OK, so with PHP there is a difference between the command line and apache. Apache has it's own PHP configuration. Starting with PHP 5.4, PHP no longer relies on the OS to tell it what timezone it's in, you have to do that.
I would create a PHP file in the cacti directory called date_test.php, then put the following code in it:
You should then be able to run this via CLI using php date_test.php and via a web browser going to http://<cacti_url>/date_test.php
This will show the PHP files used by each system. Make sure the datetime/zone information has been set for each set of files (normally in the php.ini file itself).
I would create a PHP file in the cacti directory called date_test.php, then put the following code in it:
Code: Select all
echo "<pre>\n";
echo "Timezone: ". date_default_timezone_get() . "\n";
echo "INI Path:" . php_ini_loaded_file() . "\n";
$scanned = php_ini_scanned_files();
$files = explode(",",$scanned);
foreach ($files as $file) {
echo '+ ' . str_replace("\n","",$file) . "\n";
}
echo "\n</pre>\n";
This will show the PHP files used by each system. Make sure the datetime/zone information has been set for each set of files (normally in the php.ini file itself).
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Two problems with CACTI installation on Fedora 27 server
Dear netniV,
I did what you suddested. But if I tried to view the page http://ServerIPAddress/cacti/data_test.php I am getting just the text of the script in my browser.
Please advise how to execute the scrip in CLI?
There is another effect (defect) which appears. During my test (I was on the initial Install page of Cacti in my browser) the electricity company suddenly terminate my power current. So obviously the server was shutted down unexpetedly. Afre that I cannot view anything going to http://ServerIPAddress/cacti/ or to http://ServerIPAddress/cacti/install.
I checked - all necessary files (index.php) are in /usr/share/cacti and in /usr/share/cacti/install. In the browser I'm getting HTTP error 500 (the page isn't working; the server is currently unable to handle this request). In the very same time in the /var/log/http/error.log ... there is nothing, not even single record of my attempt to access the page. In the access log I can see that the browser tries to access the page and it is not restricted.
Very strange.
Please advise.
I did what you suddested. But if I tried to view the page http://ServerIPAddress/cacti/data_test.php I am getting just the text of the script in my browser.
Please advise how to execute the scrip in CLI?
There is another effect (defect) which appears. During my test (I was on the initial Install page of Cacti in my browser) the electricity company suddenly terminate my power current. So obviously the server was shutted down unexpetedly. Afre that I cannot view anything going to http://ServerIPAddress/cacti/ or to http://ServerIPAddress/cacti/install.
I checked - all necessary files (index.php) are in /usr/share/cacti and in /usr/share/cacti/install. In the browser I'm getting HTTP error 500 (the page isn't working; the server is currently unable to handle this request). In the very same time in the /var/log/http/error.log ... there is nothing, not even single record of my attempt to access the page. In the access log I can see that the browser tries to access the page and it is not restricted.
Very strange.
Please advise.
Re: Two problems with CACTI installation on Fedora 27 server
So fast update:
If I try to run the script from the CLI by using php -f data_test.php, I am getting:
php -f data_test.php
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ctype.so' - /etc/php.d/ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/exif.so' - /etc/php.d/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ftp.so' - /etc/php.d/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gettext.so' - /etc/php.d/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gmp.so' - /etc/php.d/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/iconv.so' - /etc/php.d/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/imap.so' - /etc/php.d/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/intl.so' - /etc/php.d/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mbstring.so' - /etc/php.d/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqlnd.so' - /etc/php.d/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/posix.so' - /etc/php.d/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/shmop.so' - /etc/php.d/shmop.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/simplexml.so' - /etc/php.d/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sockets.so' - /etc/php.d/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvmsg.so' - /etc/php.d/sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvsem.so' - /etc/php.d/sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvshm.so' - /etc/php.d/sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/tokenizer.so' - /etc/php.d/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xml.so' - /etc/php.d/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
echo "<pre>\n";
echo "Timezone: ". date_default_timezone_get() . "\n";
echo "INI Path:" . php_ini_loaded_file() . "\n";
$scanned = php_ini_scanned_files();
$files = explode(",",$scanned);
foreach ($files as $file) {
echo '+ ' . str_replace("\n","",$file) . "\n";
}
echo "\n</pre>\n";
Please advise.
If I try to run the script from the CLI by using php -f data_test.php, I am getting:
php -f data_test.php
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ctype.so' - /etc/php.d/ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/exif.so' - /etc/php.d/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ftp.so' - /etc/php.d/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gettext.so' - /etc/php.d/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gmp.so' - /etc/php.d/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/iconv.so' - /etc/php.d/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/imap.so' - /etc/php.d/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/intl.so' - /etc/php.d/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mbstring.so' - /etc/php.d/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqlnd.so' - /etc/php.d/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/posix.so' - /etc/php.d/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/shmop.so' - /etc/php.d/shmop.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/simplexml.so' - /etc/php.d/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sockets.so' - /etc/php.d/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvmsg.so' - /etc/php.d/sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvsem.so' - /etc/php.d/sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvshm.so' - /etc/php.d/sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/tokenizer.so' - /etc/php.d/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xml.so' - /etc/php.d/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
echo "<pre>\n";
echo "Timezone: ". date_default_timezone_get() . "\n";
echo "INI Path:" . php_ini_loaded_file() . "\n";
$scanned = php_ini_scanned_files();
$files = explode(",",$scanned);
foreach ($files as $file) {
echo '+ ' . str_replace("\n","",$file) . "\n";
}
echo "\n</pre>\n";
Please advise.
Re: Two problems with CACTI installation on Fedora 27 server
in /etc/php.d I have:
20-bz2.ini 20-gmp.ini 20-posix.ini 20-xml.ini
20-calendar.ini 20-iconv.ini 20-shmop.ini 20-xmlwriter.ini
20-ctype.ini 20-imap.ini 20-simplexml.ini 20-xsl.ini
20-curl.ini 20-intl.ini 20-snmp.ini 30-mysqli.ini
20-dom.ini 20-json.ini 20-sockets.ini 30-pdo_mysql.ini
20-exif.ini 20-ldap.ini 20-sqlite3.ini 30-pdo_sqlite.ini
20-fileinfo.ini 20-mbstring.ini 20-sysvmsg.ini 30-wddx.ini
20-ftp.ini 20-mysqlnd.ini 20-sysvsem.ini 30-xmlreader.ini
20-gd.ini 20-pdo.ini 20-sysvshm.ini
20-gettext.ini 20-phar.ini 20-tokenizer.ini
and in the php.ini I have:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
; http://php.net/doc-root
doc_root =
; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://php.net/user-dir
user_dir =
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = /etc/php.d
; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)
; sys_temp_dir = "/tmp"
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off
And if I try
systemctl status php-fpm.service
I got:
Б≈▐ php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor pre
Active: active (running) since Fri 2018-03-30 11:16:49 EEST; 1h 28min ago
Main PID: 740 (php-fpm)
Status: "Processes active: 0, idle: 5, Requests: 8, slow: 0, Traffic: 0req/se
Tasks: 6 (limit: 4915)
CGroup: /system.slice/php-fpm.service
Б■°Б■─740 php-fpm: master process (/etc/php-fpm.conf)
Б■°Б■─764 php-fpm: pool www
Б■°Б■─765 php-fpm: pool www
Б■°Б■─766 php-fpm: pool www
Б■°Б■─767 php-fpm: pool www
Б■■Б■─768 php-fpm: pool www
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain systemd[1]: Started The PHP FastCGI Process Ma
lines 1-24/24 (END)
Б≈▐ php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2018-03-30 11:16:49 EEST; 1h 28min ago
Main PID: 740 (php-fpm)
Status: "Processes active: 0, idle: 5, Requests: 8, slow: 0, Traffic: 0req/sec"
Tasks: 6 (limit: 4915)
CGroup: /system.slice/php-fpm.service
Б■°Б■─740 php-fpm: master process (/etc/php-fpm.conf)
Б■°Б■─764 php-fpm: pool www
Б■°Б■─765 php-fpm: pool www
Б■°Б■─766 php-fpm: pool www
Б■°Б■─767 php-fpm: pool www
Б■■Б■─768 php-fpm: pool www
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain systemd[1]: Started The PHP FastCGI Process Manager.
Should I reinstall PHP?
20-bz2.ini 20-gmp.ini 20-posix.ini 20-xml.ini
20-calendar.ini 20-iconv.ini 20-shmop.ini 20-xmlwriter.ini
20-ctype.ini 20-imap.ini 20-simplexml.ini 20-xsl.ini
20-curl.ini 20-intl.ini 20-snmp.ini 30-mysqli.ini
20-dom.ini 20-json.ini 20-sockets.ini 30-pdo_mysql.ini
20-exif.ini 20-ldap.ini 20-sqlite3.ini 30-pdo_sqlite.ini
20-fileinfo.ini 20-mbstring.ini 20-sysvmsg.ini 30-wddx.ini
20-ftp.ini 20-mysqlnd.ini 20-sysvsem.ini 30-xmlreader.ini
20-gd.ini 20-pdo.ini 20-sysvshm.ini
20-gettext.ini 20-phar.ini 20-tokenizer.ini
and in the php.ini I have:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
; http://php.net/doc-root
doc_root =
; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://php.net/user-dir
user_dir =
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = /etc/php.d
; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)
; sys_temp_dir = "/tmp"
; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://php.net/enable-dl
enable_dl = Off
And if I try
systemctl status php-fpm.service
I got:
Б≈▐ php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor pre
Active: active (running) since Fri 2018-03-30 11:16:49 EEST; 1h 28min ago
Main PID: 740 (php-fpm)
Status: "Processes active: 0, idle: 5, Requests: 8, slow: 0, Traffic: 0req/se
Tasks: 6 (limit: 4915)
CGroup: /system.slice/php-fpm.service
Б■°Б■─740 php-fpm: master process (/etc/php-fpm.conf)
Б■°Б■─764 php-fpm: pool www
Б■°Б■─765 php-fpm: pool www
Б■°Б■─766 php-fpm: pool www
Б■°Б■─767 php-fpm: pool www
Б■■Б■─768 php-fpm: pool www
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: P
Mar 30 11:16:49 my.homedomain systemd[1]: Started The PHP FastCGI Process Ma
lines 1-24/24 (END)
Б≈▐ php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2018-03-30 11:16:49 EEST; 1h 28min ago
Main PID: 740 (php-fpm)
Status: "Processes active: 0, idle: 5, Requests: 8, slow: 0, Traffic: 0req/sec"
Tasks: 6 (limit: 4915)
CGroup: /system.slice/php-fpm.service
Б■°Б■─740 php-fpm: master process (/etc/php-fpm.conf)
Б■°Б■─764 php-fpm: pool www
Б■°Б■─765 php-fpm: pool www
Б■°Б■─766 php-fpm: pool www
Б■°Б■─767 php-fpm: pool www
Б■■Б■─768 php-fpm: pool www
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain php-fpm[740]: [30-Mar-2018 11:16:49] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic libr
Mar 30 11:16:49 my.homedomain systemd[1]: Started The PHP FastCGI Process Manager.
Should I reinstall PHP?
Re: Two problems with CACTI installation on Fedora 27 server
And just to be more clear - if I run:
php -r "print phpinfo();" | grep ".ini"
I got:
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ctype.so' - /etc/php.d/ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/exif.so' - /etc/php.d/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ftp.so' - /etc/php.d/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gettext.so' - /etc/php.d/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gmp.so' - /etc/php.d/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/iconv.so' - /etc/php.d/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/imap.so' - /etc/php.d/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/intl.so' - /etc/php.d/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mbstring.so' - /etc/php.d/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqlnd.so' - /etc/php.d/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/posix.so' - /etc/php.d/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/shmop.so' - /etc/php.d/shmop.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/simplexml.so' - /etc/php.d/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sockets.so' - /etc/php.d/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvmsg.so' - /etc/php.d/sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvsem.so' - /etc/php.d/sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvshm.so' - /etc/php.d/sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/tokenizer.so' - /etc/php.d/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xml.so' - /etc/php.d/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-gmp.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-imap.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-json.ini,
/etc/php.d/20-ldap.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-snmp.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
php -r "print phpinfo();" | grep ".ini"
I got:
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ctype.so' - /etc/php.d/ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/curl.so' - /etc/php.d/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/dom.so' - /etc/php.d/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/exif.so' - /etc/php.d/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/fileinfo.so' - /etc/php.d/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ftp.so' - /etc/php.d/ftp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gettext.so' - /etc/php.d/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/gmp.so' - /etc/php.d/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/iconv.so' - /etc/php.d/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/imap.so' - /etc/php.d/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/intl.so' - /etc/php.d/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/json.so' - /etc/php.d/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mbstring.so' - /etc/php.d/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqlnd.so' - /etc/php.d/mysqlnd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/phar.so' - /etc/php.d/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/posix.so' - /etc/php.d/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/shmop.so' - /etc/php.d/shmop.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/simplexml.so' - /etc/php.d/simplexml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sockets.so' - /etc/php.d/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sqlite3.so' - /etc/php.d/sqlite3.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvmsg.so' - /etc/php.d/sysvmsg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvsem.so' - /etc/php.d/sysvsem.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/sysvshm.so' - /etc/php.d/sysvshm.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/tokenizer.so' - /etc/php.d/tokenizer.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xml.so' - /etc/php.d/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlwriter.so' - /etc/php.d/xmlwriter.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xsl.so' - /etc/php.d/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/wddx.so' - /etc/php.d/wddx.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/xmlreader.so' - /etc/php.d/xmlreader.so: cannot open shared object file: No such file or directory in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-gmp.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-imap.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-json.ini,
/etc/php.d/20-ldap.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-snmp.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
Re: Two problems with CACTI installation on Fedora 27 server
OK, this makes it seem like you don't have PHP installed properly. How did you install PHP?
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Two problems with CACTI installation on Fedora 27 server
#dnf -y install php php-xml php-session php-sockets php-ldap php-gd php-gmp
#systemctl start httpd
#systemctl start snmpd
#systemctl start mariadb
#dnf -y install cacti
BTW I uninstall php php-xml php-session php-sockets php-ldap php-gd php-gmp
#dnf -y remove php php-xml php-session php-sockets php-ldap php-gd php-gmp
and cacti
#dnf -y remove cacti
Installed them again.
Now I do not get the errors like
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
But again I cannot view tha install page of Cacti
And when I try to start the provided script I got nothing (neither if I start it from the CLI or try to see it in the browser) but text of the script.
]# php -f data_test.php
echo "<pre>\n";
echo "Timezone: ". date_default_timezone_get() . "\n";
echo "INI Path:" . php_ini_loaded_file() . "\n";
$scanned = php_ini_scanned_files();
$files = explode(",",$scanned);
foreach ($files as $file) {
echo '+ ' . str_replace("\n","",$file) . "\n";
}
echo "\n</pre>\n";
This means for me that the PHP doesn't execute the script but just showing it.
#systemctl start httpd
#systemctl start snmpd
#systemctl start mariadb
#dnf -y install cacti
BTW I uninstall php php-xml php-session php-sockets php-ldap php-gd php-gmp
#dnf -y remove php php-xml php-session php-sockets php-ldap php-gd php-gmp
and cacti
#dnf -y remove cacti
Installed them again.
Now I do not get the errors like
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/bz2.so' - /etc/php.d/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/calendar.so' - /etc/php.d/calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
But again I cannot view tha install page of Cacti
And when I try to start the provided script I got nothing (neither if I start it from the CLI or try to see it in the browser) but text of the script.
]# php -f data_test.php
echo "<pre>\n";
echo "Timezone: ". date_default_timezone_get() . "\n";
echo "INI Path:" . php_ini_loaded_file() . "\n";
$scanned = php_ini_scanned_files();
$files = explode(",",$scanned);
foreach ($files as $file) {
echo '+ ' . str_replace("\n","",$file) . "\n";
}
echo "\n</pre>\n";
This means for me that the PHP doesn't execute the script but just showing it.
Re: Two problems with CACTI installation on Fedora 27 server
I don't think you need the -f at the command line. Just php date_test.php will do it.
Does the browser now run php properly?
Does the browser now run php properly?
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Two problems with CACTI installation on Fedora 27 server
and now if I run:
# php -r "print phpinfo();" | grep ".ini"
I got:
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-gmp.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-imap.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-json.ini,
/etc/php.d/20-ldap.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-snmp.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
com_init_db => 0
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
# php -r "print phpinfo();" | grep ".ini"
I got:
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gd.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-gmp.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-imap.ini,
/etc/php.d/20-intl.ini,
/etc/php.d/20-json.ini,
/etc/php.d/20-ldap.ini,
/etc/php.d/20-mbstring.ini,
/etc/php.d/20-mysqlnd.ini,
/etc/php.d/20-pdo.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-snmp.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sqlite3.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-mysqli.ini,
/etc/php.d/30-pdo_mysql.ini,
/etc/php.d/30-pdo_sqlite.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
com_init_db => 0
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
Re: Two problems with CACTI installation on Fedora 27 server
And more from testing:
If I create a simple php script (data_test1.php) like:
<html>
<head><title></title></head>
<body>
<?php
//Inside the php block so it gets executed and prints 'Hello World'
echo "Hello, World!";
?>
<!--Outside the php block so it just gets echoed and prints 'echo "Hello, World!";' -->
echo "Hello, World!";
</body>
</html>
If I try to run the script from the CLI - again I get the script not executed, but just listed (I can see the plain text in the terminal window)
# php data_test1.php
the result is:
<html>
<head><title></title></head>
<body>
Hello, World! <!--Outside the php block so it just gets echoed and prints 'echo "Hello, World!";' -->
echo "Hello, World!";
</body>
</html>
But if I try to execute the script in the browser:
http://my server IP address/cacti/data_test1.php
In the browser result is :
Hello, World! echo "Hello, World!";
So I am confused
If I create a simple php script (data_test1.php) like:
<html>
<head><title></title></head>
<body>
<?php
//Inside the php block so it gets executed and prints 'Hello World'
echo "Hello, World!";
?>
<!--Outside the php block so it just gets echoed and prints 'echo "Hello, World!";' -->
echo "Hello, World!";
</body>
</html>
If I try to run the script from the CLI - again I get the script not executed, but just listed (I can see the plain text in the terminal window)
# php data_test1.php
the result is:
<html>
<head><title></title></head>
<body>
Hello, World! <!--Outside the php block so it just gets echoed and prints 'echo "Hello, World!";' -->
echo "Hello, World!";
</body>
</html>
But if I try to execute the script in the browser:
http://my server IP address/cacti/data_test1.php
In the browser result is :
Hello, World! echo "Hello, World!";
So I am confused
Re: Two problems with CACTI installation on Fedora 27 server
And again if I try to view in my browser:
http://192.168.20.199/cacti/index.php
or
http://192.168.20.199/cacti/install/index.php
or
http://192.168.20.199/cacti/install/index.php?step=0
I am getting:
This page isn’t working
192.168.20.199 is currently unable to handle this request.
HTTP ERROR 500
And again - no even single record in the /var/log/http/error.log
http://192.168.20.199/cacti/index.php
or
http://192.168.20.199/cacti/install/index.php
or
http://192.168.20.199/cacti/install/index.php?step=0
I am getting:
This page isn’t working
192.168.20.199 is currently unable to handle this request.
HTTP ERROR 500
And again - no even single record in the /var/log/http/error.log
Who is online
Users browsing this forum: No registered users and 1 guest