Apache Problems.


 
Thread Tools Search this Thread
Top Forums Web Development Apache Problems.
# 8  
Old 12-14-2008
Still not working.
# 9  
Old 12-14-2008
can you post the last 10 lines of the apache error_log?
# 10  
Old 12-14-2008
Well, I had acctually cleared the error log just a short while ago, but here is what it is saying:
Code:
[Sun Dec 14 00:53:57 2008] [error] [client 192.168.1.65] (2)No such file or directory: exec of '/usr/lib/cgi-bin/carternet.py' failed
[Sun Dec 14 00:53:57 2008] [error] [client 192.168.1.65] Premature end of script headers: carternet.py

carternet is the name of the file
# 11  
Old 12-14-2008
what is the output of

Code:
ls -l /usr/lib/cgi-bin/carternet.py
ls -ld /usr/lib
ls -ld /usr/lib/cgi-bin
head -n 1 /usr/lib/cgi-bin/carternet.py

also - your going to have to change the raw_input() calls to use the CGI module.
# 12  
Old 12-14-2008
ls -l /usr/lib/cgi-bin/carternet.py:
Code:
-rwxrwxrwx 1 root root 409 2008-12-14 00:49 /usr/lib/cgi-bin/carternet.py

head -n 1 /usr/lib/cgi-bin/carternet.py:
Code:
#!/usr/bin/python

# 13  
Old 12-14-2008
First, try executing /usr/lib/cgi-bin/carternet.py from the command line. If that works OK, please let us know.
# 14  
Old 12-14-2008
I just commented the lines with the raw_input() becasue I knew they would create problems.

And yes it works just fine through the command line.
Here is the output:

Code:
carter@ubuntu-Server:~$ python /usr/lib/cgi-bin/carternet.py
Content-type: text/html


Adding password for user test

Just to be 100% sure I went through and signed into the proxy using the generated information and that worked as well.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

2. Web Development

Problems with Apache Virtual Host

I am attempting to add virtual hosts to an apache web server, which has this current configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None ... (27 Replies)
Discussion started by: Corona688
27 Replies

3. Solaris

Problems with 2 NICS and Apache

I have a Solaris 10 box that has 2 Ethernet connections. One is 172.21.0.150, this is on the main internal LAN. The other is 172.16.0.50 this is the DMZ. I have Apache 2.0.59, I do not care which it Listens to but the main one for it is 172.16.0.50 (DMZ) which I have been explicit (Listen... (1 Reply)
Discussion started by: crowman
1 Replies

4. Web Development

Problems starting Apache 2.0.54

Hi, I just installed Apache 2.0.54 and when I try and start httpd I get mohit@mohit-desktop:/sw/pkg/apache/bin$ ./httpd -k start httpd: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13): make_sock: could not bind to address :80 no listening... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Web Development

Apache upload problems.

When I upload a file 32M or larger to fails. I can see the file being uploaded into the /tmp directory but when it gets to ~32M it dissapears. This is from phpinfo: upload_max_filesize 100M 100MB post_max_size 100M 100MB enable_dl On On I dont get an error in the log saying im... (9 Replies)
Discussion started by: Ikon
9 Replies

6. Solaris

Problems starting apache 1.3 with mysql

I've been working on a project to replace one of the my group's primary NIS servers. It also runs mysql and apache, as it is the host for the our team's hardware tracking database and website. Its running apache 1.3, and for some odd reason, I can't get apache to start on system boot. The... (1 Reply)
Discussion started by: godspunk32
1 Replies

7. Solaris

problems with Apache

I have a Solaris 8 box and need to install Apache 2.0.55 on it. First thing I tried was compiling from source code. During the make phase, I got the following errors: Then I tried downloading the binaries. I tried the one available from Apache's site and the one from sunfreeware.com, with... (3 Replies)
Discussion started by: GKnight
3 Replies

8. UNIX for Dummies Questions & Answers

Problems with Apache setup

I posted a problem with the forum on 11/18/02. Unfortunately, I have been out of town. Today is the first chance I've had to try the suggestions that were made. Here is the output from the ls -l configure* command: -rw-r--r-- 1root sys 58230 May 21 2002 configure When I type " sh... (2 Replies)
Discussion started by: cstovall
2 Replies

9. UNIX for Dummies Questions & Answers

Problems with Apache setup

I downloaded Apache 1.3.27.tar.gz into my SCO u/install directory. However, to begin with, I couldn't untar the file using the " tar xvf apache-1.3.27.tar.gz" command, so I used winzip from a windows computer on our network. Winzip untarred the file and I transferred the files to the SCO... (2 Replies)
Discussion started by: cstovall
2 Replies

10. UNIX for Dummies Questions & Answers

Apache Server 1.3.20 Icons Missing and Other Problems...Please Help!!!!

Hi everyone. Okay here are a couple of my problems and hopefully you guys can help me out. Problem 1: i have 2 website that are being hosted on a webserver. The webserver is running redhat 8x and running apache 1.3.20. To make it a little clearer, lets say website A and website B. Both... (1 Reply)
Discussion started by: crazycelicagts
1 Replies
Login or Register to Ask a Question