Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Apache configuration...

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
Iamme
Asked:
Iamme
1 Solution
 
MercantilumCommented:
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
 
IammeAuthor Commented:
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
 
MercantilumCommented:
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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
IammeAuthor Commented:
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
 
MercantilumCommented:
0
 
MercantilumCommented:
A good complement if the two links above are not enough:
http://www.thesitewizard.com/archive/php4install.shtml
0
 
IammeAuthor Commented:
I'm trying, I have now installed php and apache...i'm installing my sql...
I'll tell you if it is successfull
0
 
IammeAuthor Commented:
I have increased the points....
0
 
IammeAuthor Commented:
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
 
MercantilumCommented:
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
 
IammeAuthor Commented:
I didn't find the line
"ServerAlias *....."
0
 
MercantilumCommented:
1. Replace the lines as above  (  DocumentRoot ...)
2. Add the lines above which are not in your httpd.conf
0
 
IammeAuthor Commented:
ok.....I'' do it.......

Thanks...
0
 
IammeAuthor Commented:
ok.....
I'll do it.......

Thanks...
0
 
rama_krishna580Commented:
0
 
periwinkleCommented:
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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now