Passing variable from PHP to bash script

Login or Register to Reply

Thread Tools Search this Thread
# 8  
Is there additional information in the apache error log file about the authorization failure?
# 9  
This is the error in the apache log when I run curl in verbose. curl -vvv (note: the IP address is correct for seieadpa01)

* About to connect() to seieadpa01 port 9004 (#0)
*   Trying Failed to connect to Permission denied
* Success
* couldn't connect to host
* Closing connection #0

# 10  
When you use curl from your workstation, you are connecting from your workstation. However, when you connect through the web page you are connecting from the web server. The problem may be the two web servers are on different class C networks.
These 2 Users Gave Thanks to jgt For This Post:
# 11  
Thanks jgt. I get what you are saying. It definitely has something to do with how my apache webserver communicates with seieadpa01. I will investigate this.

---------- Post updated at 08:02 AM ---------- Previous update was at 07:53 AM ----------

This has been resolved. I ran the following command on my apache server and now I can connect without issues.

setsebool -P httpd_can_network_connect=1

Thanks again!
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Passing variable from bash to perl script
Hi All, I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving error : Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/ line 50. Can ...... Shell Programming and Scripting
Shell Programming and Scripting
Passing string as variable(s) in bash
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find. I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple: #!/bin/bash -f ...... Shell Programming and Scripting
Shell Programming and Scripting
Trouble with passing Variable from bash to awk gsub command
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing. #!/bin/bash echo "Enter Username" read Username awk -F: -v var=${Username} '/^var:/...... Shell Programming and Scripting
Shell Programming and Scripting
Passing Bash variable to javascript
How do I pass a bash variable to a javascript? I've tried #!/bin/bash echo "Content-type: text/html" echo "" echo "<html>" echo "<head>" counter=0 echo '<script> window.parent.document.forms.counter.value = "$counter"; </script>' I have an iframe script which I am trying to pass a...... Shell Programming and Scripting
Shell Programming and Scripting
passing variable from bash to perl from bash script
Hi All, I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl FROM_DATE="06/05/2008" TO_DATE="07/05/2008" "perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename" filename has...... Shell Programming and Scripting
Shell Programming and Scripting