Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I`ve installed Apache web server on my computer with Red Hat 9, and it works just fine on Linux, but I have two problems:
- The first one, is is when i try to access a web page from other computer with windows XP in the same network. I execute the ping command from windows computer and the linux host answers fine, but i can`t see any page.
- The other problem is when i try to execute cgi programs. The browser writes "500 internal error"... I have a compiled cgi script with "C" commands but it doesn´t work. Not even scripts written in Perl work.
I thought it was because it didn`t have Perl or C compiler installed on the computer but it looks like it has them.
Can anyone help me out please?
Originally posted by Dapernia I`ve installed Apache web server on my computer with Red Hat 9, and it works just fine on Linux, but I have two problems:
- The first one, is is when i try to access a web page from other computer with windows XP in the same network. I execute the ping command from windows computer and the linux host answers fine, but i can`t see any page.
What error do you get?
Quote:
Originally posted by Dapernia - The other problem is when i try to execute cgi programs. The browser writes "500 internal error"... I have a compiled cgi script with "C" commands but it doesn´t work. Not even scripts written in Perl work.
I thought it was because it didn`t have Perl or C compiler installed on the computer but it looks like it has them.
What permissions did you set on the scripts? Take a look in your error_log file it should give more details.
The error is when i try to access with the Browser any page, it tries to connect to the server but it never does, and after a very long time it`s still trying to find the page (this happens in windows) finally it says that the host is unreachable
About the permissions i`m gonna take a look into the log file...
You know?, I stopped the iptables and it works fine, but is that right? what problems could that
bring me up?
Now, the other problem is with the .cgi programs (The server writes Internal Server error)... I give permissions with chmod a+x to the script but it doesn't work, i checked the error log file and it says this:
Code:
Mon Jan 24 13:30:47 2005] [notice] Apache/2.0.52 (Unix) configured -- resuming normal operations
[Mon Jan 24 13:31:07 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:31:24 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:47:28 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:47:35 2005] [error] [client 167.175.131.196] (13)Permission denied: exec of '/usr/local/apache2/cgi-bin/printenv' failed
[Mon Jan 24 13:47:35 2005] [error] [client 167.175.131.196] Premature end of script headers: printenv
[Mon Jan 24 13:47:35 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:48:20 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:48:27 2005] [error] [client 167.175.131.196] (13)Permission denied: exec of '/usr/local/apache2/cgi-bin/printenv' failed
[Mon Jan 24 13:48:27 2005] [error] [client 167.175.131.196] Premature end of script headers: printenv
[Mon Jan 24 13:48:27 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Jan 24 13:51:29 2005] [error] [client 167.175.131.196] (13)Permission denied: exec of '/usr/local/apache2/cgi-bin/printenv' failed
[Mon Jan 24 13:51:29 2005] [error] [client 167.175.131.196] Premature end of script headers: printenv
[Mon Jan 24 13:51:29 2005] [error] [client 167.175.131.196] File does not exist: /usr/local/apache2/htdocs/favicon.ico
I would definitely not run a server without a firewall. Suggest you configure iptables to work with apache. There are numerous scripts available that will do that. SInce you're running Redhat, the easiest way would be to just use the gui and MainMenu --> System Settings --> Security Level and allow http.
But you definitely don't want to run without some kind of firewall.
Sorry to interupt but how do you install apache web server without a C compiler. Most standard installation involves compiling using C compiler first. Are you using apache binaries to install? I am using httpd-2.0.50-i686-pc-linux-gnu.tar.gz binaries under redhat 9 and there seems to be some problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.