Passing variable from PHP to bash script

Tags
apache config, solved, web

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

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

# 10  
Old 12-08-2017
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:
kieranfoley (12-09-2017) Neo (12-08-2017)
# 11  
Old 12-09-2017
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.

Code:
setsebool -P httpd_can_network_connect=1

Thanks again!

|
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 NileshJ Shell Programming and Scripting 6 02-03-2016 11:23 AM
Passing arguments to a bash script shree11 Shell Programming and Scripting 8 06-11-2014 06:06 AM
Passing string from SQL to a BASH script JonP Shell Programming and Scripting 3 12-11-2013 09:02 AM
Passing variable as an argument to another script Manasa Pradeep Shell Programming and Scripting 9 09-13-2013 08:49 AM
Passing string as variable(s) in bash Starting_Leaf Shell Programming and Scripting 2 04-06-2013 03:35 PM
Trouble with passing Variable from bash to awk gsub command Nostyx Shell Programming and Scripting 9 12-09-2011 08:32 AM
Passing variables from bash to php-cli robbee Shell Programming and Scripting 0 05-09-2011 02:42 PM
help passing variable from script Grueben Shell Programming and Scripting 2 03-31-2011 07:08 AM
Passing Bash variable to javascript numele Shell Programming and Scripting 3 04-12-2010 07:38 PM
Passing a MySql password from bash script codenjanod Shell Programming and Scripting 2 11-26-2009 07:44 AM
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 01:25 PM
Passing options to a bash script DeCoTwc Shell Programming and Scripting 3 05-21-2008 02:43 AM
passing asterisk to a script as variable GKnight Shell Programming and Scripting 9 04-02-2008 11:32 AM
passing variable to my script aladdin UNIX for Dummies Questions & Answers 5 06-18-2007 10:34 AM
Passing a variable into an awk script Khoomfire UNIX for Advanced & Expert Users 5 09-05-2006 09:44 AM