[NBLUG/talk] Linux Apache PHP novice

jmlleung at yahoo.com jmlleung at yahoo.com
Wed Aug 3 22:39:36 PDT 2005


Dean,

You are correct. I check /etc/http/conf/httpd.conf. DocumentRoot is
/var/www/html. So I put a sample .php file there and it works.

Thanks,
Johnson

-----Original Message-----
From: talk-bounces at nblug.org [mailto:talk-bounces at nblug.org] On Behalf Of
Dean A. Roman
Sent: Wednesday, August 03, 2005 10:26 AM
To: General NBLUG chatter about anything Linux, answers to questions,etc.
Subject: Re: [NBLUG/talk] Linux Apache PHP novice


Johnson,

 Probably /etc/http/conf/httpd.conf is being used, but to be sure you 
could do an "ps aux" to see the httpd process and figure out the path 
from the output (look for something with httpd or apache in the name).
Alternatively, you could look in the /etc/init.d/httpd file to see where 
it is picking up the apache binary from.

Look under /var/www/html for the pages, but to be sure look for 
"DocumentRoot" in your httpd.conf file.
This file is pretty well commented.  Most all basic config. items for 
apache are in this file...start with it.

I haven't used LAMP before, so I can't help much with that.  However, 
PHP, MySQL, and Apache are old friends of mine :-)    .

Hope that helped,
   ---Dean.




jmlleung at yahoo.com wrote:

>Hi,
>
>I need some help here. I installed Red Hat Linux 9, Apache httpd 2.0.49,
>MySQL 4.0.18, PHP 4.3.4 on my Dell machine a year ago and put it aside. I
>originally planned to practice writing some simple web pages using LAMP.
>
>Now I am trying to pick it up again. But I don't even remember how to
launch
>a html page. My httpd is up and running. 
>
>I have 2 httpd.conf files. One is under /usr/local/apache2/conf/, and the
>other under /etc/httpd/conf/. Which one is being used? 
>
>Where should I store the .html files? Is it defined by DocumentRoot in
>httpd.conf?
>
>Any pointer and/or advice will be appreciated.
>
>Thanks,
>Johnson
>
>
>
>_______________________________________________
>talk mailing list
>talk at nblug.org
>http://nblug.org/cgi-bin/mailman/listinfo/talk
>
>
>  
>

-- 
Dean A. Roman
President
Roman Computer Systems
Office: 707-237-6798
Fax   : 707-237-2649
E-mail: droman at romansys.com
Web   : http://www.romansys.com


CONFIDENTIALITY NOTICE:
This email is intended only for the person(s) to which it is addressed and
contains confidential and privileged information. If you are not the
addressee(s), or the person responsible for delivering this to the
addressee(s), you are hereby notified that reading, copying, or distributing
this message is prohibited. If you have received this electronic mail
message in error, please contact us immediately at the telephone number
shown above and take the steps necessary to delete the message completely
from your computer system.
-Thank you.


_______________________________________________
talk mailing list
talk at nblug.org
http://nblug.org/cgi-bin/mailman/listinfo/talk




More information about the talk mailing list