Anthony Marlow wrote:
Hi,
I just bought a book called, "PHP 5/MySQL Programming for the Absolute
Beginner," by Andy Harris. I'm brand new to PHP, Apache and MySQL,
and I'm stuck on chapter One, which covers configuring Apache to work
with PHP.
In the book, on page 11, he says to open the Apache configuration file
called, "httpd.conf", and to edit the file as follows:
1. add the following code at the bottom of the "LoadModule commands:
"LoadModule php5_module C:apache/php5apache.dll" then to modify
this line so that it points to wherever the php5apache.dll file was
installed on my system (btw: Windows XP Home).
2.) Add the following code at the bottom of the "AddModule" commands:
"AddModule mod_php5.c".
3.) Add the following code to the end of the file:
"AddType application/x-httpd-php .php" (space in text.)
I've done the first part, but I cannot find any "AddModule" commands
in the file in question. I also did the third part.
Can anyone tell me about the second part above? There are no
"AddModule" commands in the file that I've mentioned above. Also, he
says to save the file after making these changes, but he doesn't say
where to save it. Can you tell me where I need to save this file
after doing what he says above?
=========================================================
The commands should be there. Have you used your editor's find
option ?
The configuration file goes in your Apache conf directory.
Forget PHPCoder, it is older technology and PHP Designer at
www.mpsoftware.dk is free, under continuous development,
and far superior.
Place your php files in the apache htdocs directory.
========================================================
Another thing: I downloaded PHP Coder and installed it. It seemed to
work at first (at least an example program ran correctly), but since
making the changes above, the PHP Coder stopped working. When I hit
run, I don't get anything at all. No error message, no program
running, or activating the web browser . . . I mean absolutely nothing
happens at all.
Also: In PHP Coder, I was able to set the path for the MySQL
documentation, but I'm not sure how to set the path for the PHP docs
or the html docs. Can anybody tell me what the names of the necessary
files are? If I know what files I need to point to, I can figure out
the path.
And finally, when I save a PHP file, exactly where do I need to save
it so that it will work in my web browser?