I meant httpd.conf.
And what is it about Vista that when in Notepad and you save a file, say
test.php in directory htdocs, it shows test.php in the folder, but when
you go to Windows Explorer there it is and it is gone? Nor does it load
as http://localhost/test.php although http://localhost/ loads as the
index.html file which is in the same folder?
Pathetic notes on installation of Apache.
I have a working apache 2.2.11 server and php 5.2.9 installed.
Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/
Apache https.conf is amended to add at the end of the LoadModule lines
(not between any tags):
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
at the end of the file, though i cannot find any section called
AddModule per the php installation notes ('Installing as an Apache
On clicking Start Apache http server, this gives "Invalid command
'AddModule' perhaps misspelled or defined by a module not included in
server configuration." The PHP Installation guide says to add this at
the end of the AddModule section. There is no AddModule in the
default http.conf of Apache 2.2.11. So for now have commented it out.
and between <IfModule mime_module> and </IfModule>:
AddType application/x-httpd-php .php
The php.ini file is in C:/PHP.
doc_root = "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
I have added ;C:/PHP to the end of the string for Environment Variables.
I have re-booted and re-started. I am testing this file:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php
and this outputs as code rather thna as 'test'.
When I start the Apache http server, I get:
httpd.exe: Could not reliably determine the server's fully qualified
, using 10.0.0.4 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
My ISP has a dynamic IP address system, what do I use for ServerName?
Do I need a static address or registered web site name to run on home
Apache httpd.conf has:
# ServerName gives the name and port that the server uses to identify
# This can often be determined automatically, but we recommend you
# it explicitly to prevent problems during startup.
# If your host doesn't have a registered DNS name, enter its IP
Any idea what might be wrong with the php code showing?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php