Warning: ini_set() has been disabled for security reasons in

Problems installing LinkMan?
Post Reply
SS113
Posts: 27
Joined: Mon Aug 15, 2011 1:27 pm

Warning: ini_set() has been disabled for security reasons in

Post by SS113 »

Version of script: 1.7

Write your message below:

Hello,

We recently did some security tweaks to our server and now it seems that it's conflicting with many PHP scripts on it including LinkMan.

It seems to be working fine but it always shows 2 Warnings on top of every page that say:
Warning: ini_set() has been disabled for security reasons in /home/domain/public_html/links/settings.php on line 116

Warning: ini_set() has been disabled for security reasons in /home/domain/public_html/links/settings.php on line 117
Is there a work around this other than changing the security back the way it was on the server? I read about putting a php.ini in the root of the site and then some other .htaccess tweaks but I'm not too sure if that's really the way.

Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Warning: ini_set() has been disabled for security reason

Post by Klemen »

Try this:

1. open admin.php in Notepad
2. find these two lines:

Code: Select all

    ini_set(\'display_errors\', 0);
    ini_set(\'log_errors\', 1);
3. change them to exactly this:

Code: Select all

error_reporting(0);
4. find and delete this line:

Code: Select all

ini_set('user_agent', 'LinkMan '.$settings['verzija'].' by http://www.phpjunkyard.com');
5. save changes
6. open file "addlink.php" and delete line

Code: Select all

ini_set('user_agent', 'LinkMan '.$settings['verzija'].' by http://www.phpjunkyard.com');
Upload modified files to the server, login to admin panel, go to "Settings" and click "Save changes" button.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply