|
Posted by Surfer! on 02/12/06 13:23
In message <43ef051f$0$18797$6d36acad@titian.nntpserver.com>, Peter
<invers@nospam.com> writes
>Hi
>
>In my httpd.config file I am trying to get index.php running local host.
>index.php which is in the E:\Training\ folder
>
>I am very new to this.
>
>Also I dont know how to get my computers IP address that shoudl be here
><VirtualHost localhost>
>
>#<VirtualHost localhost>
># ServerAdmin webmaster@dummy-host.example.com
> # DocumentRoot E:\Training\
># ServerName dummy-host.example.com
># ErrorLog logs/dummy-host.example.com-error_log
># CustomLog logs/dummy-host.example.com-access_log common
> # Directoryindex index.php
>#</VirtualHost>
Firstly, this is an HTTPD configuration problem not really a PHP one, so
you are asking in the wrong place.
Secondly, start by getting it working with index.htm - don't make things
harder by trying to do two things at once.
Once you have index.htm working, make a basic file 'phpinfo.php':
<? phpinfo(); ?>
Just that - no more & no less. To see if PHP is interacting correctly
with Apache (it is Apache is it?) point your browser to
httpd://phpinfo.php and you should get a big configuration page up.
As to the Apache configuration:
By definition, localhost = 127.0.0.1
It should be in your hosts file already.
I do have a line in my httpd.config
NameVirtualHost 127.0.0.1
but I'm not sure I actually need it.
So your entries would be:
NameVirtualHost 127.0.0.1
<VirtualHost localhost>
DocumentRoot "e:/training"
ServerName localhost
</VirtualHost>
--
Surfer!
Email to: ramwater at uk2 dot net
Navigation:
[Reply to this message]
|