problems running script

james99 said:

Any ideas what could be causing this? It's frustrating. :(

James, I'm headed to a Avici certification class at the moment and don't have enough spare time to troubleshoot ths now, but what if I were to call you this evening, around 7pm central time? Would you have time to work this issue then? Just PM me your number, if it is in the US, or let me know a good time to catch you on skype, and I'll give you a call.
 
OK, an update!

I switched the DNS to start resolving to the new DA server, recreated the account, etc.

CGI now works in the cgi-bin (example), but not outside of it (example),which it needs to for this site.

[root@server2 public_html]# ls -al
total 26228
drwxr-xr-x 28 nervousn apache 4096 Jul 30 19:33 .
drwx--x--x 6 nervousn nervousn 4096 Jul 30 07:30 ..
drwxr-xr-x 2 nervousn nervousn 4096 Jun 5 10:16 a
drwxr-xr-x 2 nervousn nervousn 4096 Jul 5 21:08 about
drwxr-xr-x 3 nervousn nervousn 4096 Jul 11 23:06 admin
-rw-r--r-- 1 nervousn nervousn 1296 Jan 5 2004 backup.php
drwxr-xr-x 2 nervousn nervousn 4096 Jul 30 19:27 cgi-bin
-rwxr-xr-x 1 nervousn nervousn 66 Jul 30 19:33 cgi-test.cgi
-rwxr-xr-x 1 nervousn nervousn 3547 Nov 10 2002 comment.cgi
-rwxr-xr-x 1 nervousn nervousn 57569 Jun 18 2003 convert.pl
drwxr-xr-x 2 nervousn nervousn 4096 Dec 22 2003 css
-rw-r--r-- 1 nervousn nervousn 3490 Nov 10 2002 db-down.html
drwxr-xr-x 2 nervousn nervousn 4096 Dec 10 2002 debates
-rw-r--r-- 1 nervousn nervousn 2826 Nov 10 2002 decima.html
drwxr-xr-x 2 nervousn nervousn 4096 Dec 18 2002 email
-rwxr-xr-x 1 nervousn nervousn 1328 Nov 10 2002 email-addresses.cgi
drwxr-xr-x 3 nervousn nervousn 4096 Dec 22 2003 faq
-rw-r--r-- 1 nervousn nervousn 240 Jan 28 2004 favicon.ico
-rwxr-xr-x 1 nervousn nervousn 178 Nov 10 2002 foo.cgi
-rw-r--r-- 1 nervousn nervousn 2321 Jun 3 03:06 forgot.php
-rwxr-xr-x 1 nervousn nervousn 3290 Nov 10 2002 forgotten_password.cgi
drwxr-xr-x 3 nervousn nervousn 4096 Jul 30 07:30 forums
-rw-r--r-- 1 nervousn nervousn 26399841 Jun 8 00:27 hp.exe
-rw-r--r-- 1 nervousn nervousn 607 Jul 30 19:27 .htaccess
-rw-r--r-- 1 nervousn nervousn 121 Mar 16 06:29 .htaccess2
-rw-r--r-- 1 nervousn nervousn 121 Mar 16 06:16 .htaccess-block
drwxr-xr-x 6 nervousn nervousn 4096 Jun 5 02:09 images
-rwxr-xr-x 1 nervousn nervousn 16697 Jan 30 2003 imbue.cgi
-rwxr-xr-x 1 nervousn nervousn 9186 Nov 10 2002 index2.cgi
-rwxr-xr-x 2 nervousn nervousn 73 Jul 24 2003 index.cgi
-rwxr-xr-x 1 nervousn nervousn 2224 Jul 24 2003 index.old
-rw-r--r-- 1 nervousn nervousn 11144 Nov 10 2002 index-old.html
-rw-r--r-- 1 nervousn nervousn 4725 Jul 13 23:41 index.php
-rw-r--r-- 1 nervousn nervousn 18 Mar 19 11:25 info.php
drwxr-xr-x 2 nervousn nervousn 4096 Jan 28 2004 js
-rw-r--r-- 1 nervousn nervousn 98 Nov 10 2002 libraries.lib
drwxr-xr-x 2 nervousn nervousn 4096 Aug 3 2003 lmao
-rwxr-xr-x 1 nervousn nervousn 6326 Dec 22 2003 log-in-page.cgi
drwxr-xr-x 2 nervousn nervousn 4096 Feb 12 22:19 mockup
drwxr-xr-x 2 nervousn nervousn 4096 Jul 20 2003 mockup2
-rwxr-xr-x 2 nervousn nervousn 73 Jul 24 2003 nervous.cgi
drwxr-xr-x 3 nervousn nervousn 4096 Dec 10 2002 new
-rwxr-xr-x 1 nervousn nervousn 2937 Nov 10 2002 new.cgi
-rwxr-xr-x 1 nervousn nervousn 2574 Nov 10 2002 new-index.cgi
-rwxr-xr-x 1 nervousn nervousn 4009 Nov 10 2002 new-log-in-page.cgi
-rw------- 1 nervousn nervousn 97 Jul 20 2003 news.php.save
-rw-r--r-- 1 nervousn nervousn 4307 Dec 18 2002 nv-mockup.html
-rw-r--r-- 1 nervousn nervousn 9315 Dec 17 2002 nv-new-layout-mockup.gif
drwxr-xr-x 4 nervousn nervousn 4096 Jun 18 2003 .old
-rwxr-xr-x 1 nervousn nervousn 2915 Nov 10 2002 old-index.cgi
drwxr-xr-x 2 nervousn nervousn 4096 Nov 10 2002 open
drwxr-xr-x 4 nervousn nervousn 4096 Nov 25 2003 people
-rw-r--r-- 1 nervousn nervousn 633 Jul 24 2003 privacy.php
drwxr-xr-x 2 nervousn nervousn 4096 Nov 10 2002 products
-rwxr-xr-x 1 nervousn nervousn 653 Nov 17 2002 profile.cgi
drwxr-xr-x 3 nervousn nervousn 4096 Jul 30 07:30 px
-rw-r--r-- 1 nervousn nervousn 1042 Sep 7 2003 question.phps
drwxr-xr-x 2 nervousn nervousn 4096 Dec 10 2002 questions
-rw-r--r-- 1 nervousn nervousn 80 Jul 12 16:26 redirect.php
-rw-r--r-- 1 nervousn nervousn 193 Jan 28 2004 robots.txt
-rw------- 1 nervousn nervousn 283 Jan 27 2004 robots.txt.save
-rw-r--r-- 1 nervousn nervousn 159 Dec 22 2003 script.php
-rw-r--r-- 1 nervousn nervousn 1206 Oct 27 2003 server_script.php
drwxr-xr-x 4 nervousn nervousn 4096 Nov 20 2003 shop
drwxr-xr-x 4 nervousn nervousn 4096 Oct 20 2003 shop2
drwxr-xr-x 8 nervousn nervousn 4096 Jan 9 2004 store
drwxr-xr-x 2 nervousn nervousn 4096 Oct 10 2003 subscribe
-rw-r--r-- 1 nervousn nervousn 180 May 26 22:49 suspend.php
-rw-r--r-- 1 nervousn nervousn 4367 Nov 12 2003 temp.php
-rwxr-xr-x 1 nervousn nervousn 1316 Nov 10 2002 test.cgi
drwxr-xr-x 2 nervousn nervousn 4096 Jul 10 2003 tmpl
-rw-r--r-- 1 nervousn nervousn 4059 Jul 12 23:03 unsubscribe.php
-rw-r--r-- 1 nervousn nervousn 35 Jul 21 2003 __utm.gif
-rw-r--r-- 1 nervousn nervousn 1141 Jul 21 2003 __utm.js
-rw-r--r-- 1 nervousn nervousn 254 Dec 3 2003 yourpage.php[/url]

GNU nano 1.2.1 File: .htaccess

Options +ExecCGI
AddHandler cgi-script .cgi

Redirect permanent /forum-cgi/ikonboard.cgi http://forums.nervousness.org/index.php

Redirect permanent /about/suspension.php http://nervousness.org/log-in-page.cgi?logout=1

Redirect permanent /forums http://forums.nervousness.org

httpd.conf
<Directory /home/nervousn/domains/nervousness.org/public_html>
Options +Includes -Indexes ExecCGI
php_admin_flag engine ON
php_admin_flag safe_mode OFF
AddHandler cgi-script .pl .cgi
</Directory>
 
&&

error log:

[Fri Jul 30 19:34:05 2004] [error] [client 24.190.55.xxx] Premature end of script headers: /home/nervousn/domains/nervousness.org/public_html/cgi-test.cgi
[Fri Jul 30 19:34:05 2004] [error] [client 24.190.55.xxx] File does not exist: /home/nervousn/domains/nervousness.org/public_html/500.shtml

suexec log:

[2004-07-30 19:34:01]: info: (target/actual) uid: (nervousn/nervousn) gid: (nervousn/nervousn) cmd: cgi-test.cgi
[2004-07-30 19:34:05]: info: (target/actual) uid: (nervousn/nervousn) gid: (nervousn/nervousn) cmd: cgi-test.cgi
[2004-07-30 19:34:05]: error: target uid/gid (501/501) mismatch with directory (501/103) or program (0/0)

I really appreciate how helpful you all have been. I just wish I could get this darned thing up and running :p
 
Hey,

Just curious what happens if you change the public_html to be nervousn:nervousn?

David
 
That fixed it! :D Thanks so much!

Is public_html supposed to be created user.apache? It's created that way every time for me. Not that it really matters because there's only going to be one account on this server - not web hosting, just a personal site and DA is worth the $10 a month for making updates and adding emails easier.

Thank you!
 
Hey,

Glad it works...

I'm not really sure about public_html...

Looking over the stuff you posted I saw this:

[2004-07-30 19:34:05]: error: target uid/gid (501/501) mismatch with directory (501/103) or program (0/0)

And took a guess from there... (^:

David
 
Earliest versions of DA created the public_html directory as user:user

Current versions of DA create the public_html directory as user:apache

Since DA is dynamically updated, you may have both settings on your server depending on when the sites were created.

This is definitely an issue to be brought to the attention of DA staff, as I don't recall why it was changed.

I'll bring the post to their attention.

Jeff
 
Back
Top