Solved

Apache configuration...

Posted on 2004-04-19
17
213 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
ID: 10863729
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
ID: 10863889
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
ID: 10863921
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Iamme
ID: 10864076
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
ID: 10864090
0
 
LVL 10

Expert Comment

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

Author Comment

by:Iamme
ID: 10864418
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
ID: 10870102
I have increased the points....
0
 

Author Comment

by:Iamme
ID: 10870129
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
ID: 10870222
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
ID: 10870743
I didn't find the line
"ServerAlias *....."
0
 
LVL 10

Accepted Solution

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

Author Comment

by:Iamme
ID: 10878730
ok.....I'' do it.......

Thanks...
0
 

Author Comment

by:Iamme
ID: 10878735
ok.....
I'll do it.......

Thanks...
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10911525
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 11761414
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Redirect all pages to one specific page 1 120
local dns 2 156
How to move and access a folder outside of the root folder 4 88
Apache,  not running php on top level 14 66
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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