RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>You need to scope the SetHandler/AddHandler to just the things that >are actually CGI. Check the manual. If you mean this topic (https://wiki.apache.org/httpd/DirectoryAsScript) , I already have read that. But don’t know how to apply that to my case. Currently, I have Options FollowSy

RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>Missing SetHandler cgi-script or similar. I added “SetHandler cgi-script” above the DirecotryIndex. The web browser now seems to work fine as I don’t see the traditional folder structure. What about messages like this in the error.log [Sat Dec 30 18:10:14.142417 2017] [cgi:error] [pid 20329] [

[users@httpd] Problem with CGI script

2017-12-29 Thread mahmood n
Hi, In one the www folders, I have an index.cgi which is a python script. Problem is that, by visiting that url, the cgi script is not run and I tried a lot to find the problem. Still I have stuck at that. The content of the index.cgi is https://github.com/rocksclusters/roll-server/blob/master

Re: [users@httpd] find IP and PORT in use by Apache

2016-06-22 Thread Mahmood N
OK. I found what was the problem. The default httpd.conf only specifies the "Listen" option for port number 80. That means, all interfaces with :80. While I was testing the web server, I commented the "Listen 80". So, uncommenting that line again, resolved the problem. Now, the compute node can

Re: [users@httpd] find IP and PORT in use by Apache

2016-06-21 Thread Mahmood N
The folder permission is root:root with 755. Regarding the symlink option in httpd.conf, I see     Options FollowSymLinks     AllowOverride None I looked at the logs, but didn't find any useful error! to follow. Do you have any idea? Jun 21 11:47:34 cluster dhcpd: DHCPDISCOVER from 00:e0:81:

Re: [users@httpd] find IP and PORT in use by Apache

2016-06-21 Thread Mahmood N
You know, the problem is that compute nodes in Rocks distribution use Apache web server to locate the install image. Currently, the compute node, says Unable to retrieve http://10.10.10.1/install/rocks-dist/x86_64/images/install.img The guys on Rocks mailing list suggested that the root of we

Re: [users@httpd] find IP and PORT in use by Apache

2016-06-21 Thread Mahmood N
> tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 28122/xinetd> Shows the port, 5666, the > PID, 28122, and the program name, xinetdSo, you still don't know what is the > IP address (network interface)? I mean eth0, eth1 and ... Mine is different! root@cluster:~# netstat -pat | grep httpd tcp    0 

[users@httpd] find IP and PORT in use by Apache

2016-06-21 Thread Mahmood N
Hi,How can I find which IP:PORT Apache web server is monitoring? There are some network commands (netstat -pat), but they show the TCP port in use. The machine has multiple network interfaces and the Listen section in httpd.conf is commented. So, one of the is used by default and I don't know wh