Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 3:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Cannot execute using backquotes in Safe Mode - safe_mode=off
PostPosted: Wed Jun 05, 2019 4:40 am 
Offline

Joined: Wed Jun 05, 2019 4:32 am
Posts: 1
since yesterday cacti doesn't work, I installed the ZendOptimizer and from this time I got no output from cacti.
If I try: /usr/bin/php -q /var/www/cacti/scripts/sql.php
I always get: Warning: shell_exec() [http://www.php.net/function.shell-exec]: Cannot execute using backquotes in Safe Mode in /var/www/cacti/scripts/sql.php on line 6
But the safe_mode is off, in master and local value.
On console I also get this message if I try to run the script as wwwrun(apache), if I run this as root it works.
Where is here the problem?

Ciao
AS-N


Top
 Profile  
 
 Post subject: Re: Cannot execute using backquotes in Safe Mode - safe_mode
PostPosted: Fri Jun 07, 2019 3:31 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
It would suggest that you are not looking at the right php.ini for the settings you are looking at. Cacti is not designed to run in safe mode as far as I am aware. You can use php --ini to find out which ini file is being used.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group