Disable PHP Shell_exec And Readfile

May 16, 2008

To disable or not to disable shell_exec and readfile.

I haven't found any possible problems about enabling readfile but regarding shell_exec, I might be vulnerable to phpshell scripts though if the server is correcly configured (suPHP, suoshin, etc.), the risks are minimun.

View 14 Replies


ADVERTISEMENT

Disable Functions :: Show_source, System, Shell_exec, Passthru, Exec ...

Jun 13, 2008

How to disable those functions on VPS with Lxadmin and CentOS 5
show_source, system, shell_exec, passthru, exec,
phpinfo, popen, proc_open, base64_decode, base64_encodem, proc_terminate

View 9 Replies View Related

Is Shell_exec Dangerous

Oct 23, 2009

My existing web host has disabled shell_exec and one of my php scripts requires it to work, so is shell_exec dangerous? Would you have it enabled on your servers or is it typical for it to be disabled?

View 4 Replies View Related

Shell_exec Shows Nobody

Mar 13, 2008

I am running into a few problems when it comes to using the above command. No it is not being blocked in the php.ini file. The issue has to do with permissions. On my old server everything worked fine until I moved over to this new server.

$who = shell_exec("whoami");
echo "$who"; 

When I run that commend on the old server I got that users username. Which, makes since as that means anything created via PHP would be owned by that user. In fact, every other host I know of was like that. But, on the new server when I run the commend it shows up as "nobody". How can I fix this so my commands will run properly for me and my users?

View 4 Replies View Related

ENABLE Shell_exec In Htaccess?

Mar 22, 2007

How do I enable shell_exec in an .htaccess file for one particular account, even thought it is disabled globally in php.ini ?

I am using php 4.4.6 / cpanel / centos

Also, what would the .htaccess look like for php5x?

View 5 Replies View Related

Enabling Shell_exec() For Some User

Mar 26, 2008

to run one PHP script from crontab as root..

But my basic PHP has shell_exec disabled in php.ini and when trying to run script that use shell_exec even from root I get error that function is disabled.

Do you have any suggestion how can I overcome this and have ability to use this function when executing php script from console?

View 3 Replies View Related

Warning: Shell_exec() Has Been Disabled For Security Reasons

Sep 15, 2007

I installed status2k on my server and i am encountering this error.

Quote:

Warning: shell_exec() has been disabled for security reasons in /home/oxyhosts/public_html/status/includes/functions.php on line 455

You can take a look at the errors on http://tinyurl.com/264tot

I even tried disabling shell_exec and exec from php.ini but that too didnt resolve the issue.

Is there a way i can get this thing to run without / with enabling shell_exec?

View 7 Replies View Related

How To: Disable SSL 2.0 And Use SSL 3.0

Oct 20, 2008

Our security comlience test got failed due to following reason

Synopsis:
The remote service encrypts traffic using a protocol with known weaknesses.

Description:
The remote service accepts connections encrypted using SSL 2.0, which reportedly suffers from several cryptographic flaws and has been deprecated for several years. An attacker may be able to exploit these issues to conduct man-in-the-middle attacks or decrypt communications between the affected service and clients.

Solution:
Consult the application's documentation to disable SSL 2.0 and use SSL 3.0 or TLS 1.0 instead. See for Apache.

We have Cpanel RHEL server. Please advise how to:

'disable SSL 2.0 and use SSL 3.0 or TLS 1.0 instead. See for Apache.'

View 12 Replies View Related

How To Disable RBL

Feb 20, 2008

RBL is blocking every incoming email. While waiting for the admin. How to disable it?

View 3 Replies View Related

Dr Web - How To Disable It

May 11, 2008

I can stop Dr Web from within Plesk Control panel, but every time server restarts - Dr Web is automatically started again.

Any possible way to disable it from running?

Also the same with Spam Assassin.

I am running CentOS

View 0 Replies View Related

Disable SSL 2.0 And Use SSL 3.0

Nov 6, 2007

I would like to disable SSL 2.0 and use SSL 3.0, my question how i can do this and which file i have to modify or i have to upgrade from SSL 2.0 to SSL 3.0 ?

View 2 Replies View Related

Why Disable Parse_ini_file

Jun 10, 2009

I've seen for securing PHP recommends putting parse_ini_file() in the disable_functions line in php.ini but I cannot find an exact reason why. This being disabled is causing an error message to appear on some of my users sites but I'm trying to find a clear cut reason why it is disabled.

View 12 Replies View Related

Disable Clamav

Mar 19, 2008

How can I disable clamav on cpanel server and make sure that it's not running

because when clamav is running the outlook is not working so I have to restart clamav every time.

View 6 Replies View Related

Disable Logrotate

Oct 25, 2009

is it possible to disable log rotate? I can't seem to find the cron under my weeklys or dailys nor monthlys unless it's named "mad-db" but is there a way to make it say yearly? or just disable it all together? I say this because the script I use has a function already to clear the logs and when log rotate runs it kills all processes going by the script

View 8 Replies View Related

How Disable Phpinfo()

Apr 17, 2009

when some one upload and load files with phpinfo()

he can see our server PHP Configuration.

how can us disable phpinfo()?

View 13 Replies View Related

Disable Auditd

May 24, 2009

I have disabled auditd

Code:
root@server48 [~]# chkconfig --list |grep audit
root@server48 [~]# rpm -qa|grep audit
audit-libs-1.7.7-6.el5_3.3
audit-libs-1.7.7-6.el5_3.3
audit-libs-python-1.7.7-6.el5_3.3
root@server48 [~]# lsmod |grep audit
root@server48 [~]#
root@server48 [~]# ps aux|grep audit
root 532 0.0 0.0 0 0 ? S< May17 0:00 [kauditd]
root 20690 0.0 0.0 61180 740 pts/0 R+ 06:12 0:00 grep audit
root@server48 [~]#

I still get audit on /var/log/messages

Quote:

May 24 06:10:01 server48 kernel: type=1101 audit(1243163401.625:179651): user pid=19715 uid=0 auid=0 msg='PAM: accounting acct="root" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'
May 24 06:10:01 server48 kernel: type=1101 audit(1243163401.716:179652): user pid=19716 uid=0 auid=0 msg='PAM: accounting acct="youtubet" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'
May 24 06:10:02 server48 kernel: type=1101 audit(1243163402.087:179656): user pid=19719 uid=0 auid=0 msg='PAM: accounting acct="vidzboxc" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'

How do i disable auditd completely?

View 1 Replies View Related

How Disable Php On Cpanel

Jul 18, 2009

any one can apply php scripts under cpanel like:

domain.com:2082/scripts.php
I have run phpinfo for looking for cpanel php.ini I have
Configuration File (php.ini) Path /usr/local/cpanel/3rdparty/etc
I renamed /usr/local/cpanel/3rdparty/etc to /usr/local/cpanel/3rdparty/etc.OLD
then restart the server I am still get cpanel php work and phpinfo give :
Configuration File (php.ini) Path /usr/local/cpanel/3rdparty/etc
how to disable cpanel php to prevent some one exploit php to hacking my server?

View 5 Replies View Related

Disable Backup

Apr 9, 2009

i wanna disable the backup from cpanel for one user only

how i can do that?

i wont him take full backup from the cpanle.

View 4 Replies View Related

Disable FTP In CPanel/WHM

Apr 13, 2008

I've a VPS to run my only one website. As I don't use ftp, I'd like to know how to disable it.

I tried WHM -> Service Configuration -> Service Manager, then uncheck ftpd, but it's still there

View 6 Replies View Related

Disable WHM/Cpanel

Jul 29, 2008

I want to disable WHM/Cpanel.because client purchase dedicate server from us and he want to access from command line and no WHM/Cpanel so how can i do it and it will be effect on any service because i have installed all the service like dns, exim and http from WHM.

View 3 Replies View Related

How To Disable A Contain With Mod_security

May 7, 2008

How can i disable some words from the contain of the page by Mod_Security2?

View 6 Replies View Related

Disable FTP For Specified Time

Oct 30, 2008

Does is possible to disable ftp capabilities of several websites run by cron at some specified time of the day? then re-enable it automatical at a certain time also?

View 7 Replies View Related

How Do I Disable IPTables?

Dec 5, 2008

I installed APF/BFD a log time ago on my centos server and have had no problems up until now.

Approx 3 days ago, the server was uncontactable by SSH/HTTP/FTP. So I ran a traceroute and the host confirmed the box was up with no problems.

He disabled IPTables and I was allowed in. Anyway, overnight, the same thing has happenned again.

I will have to SSH in from another IP however, my main question is how do I disable IPTables ? Or better still, how do I uninstall APF!

View 4 Replies View Related

Disable Email

Feb 20, 2008

I got the problem with email running on my server.

That mean, I using my domain email service with other server. Now I hosted a website for this domain on one other server.

Note that the IP for domain and email domains are different (Using managed domain service)

But I got the problem now when email sending from the server (using php email function ) with the website running that will confusing, not sending anymore.

Don't know that you understand my case. But I want to stop email service for this domain on my server, all email just send and receive through other email server.

How can I setup or configure it through SSH?

View 3 Replies View Related

How To Disable This Message

Apr 9, 2007

I have placed .htaccess to block some ip, when the person ip matches, my server will gives this message "client denied by server configuration", got lots of them everday in my error log, how can I disable this message? I need other error log message but not this message, is there any way I can disable it?

using centos and plesk.

View 2 Replies View Related

How Do I Disable Apache

Apr 6, 2008

I have Apache 2.2 using cPanel 11 how do I disable apache I was sure it was using this cmd, /etc/httpd/conf/httpd.conf off When I try that I get permission denied and im logged in with root! I also tried this /etc/httpd/conf/httpd.conf chmod 777 permission denied again. Anyways, I need to disable Apache so LiteSpeed will work and I can dump Apache the unforgiven pos that will dos it recieves a request to visit a webpage. (That is over doing it, Apache is really good just if it gets hit it's down easy.)

View 9 Replies View Related

Disable Function

Dec 3, 2008

It possible to disable the disable function for all user expect one account for running few application i need shell_exec, passthru, exec these so for other account it possible to disable it?

View 2 Replies View Related

Disable Php Functions

Sep 15, 2007

Does the below look good for a private server (linux, cpanel, phpsuexec disabled)?

disable_functions = show_source, system, shell_exec, passthru, phpinfo, popen, proc_open

What about a shared hosting server (linux, cpanel, phpsuexec *enabled*)?

disable_functions = show_source, system, shell_exec, passthru, phpinfo, popen, proc_open

View 2 Replies View Related

Disable Firewire

Aug 17, 2008

how does one disable firewire, in linux, can this be done without recompiling kernel?

View 5 Replies View Related

How To Disable Spamassassin.

Aug 1, 2007

I am using cPanel 11 one of my Linux server with O.S. as Fedora core 4. For one of my websites I had enabled spam assassin a few days before. But now I want to disable it but not getting any option to do so.

View 11 Replies View Related

Disable Clamd

Jul 13, 2007

we have a dedicated with 1 only customer that use server x mailing

we would disable clamd because is not used in this situation

we have disable, any day ago, from 'service manager' of WHM but now we see this under "today cpu usage":

Top Process %CPU 67.5 /usr/sbin/clamd
Top Process %CPU 44.0 /usr/bin/perl -w /usr/sbin/eximstats
Top Process %CPU 25.9 /usr/sbin/clamd

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved