Allow fsockopen allow only a few accounts.

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
copernic2006
Forum User
Forum User
Posts: 86
Joined: Wed Oct 03, 2012 2:51 pm
Location: Algiers

Allow fsockopen allow only a few accounts.

Unread post by copernic2006 »

Hello,
In php, ini, I disabled fsockopen and I would activate only a few accounts, so I added the following entry in php.ini ( /usr/local/lib/php.ini )

Code: Select all

[PATH=/home/username/public_html]
fsockopen = On 
Unfortunately, this solution is not working, any help is welcome? :)

For information :
PHP: 5.3.17
Apache: 2.2.23
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Allow fsockopen allow only a few accounts.

Unread post by breun »

First of all: fsockopen is not a php.ini directive, so you can't set fsockopen to On. ASL disables several risky PHP functions by default via the disable_functions directive in php.ini.

http://www.php.net/manual/en/ini.core.p ... -functions says: "This directive must be set in php.ini For example, you cannot set this in httpd.conf." So, the disable_functions directive can only be set in the system-wide configuration.

There is a way to disable specific PHP functions per vhost if you're running Suhosin via its suhosin.executor.func.blacklist setting: http://www.hardened-php.net/suhosin/con ... .blacklist
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Allow fsockopen allow only a few accounts.

Unread post by faris »

Have a look at:
http://www.atomicorp.com/forum/viewtopi ... 50&p=31649

And if you use php in fastcgi mode:
http://www.atomicorp.com/forum/viewtopic.php?f=2&t=6325

(Edit: first link corrected)
Last edited by faris on Mon Nov 05, 2012 3:16 pm, edited 1 time in total.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
copernic2006
Forum User
Forum User
Posts: 86
Joined: Wed Oct 03, 2012 2:51 pm
Location: Algiers

Re: Allow fsockopen allow only a few accounts.

Unread post by copernic2006 »

Thank you so much faris, I will read the links recommended.
Post Reply