Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 02:24:53 +0200
From:      "J-F C. (Jefsey)  Morfin" <jefsey@club-internet.fr>
To:        freebsd-newbies@freebsd.org
Subject:   system confirguation problem with apache.
Message-ID:  <5.1.0.14.0.20020822022214.0364fec0@pop.online.fr>

next in thread | raw e-mail | index | archive | help
--=======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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020822022214.0364fec0>