On Thursday, August 29, 2002, at 02:53 PM, liming zhao wrote:
> I am working on MAC OS X and Perl + Apache2.0. > I used to use Asp + IIS. If you have Apache 2 that means you (or someone else on that machine) installed it. Apache 2 does not come with OS X. If you installed it you probably know where you installed it. > Would you please help me. > 1)Where is web folder of apache2.0 under os X? > It seems related with /usr/local/apache2.0 yup... that is where it is installed. Except it depends on many other parts that are scattered here and there. For example, /etc/httpd/ contains the conf files, at least in the stock apache install. Search for httpd.conf. Open it in a text editor and you will see where everything is installed. Alternatively, find httpd (the actual program, the http daemon) and do a 'httpd -V' on it get all manner of info on your apache. > ,but I cannot copy a file into it or construct > a folder using mkdir. use sudo... for example, % sudo mkdir somedir sudo will prompt you for your password, and will remain valid for a few minutes. > > 2)Should I copy .pl file into /usr/local/apache2.0/ > cgi-bin in order to use cgi in perl? yes, but you will have to activate .pl extension for cgi in your httpd.conf file. > > 3) Can you give me some documents or hypertext link > about web-publishing > using apache and perl ? > yes, go to www.macdevcenter.org and read all 5 or so excellent articles by Kevin Hemenway on this subject. He goes by the name Morbus, so the author may be listed as Morbus. Also, read the articles on developer.apple.com/internet
