From owner-freebsd-newbies Wed Aug 21 17:20:56 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C42EA37B400 for ; Wed, 21 Aug 2002 17:20:52 -0700 (PDT) Received: from relay-4m.club-internet.fr (relay-4m.club-internet.fr [194.158.104.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5142143E6A for ; Wed, 21 Aug 2002 17:20:52 -0700 (PDT) (envelope-from jefsey@club-internet.fr) Received: from mine.club-internet.fr (lns03m-5-196.w.club-internet.fr [212.194.52.196]) by relay-4m.club-internet.fr (Postfix) with ESMTP id D6F35E100 for ; Thu, 22 Aug 2002 02:20:49 +0200 (CEST) Message-Id: <5.1.0.14.0.20020822022214.0364fec0@pop.online.fr> X-Sender: jefsey@mail.club-internet.fr X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 22 Aug 2002 02:24:53 +0200 To: freebsd-newbies@freebsd.org From: "J-F C. (Jefsey) Morfin" Subject: system confirguation problem with apache. Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-3EE95E40; boundary="=======16162753=======" Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=======16162753======= Content-Type: text/plain; x-avg-checked=avg-ok-3EE95E40; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit I apologize for this, but I get mad. I am stucj for two days with a directory confirguration poblem. I am porting 2 now closed RedHate machines to 2 FreeBSD machines. The installations have been made by 2 different competent persons. They are consistent (Machines are collocated: I cannot access them).. A person tested positively a big MySQL/PHP application. So PHP is OK The httpd.conf is documented with PHP3 and PHP4. Here is the confiuration. - Home is under /usr/home - Apache aliases "cgi_bin" to "/home/cgi-bin" - httpd.conf user is "nobody", Gourp is:"nobody" (it was "#-1", I changed it without result. - test access user is in "/home/org/cygnets/www" (its local files work fine) - /etc/group is " floppyx:*:: wheel:*:0:root,admin,utel,sioux,moostik admin:*:10: .... - /home/cgi-bin files are in 777 mode Here is are the problems: 1. difficulties to chown the /home/cgi-bin directory. I do not find the logic but "floppyx" comes as a group for every file when I "chown -R -L nobody:wheel cgibin"? 2. I have different types of files in /home/cgi-bin - html files: they cannot be used (cf. below) - php files : they cannot be used (cf. below) - perl scripts : they work without problem When I look into httpd/error_log the report is always the same (html or php): > (8)Exec format error: exec of /home/cgi-bin/index.htm failed > Premature end of script headers: /home/cgi-bin/index.htm Comment:. I used a lot of different ownership. Right now it is: - nobody:nobody for /home/cgi-nin - nobody:nobody for /home/org/cygnets/www and its cgi-bin. the same test4.php file can be called as http://cygnets.org/cgi-bin/test4.php and is an error as http://cygnets.org/cgi_bin/test4.php while http://cygnets.org/cgi_bin/sadd (perl) works fine. Deep thanks for your help. jfc --=======16162753=======-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message