SocialEngine 4: Exec () Function is Prohibited

Andrew - SocialEngine

Are you being face with a error message Exec () Function is Prohibited?

This usually happens on shared servers for shared hosting plans. If not the case the the following may help you correct this issue or a deviation of.

PHP.INI settings: Disable exec, shell_exec, system, popen and Other Functions To Improve Security

A lot of users divide to use a cheap webhosting company to try and save money with a small Apache based web-server, which is shared with more than the server can handle. However, most scripts try to exploit php application such as SocialEngine, WordPress ect… using exec (), passthru (), shell_exec (), system () functions.

PHP has a lot of functions which can be used to crack your server if not used properly. You can set list of functions in php.ini using disable_functions directive. This directive allows you to disable certain functions for security reasons. It takes on a comma-delimited list of function names. disable_functions is not affected by Safe Mode. This directive must be set in php.ini file. Example For, you can not set this in httpd.conf file.
If you have SSH Access open a terminal or login to your server over the ssh session.

If you do not have SSH Access please contact your Web-hosting Provider to make these changes if they allow them otherwise you may need to look for a new provider.

Locate Php.ini file and open in your required Text Editor :
# Vi /etc/php.ini
Find disable_functions and set new list as

I also recommend to disable allow_url_include and allow_url_fopen for security reasons:

allow_url_fopen = Off
allow_url_include = Off
Save and the address close e-file. Restart the httpd server by tying the following command:
# Service httpd restart
OR if you are using Debian / Ubuntu Linux, run:
# Service apache2 restart

A note about systemd based system

If you are using systemd + RHEL / CentOS / Fedora Linux based system , enter:
# Systemctl httpd restart
If you are using systemd + Debian / Ubuntu Linux based system, enter:
# Systemctl restart apache2

If you still have issues once making these changes contact your hosting provider.


Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting

Tags: , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *