02-01-2015
I'd say there is a very good chance that SELinux is stopping Apache from executing a shell. You can imagine that this sort of thing could be quite dangerous on most systems.
You may find some audit logging info in /var/log/audit/audit.log or /var/log/messages
10 More Discussions You Might Find Interesting
1. Cybersecurity
!HELLO ,
What is the maximum number of hosts on a TCP/IP internet?
plz can u help me.
:rolleyes: (2 Replies)
Discussion started by: smdakram
2 Replies
2. OS X (Apple)
Hi,
Now that I'm going to be using my Mac as a web host, I decided to use the PHP shell.
However, when I type php straight in the terminal, the session freezes.
Is there anything wrong that I'm doing? (3 Replies)
Discussion started by: Danny_10
3 Replies
3. IP Networking
I have written a TCP/IP client and server program. The client sends a message to the server and then the server sends a file back to the client. The client reads the buffer and stores it another file in the client side.
I need to know what are the various exceptions that I need to handle in... (0 Replies)
Discussion started by: Rajeshsu
0 Replies
4. AIX
Hi,
Is there anyway to bring down ethernet interface using non-root ID?
Appreciate if you could advice how to do that using non-root ID and what are previleges required in order to perform the tasks.
Thanks (1 Reply)
Discussion started by: srllee
1 Replies
5. Shell Programming and Scripting
Hi there,
For some reason my maintenance mode shell script is not working. Both shell scripts are chmod +x'd, and owned by apache, running from php using exec(), maintenance.html and htaccessmaintenance are both owned by apache.
My code is:
#/bin/bash
cp maintenance.html... (2 Replies)
Discussion started by: CharlesKirk
2 Replies
6. Solaris
I have problem with oracle solaris 10 running on oracle sparc T4-2 server.
Os information: 5.10 Generic_150400-03 sun4v sparc sun4v
Output from tcpstat.d script
TCP bytes: out outRetrans in inDup inUnorder
6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies
7. Shell Programming and Scripting
Hello,
I have a requirement to check the tcp network connectivity between server it's running on and the list of host's and ports combination.
i have written the below code but it doesn't work, but when i execute the nc command outside the script it works fine.
please help me where i am... (8 Replies)
Discussion started by: sknovice
8 Replies
8. Shell Programming and Scripting
Hi,
When I run command from php as www-data:
cordova platform add android
.. I get error without any solution in google.
But when I run it from shell (also as www-data) - it works!
So.. how to do to run this command from php but in shell (tty) not from php?
Regards! (5 Replies)
Discussion started by: wrkilu
5 Replies
9. Shell Programming and Scripting
so i have a bit of a unique situation.
i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code.
when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies
10. Shell Programming and Scripting
.... Solved....
..
..
Hello,
I've read couples of similar threads to my question and I strongly believe that I am doing something wrong. What I'm trying to do is to process data with php. It reads data from shell script.
Everything goes well but at the end it does not print what it reads... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT FREEBSD
atf-sh
ATF-SH(1) BSD General Commands Manual ATF-SH(1)
NAME
atf-sh [-s shell] -- interpreter for shell-based test programs
SYNOPSIS
atf-sh script
DESCRIPTION
atf-sh is an interpreter that runs the test program given in script after loading the atf-sh(3) library.
atf-sh is not a real interpreter though: it is just a wrapper around the system-wide shell defined by ATF_SHELL. atf-sh executes the inter-
preter, loads the atf-sh(3) library and then runs the script. You must consider atf-sh to be a POSIX shell by default and thus should not
use any non-standard extensions.
The following options are available:
-s shell Specifies the shell to use instead of the value provided by ATF_SHELL.
ENVIRONMENT
ATF_LIBEXECDIR Overrides the builtin directory where atf-sh is located. Should not be overridden other than for testing purposes.
ATF_PKGDATADIR Overrides the builtin directory where libatf-sh.subr is located. Should not be overridden other than for testing purposes.
ATF_SHELL Path to the system shell to be used in the generated scripts. Scripts must not rely on this variable being set to select a
specific interpreter.
EXAMPLES
Scripts using atf-sh(3) should start with:
#! /usr/bin/env atf-sh
Alternatively, if you want to explicitly choose a shell interpreter, you cannot rely on env(1) to find atf-sh. Instead, you have to hardcode
the path to atf-sh in the script and then use the -s option afterwards as a single parameter:
#! /path/to/bin/atf-sh -s/bin/bash
ENVIRONMENT
ATF_SHELL Path to the system shell to be used in the generated scripts.
SEE ALSO
atf-sh(3)
BSD
September 27, 2014 BSD