Solved

Apache configuration...

Posted on 2004-04-19
17
210 Views
Last Modified: 2010-03-04
Hi,
I have installed Apache on WIn 2000, It functions but I don't know where INDEX.html is...
do you know?......I want to start to develop in php and put my own Index.html...
do you know how?
0
Comment
Question by:Iamme
17 Comments
 
LVL 10

Expert Comment

by:Mercantilum
Comment Utility
Find first a file named "httpd.conf"
Open it with an editor, and look for a directive name "DocumentRoot"
The string following this directive is the location of your documents, like index.html
0
 

Author Comment

by:Iamme
Comment Utility
HI, mercantilum...... tnks...
Ok, thanks,
The directory can be changed....
am I correct?....... I want to to Apache takes files from c:\Systema\htmls
and put here Index.html....

ca I do it?....
0
 
LVL 10

Expert Comment

by:Mercantilum
Comment Utility
Yes, just replace the path after DocumentRoot with what you want
And restart Apache.
You put your index.html in the path you gave to DocumentRoot, yes.
0
 

Author Comment

by:Iamme
Comment Utility
OK, thanks...

Now I want to install PHP, but id says that apache is not configured....
do you know how to do it....?

Pd. I have increased the points...
0
 
LVL 10

Expert Comment

by:Mercantilum
Comment Utility
0
 
LVL 10

Expert Comment

by:Mercantilum
Comment Utility
A good complement if the two links above are not enough:
http://www.thesitewizard.com/archive/php4install.shtml
0
 

Author Comment

by:Iamme
Comment Utility
I'm trying, I have now installed php and apache...i'm installing my sql...
I'll tell you if it is successfull
0
 

Author Comment

by:Iamme
Comment Utility
I have increased the points....
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:Iamme
Comment Utility
Now, I have Apache, Php, and MySql installes, Apache is on, php is ok, and mysql is ok, I can insert into a table of mysql from a php file....now.....
I want to write
"misite" in the IE from another machine and it sends a Index page but I can, when I just write localhost and it sends me the apache "browser" of my web directory......

Y want to tell apache that the index page is c:\mywebphp\Index.html

but, How can i do it...?
0
 
LVL 10

Expert Comment

by:Mercantilum
Comment Utility
You want "mysite" to point to c:\mywebphp\Index.html

E.g. http://www.mysite.com
displays c:\mywebphp\Index.html

So if you have only one domain that your apache server will answer to, get these lines in your httpd.conf,
Find the first line starting with DocumentRoot and do something like
( Change the '\' with '/'  in your paths )

    DocumentRoot c:/mywebphp/Index.html
    ServerName mysite.com
    ServerAlias *.mysite.com
    ErrorLog /var/log/httpd/mysite.com-error_log
    CustomLog /var/log/httpd/mysite.com-access_log combined

Save, restart Apache.
Try
    apache -S
to see how Apache sees your config (find the executable apache and run this command in a command prompt window)
See http://httpd.apache.org/docs/windows.html.en
0
 

Author Comment

by:Iamme
Comment Utility
I didn't find the line
"ServerAlias *....."
0
 
LVL 10

Accepted Solution

by:
Mercantilum earned 500 total points
Comment Utility
1. Replace the lines as above  (  DocumentRoot ...)
2. Add the lines above which are not in your httpd.conf
0
 

Author Comment

by:Iamme
Comment Utility
ok.....I'' do it.......

Thanks...
0
 

Author Comment

by:Iamme
Comment Utility
ok.....
I'll do it.......

Thanks...
0
 
LVL 23

Expert Comment

by:rama_krishna580
Comment Utility
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

    ACCEPT: Mercantilum

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Periwinkle
EE Cleanup Volunteer
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now